Spaces:
Paused
Paused
update
Browse files
data/porter_tasks/porter_task_laoa_douyin_video_to_youtube.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"enable": true,
|
| 4 |
+
"type": "douyin_video_download",
|
| 5 |
+
"user_name": "牢a斩杀线",
|
| 6 |
+
"sec_user_id": "MS4wLjABAAAAXnnVHOsZk38ETzA45chRPzu-PJ8yyMffFnt8XdWpe5s",
|
| 7 |
+
"check_interval": 900,
|
| 8 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 10 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 11 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 12 |
+
"allowed_max_duration_in_s": 900,
|
| 13 |
+
"allowed_must_width_less_equal_height": true
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"enable": true,
|
| 17 |
+
"type": "douyin_video_download",
|
| 18 |
+
"user_name": "牢A",
|
| 19 |
+
"sec_user_id": "MS4wLjABAAAAEdeYl85-j6OPwwPNYkYrRGTm-fU6uMy8d2QZK6KWky8",
|
| 20 |
+
"check_interval": 900,
|
| 21 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 22 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 23 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 24 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 25 |
+
"allowed_max_duration_in_s": 900,
|
| 26 |
+
"allowed_must_width_less_equal_height": true
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"enable": true,
|
| 30 |
+
"type": "douyin_video_download",
|
| 31 |
+
"user_name": "牢A斩杀线.",
|
| 32 |
+
"sec_user_id": "MS4wLjABAAAAZqvkWjDBXYJuQVd-dT2057QMd-KzUFl8MFI18OCLsDq9I2bt2IaOM5EJOyYxY3Ah",
|
| 33 |
+
"check_interval": 900,
|
| 34 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 35 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 36 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 37 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 38 |
+
"allowed_max_duration_in_s": 900,
|
| 39 |
+
"allowed_must_width_less_equal_height": true
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"enable": true,
|
| 43 |
+
"type": "douyin_video_download",
|
| 44 |
+
"user_name": "[牢a(斯奎奇大王)切片]",
|
| 45 |
+
"sec_user_id": "MS4wLjABAAAAj48_8G1mRueLVoqghjlnfXM8GHY9dz58Pciez7Ud6vm8in9SOg6KzDKEohSU_m-P",
|
| 46 |
+
"check_interval": 900,
|
| 47 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 48 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 49 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 50 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 51 |
+
"allowed_max_duration_in_s": 900,
|
| 52 |
+
"allowed_must_width_less_equal_height": true
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"enable": true,
|
| 56 |
+
"type": "douyin_video_download",
|
| 57 |
+
"user_name": "洛阳斯卡文(牢A切片)",
|
| 58 |
+
"sec_user_id": "MS4wLjABAAAAoWtwg0QZaiFqUf9UKRaQCEHCiD_Idvz0mVnpcso-rfLtjHja3Q3mpYKY_wDiNfdX",
|
| 59 |
+
"check_interval": 900,
|
| 60 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 61 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 62 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 63 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 64 |
+
"allowed_max_duration_in_s": 900,
|
| 65 |
+
"allowed_must_width_less_equal_height": true
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"enable": true,
|
| 69 |
+
"type": "douyin_video_download",
|
| 70 |
+
"user_name": "牢A海边斯奎奇",
|
| 71 |
+
"sec_user_id": "MS4wLjABAAAAp4P0zq0hAHMaM2jDuwCcQufukxx_8o1kzKNHqAEQqBCqNLqsN0qeACDXV9Mm-iBs",
|
| 72 |
+
"check_interval": 900,
|
| 73 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 74 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 75 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 76 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 77 |
+
"allowed_max_duration_in_s": 900,
|
| 78 |
+
"allowed_must_width_less_equal_height": true
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"enable": true,
|
| 82 |
+
"type": "douyin_video_download",
|
| 83 |
+
"user_name": "牢A斩杀线合集(最全)",
|
| 84 |
+
"sec_user_id": "MS4wLjABAAAAOkTBUjj9KXdrbJYIBnHBy7Ic8kSN-wcG-1K31GXnPSc",
|
| 85 |
+
"check_interval": 900,
|
| 86 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 87 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 88 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 89 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 90 |
+
"allowed_max_duration_in_s": 900,
|
| 91 |
+
"allowed_must_width_less_equal_height": true
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"enable": true,
|
| 95 |
+
"type": "douyin_video_download",
|
| 96 |
+
"user_name": "牢A播报员",
|
| 97 |
+
"sec_user_id": "MS4wLjABAAAA4qtfb_bG8uN2WRxltAdUiOgp4eyWjzob-0_ZnGef8NN8vTPUYnO3ITFzUrLoxpmA",
|
| 98 |
+
"check_interval": 900,
|
| 99 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 100 |
+
"min_date2": "2026-01-10 00:00:00",
|
| 101 |
+
"output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
|
| 102 |
+
"output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 103 |
+
"allowed_max_duration_in_s": 900,
|
| 104 |
+
"allowed_must_width_less_equal_height": true
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"enable": true,
|
| 108 |
+
"type": "video_to_youtube",
|
| 109 |
+
"video_group": "牢A斩杀线",
|
| 110 |
+
"target_channel_title": "牢A斩杀线",
|
| 111 |
+
"target_channel_id": "UCz3F3jyJhhK5eFugxnvmAhQ",
|
| 112 |
+
"key_of_credentials": "youtube_laoa_credentials",
|
| 113 |
+
"check_interval": 300,
|
| 114 |
+
"video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
|
| 115 |
+
"remove_after_upload": true,
|
| 116 |
+
"min_date2": "2026-01-10 00:00:00"
|
| 117 |
+
}
|
| 118 |
+
]
|
toolbox/youtube/youtube_client.py
CHANGED
|
@@ -115,14 +115,14 @@ def get_args():
|
|
| 115 |
parser.add_argument(
|
| 116 |
"--client_secrets_file",
|
| 117 |
# youtube-manager-20250703
|
| 118 |
-
default=(project_path / "dotenv/youtube-manager-20250703-client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 119 |
# youtube-huchenfeng
|
| 120 |
-
|
| 121 |
type=str
|
| 122 |
)
|
| 123 |
parser.add_argument(
|
| 124 |
"--authorized_user_file",
|
| 125 |
-
default=(project_path / "dotenv/
|
| 126 |
type=str
|
| 127 |
)
|
| 128 |
args = parser.parse_args()
|
|
|
|
| 115 |
parser.add_argument(
|
| 116 |
"--client_secrets_file",
|
| 117 |
# youtube-manager-20250703
|
| 118 |
+
# default=(project_path / "dotenv/youtube-manager-20250703-client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 119 |
# youtube-huchenfeng
|
| 120 |
+
default=(project_path / "dotenv/youtube-huchenfeng-client_secret_2_417189403909-dafvbee9bkl8u98nttt127j46b3igjkl.apps.googleusercontent.com.json").as_posix(),
|
| 121 |
type=str
|
| 122 |
)
|
| 123 |
parser.add_argument(
|
| 124 |
"--authorized_user_file",
|
| 125 |
+
default=(project_path / "dotenv/laoa_authorized_user_file.json").as_posix(),
|
| 126 |
type=str
|
| 127 |
)
|
| 128 |
args = parser.parse_args()
|