qgyd2021 commited on
Commit
bcb6ff2
·
1 Parent(s): bc44d1f
data/porter_tasks/porter_task_chenjieshen_douyin_video_to_bilibili.json CHANGED
@@ -6,7 +6,7 @@
6
  "sec_user_id": "MS4wLjABAAAATGoBrO7yiJ3q9go4fxq9JXjrnP1bFpdkgKckC1IpfXA_vrjSmL9ZtjmTju8ApwbT",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
- "min_date2": "2026-01-05 00:00:00",
10
  "output_video_dir": "data/tasks/chenjieshen_douyin_video_to_bilibili/video/douyin/陈杰森",
11
  "output_video_info_file": "data/tasks/chenjieshen_douyin_video_to_bilibili/video/douyin/陈杰森/file_info.json"
12
  },
@@ -31,6 +31,6 @@
31
  "target_user_id": "442286660",
32
  "key_of_credentials": "bilibili_chenjiesen_credentials",
33
  "remove_after_upload": true,
34
- "min_date2": "2026-01-05 00:00:00"
35
  }
36
  ]
 
6
  "sec_user_id": "MS4wLjABAAAATGoBrO7yiJ3q9go4fxq9JXjrnP1bFpdkgKckC1IpfXA_vrjSmL9ZtjmTju8ApwbT",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
+ "min_date": "2026-01-11 00:00:00",
10
  "output_video_dir": "data/tasks/chenjieshen_douyin_video_to_bilibili/video/douyin/陈杰森",
11
  "output_video_info_file": "data/tasks/chenjieshen_douyin_video_to_bilibili/video/douyin/陈杰森/file_info.json"
12
  },
 
31
  "target_user_id": "442286660",
32
  "key_of_credentials": "bilibili_chenjiesen_credentials",
33
  "remove_after_upload": true,
34
+ "min_date": "2026-01-11 00:00:00"
35
  }
36
  ]
data/porter_tasks/porter_task_chenjieshen_douyin_video_to_youtube.json CHANGED
@@ -6,7 +6,7 @@
6
  "sec_user_id": "MS4wLjABAAAATGoBrO7yiJ3q9go4fxq9JXjrnP1bFpdkgKckC1IpfXA_vrjSmL9ZtjmTju8ApwbT",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
- "min_date2": "2025-10-12 00:00:00",
10
  "output_video_dir": "data/tasks/chenjieshen_douyin_video_to_youtube/video/douyin/陈杰森",
11
  "output_video_info_file": "data/tasks/chenjieshen_douyin_video_to_youtube/video/douyin/陈杰森/file_info.json"
12
  },
@@ -177,7 +177,7 @@
177
  "remove_after_upload_delay": 1,
178
  "playlist_title": "Short",
179
  "playlist_id": "PL1KtQ49rVMElugHudIdyKLAmgmMVdqoxQ",
180
- "min_date2": "2025-10-12 00:00:00"
181
  },
182
  {
183
  "enable": true,
 
6
  "sec_user_id": "MS4wLjABAAAATGoBrO7yiJ3q9go4fxq9JXjrnP1bFpdkgKckC1IpfXA_vrjSmL9ZtjmTju8ApwbT",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
+ "min_date2": "2026-01-11 00:00:00",
10
  "output_video_dir": "data/tasks/chenjieshen_douyin_video_to_youtube/video/douyin/陈杰森",
11
  "output_video_info_file": "data/tasks/chenjieshen_douyin_video_to_youtube/video/douyin/陈杰森/file_info.json"
12
  },
 
177
  "remove_after_upload_delay": 1,
178
  "playlist_title": "Short",
179
  "playlist_id": "PL1KtQ49rVMElugHudIdyKLAmgmMVdqoxQ",
180
+ "min_date2": "2026-01-11 00:00:00"
181
  },
182
  {
183
  "enable": true,
data/porter_tasks/porter_task_lvxiaotong_douyin_video_to_youtube.json CHANGED
@@ -6,7 +6,7 @@
6
  "sec_user_id": "MS4wLjABAAAAqejZxZKopDBDEzxcQp-_1b019FfM05C0NzjQNpc5ylU",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
- "min_date2": "2025-12-27 00:00:00",
10
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
11
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
12
  },
@@ -17,7 +17,7 @@
17
  "sec_user_id": "MS4wLjABAAAAenYfLf-t_uRZhgQmEFOLN1iY3l2FTo4ToyC6wGEQVAH3i763q4-QgtUEleMB8n-m",
18
  "check_interval": 900,
19
  "key_of_credentials": "douyin_wentao_credentials",
20
- "min_date2": "2025-12-27 00:00:00",
21
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
22
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
23
  },
@@ -28,7 +28,7 @@
28
  "sec_user_id": "MS4wLjABAAAAkwn_ZhJXBB5f4qNT4mn_uk5hOmaCFS503C3tSHiSzSQADUpFTPuPHx4ZVScKQ1Yl",
29
  "check_interval": 900,
30
  "key_of_credentials": "douyin_wentao_credentials",
31
- "min_date2": "2025-12-27 00:00:00",
32
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
33
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
34
  },
@@ -39,7 +39,7 @@
39
  "sec_user_id": "MS4wLjABAAAAnDI9XdGvKm9azWhg0qOviLt9xKTVT0E2fu7xOMDiMq_KJp2TdYPXvuhG8leGj-p6",
