qgyd2021 commited on
Commit
afceed2
·
1 Parent(s): ab6a7ac
data/porter_tasks/porter_task_songkewei_douyin_live_record_to_youtube.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "enable": true,
4
+ "type": "douyin_live_record",
5
+ "room_name": "宋可为",
6
+ "room_id": "556742457625",
7
+ "sec_user_id": "MS4wLjABAAAAs2XhHg7SMVu-STXWpod1zFxTzlnoeWzTXxAE02c7OQ49GMnGiHCcLxk8c3aDPr3s",
8
+ "key_of_credentials": "douyin_wentao_credentials",
9
+ "check_interval": 10,
10
+ "output_video_dir": "data/tasks/songkewei_douyin_live_record_to_youtube/live_record/宋可为",
11
+ "output_video_info_file": "data/tasks/songkewei_douyin_live_record_to_youtube/live_record/宋可为/file_info.json",
12
+ "extra_tags": ["宋可为"]
13
+ },
14
+ {
15
+ "enable": true,
16
+ "type": "video_to_youtube",
17
+ "video_group": "宋可为",
18
+ "target_channel_title": "宋可为",
19
+ "target_channel_id": "UChm54af6MM_9AAcAc1aZ2nQ",
20
+ "key_of_credentials": "youtube_songkewei_credentials",
21
+ "check_interval": 300,
22
+ "video_info_file": "data/tasks/songkewei_douyin_live_record_to_youtube/live_record/宋可为/file_info.json",
23
+ "remove_after_upload": true,
24
+ "min_date2": "2025-09-09 00:00:00"
25
+ }
26
+ ]
data/porter_tasks/porter_task_songkewei_douyin_video_to_youtube.json CHANGED
@@ -6,7 +6,7 @@
6
  "sec_user_id": "MS4wLjABAAAAs2XhHg7SMVu-STXWpod1zFxTzlnoeWzTXxAE02c7OQ49GMnGiHCcLxk8c3aDPr3s",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
- "min_date": "2020-12-27 00:00:00",
10
  "output_video_dir": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为",
11
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
12
  },
 
6
  "sec_user_id": "MS4wLjABAAAAs2XhHg7SMVu-STXWpod1zFxTzlnoeWzTXxAE02c7OQ49GMnGiHCcLxk8c3aDPr3s",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
+ "min_date2": "2020-12-27 00:00:00",
10
  "output_video_dir": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为",
11
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
12
  },
main.py CHANGED
@@ -144,8 +144,8 @@ def main():
144
  # http://10.75.27.247:7870/
145
  blocks.queue().launch(
146
  # share=True,
147
- share=False if platform.system() == "Windows" else False,
148
- server_name="127.0.0.1" if platform.system() == "Windows" else "0.0.0.0",
149
  server_port=args.server_port
150
  )
151
  return
 
144
  # http://10.75.27.247:7870/
145
  blocks.queue().launch(
146
  # share=True,
147
+ share=False if platform.system() in ("Windows", "Darwin") else False,
148
+ server_name="127.0.0.1" if platform.system() in ("Windows", "Darwin") else "0.0.0.0",
149
  server_port=args.server_port
150
  )
151
  return