40
  "check_interval": 900,
41
  "key_of_credentials": "douyin_wentao_credentials",
42
- "min_date2": "2025-12-27 00:00:00",
43
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
44
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
45
  },
@@ -50,7 +50,7 @@
50
  "sec_user_id": "MS4wLjABAAAA7j2NgLyRw8zqqLW9aqDUe03aZSZPXAfOgiwlVCzkbGc",
51
  "check_interval": 900,
52
  "key_of_credentials": "douyin_wentao_credentials",
53
- "min_date2": "2025-12-27 00:00:00",
54
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
55
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
56
  },
@@ -64,6 +64,6 @@
64
  "check_interval": 300,
65
  "video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json",
66
  "remove_after_upload": true,
67
- "min_date2": "2025-12-27 00:00:00"
68
  }
69
  ]
 
6
  "sec_user_id": "MS4wLjABAAAAqejZxZKopDBDEzxcQp-_1b019FfM05C0NzjQNpc5ylU",
7
  "check_interval": 900,
8
  "key_of_credentials": "douyin_wentao_credentials",
9
+ "min_date2": "2026-01-11 00:00:00",
10
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
11
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
12
  },
 
17
  "sec_user_id": "MS4wLjABAAAAenYfLf-t_uRZhgQmEFOLN1iY3l2FTo4ToyC6wGEQVAH3i763q4-QgtUEleMB8n-m",
18
  "check_interval": 900,
19
  "key_of_credentials": "douyin_wentao_credentials",
20
+ "min_date2": "2026-01-11 00:00:00",
21
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
22
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
23
  },
 
28
  "sec_user_id": "MS4wLjABAAAAkwn_ZhJXBB5f4qNT4mn_uk5hOmaCFS503C3tSHiSzSQADUpFTPuPHx4ZVScKQ1Yl",
29
  "check_interval": 900,
30
  "key_of_credentials": "douyin_wentao_credentials",
31
+ "min_date2": "2026-01-11 00:00:00",
32
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
33
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
34
  },
 
39
  "sec_user_id": "MS4wLjABAAAAnDI9XdGvKm9azWhg0qOviLt9xKTVT0E2fu7xOMDiMq_KJp2TdYPXvuhG8leGj-p6",
40
  "check_interval": 900,
41
  "key_of_credentials": "douyin_wentao_credentials",
42
+ "min_date2": "2026-01-11 00:00:00",
43
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
44
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
45
  },
 
50
  "sec_user_id": "MS4wLjABAAAA7j2NgLyRw8zqqLW9aqDUe03aZSZPXAfOgiwlVCzkbGc",
51
  "check_interval": 900,
52
  "key_of_credentials": "douyin_wentao_credentials",
53
+ "min_date2": "2026-01-11 00:00:00",
54
  "output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
55
  "output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
56
  },
 
64
  "check_interval": 300,
65
  "video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json",
66
  "remove_after_upload": true,
67
+ "min_date2": "2026-01-11 00:00:00"
68
  }
69
  ]
toolbox/porter/tasks/video_to_bilibili_task.py CHANGED
@@ -102,7 +102,7 @@ class VideoToBilibiliTask(BaseTask):
102
 
103
  new_video_info = copy.deepcopy(video_info)
104
  for k, v in video_info.items():
105
- create_time = v["create_time"]
106
  filename = v["filename"]
107
  # url_list = v["url_list"]
108
  # video_id = v["video_id"]
 
102
 
103
  new_video_info = copy.deepcopy(video_info)
104
  for k, v in video_info.items():
105
+ create_time = v["create_time_str"]
106
  filename = v["filename"]
107
  # url_list = v["url_list"]
108
  # video_id = v["video_id"]
toolbox/porter/tasks/video_to_youtube_task.py CHANGED
@@ -173,7 +173,7 @@ class VideoToYoutubeTask(BaseTask):
173
  elif self.allowed_max_duration_in_s is not None and duration_in_s > self.allowed_max_duration_in_s:
174
  logger.info(f"{self.flag}时长: {duration_in_s}s, 超过 {self.allowed_max_duration_in_s} 跳过文件:{filename}")
175
  video_id = "null"
176
- elif self.allowed_width_height_list is not None and width_height not in self.allowed_width_height_list:
177
  logger.info(f"{self.flag}width_height: {width_height}, 不属于超过 {self.allowed_width_height_list} 跳过文件:{filename}")
178
  video_id = "null"
179
  elif self.allowed_width_less_equal_height is True and width > height:
 
173
  elif self.allowed_max_duration_in_s is not None and duration_in_s > self.allowed_max_duration_in_s:
174
  logger.info(f"{self.flag}时长: {duration_in_s}s, 超过 {self.allowed_max_duration_in_s} 跳过文件:{filename}")
175
  video_id = "null"
176
+ elif self.allowed_width_height_list is not None and len(self.allowed_width_height_list) != 0 and width_height not in self.allowed_width_height_list:
177
  logger.info(f"{self.flag}width_height: {width_height}, 不属于超过 {self.allowed_width_height_list} 跳过文件:{filename}")
178
  video_id = "null"
179
  elif self.allowed_width_less_equal_height is True and width > height: