qgyd2021 commited on
Commit
ea8b1fb
·
1 Parent(s): b322f6c
data/porter_tasks/porter_task_laoa_douyin_video_to_youtube.json CHANGED
@@ -168,6 +168,32 @@
168
  "allowed_max_duration_in_s": 900,
169
  "allowed_must_width_less_equal_height": true
170
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  {
172
  "enable": true,
173
  "type": "video_to_youtube",
 
168
  "allowed_max_duration_in_s": 900,
169
  "allowed_must_width_less_equal_height": true
170
  },
171
+ {
172
+ "enable": true,
173
+ "type": "douyin_video_download",
174
+ "user_name": "软糖七分甜",
175
+ "sec_user_id": "MS4wLjABAAAApueL0s5QaAzaEPuHfNaNzXlvbrvzHx7oSCQdyPUdELk",
176
+ "check_interval": 900,
177
+ "key_of_credentials": "douyin_wentao_credentials",
178
+ "min_date2": "2026-01-10 00:00:00",
179
+ "output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
180
+ "output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
181
+ "allowed_max_duration_in_s": 900,
182
+ "allowed_must_width_less_equal_height": true
183
+ },
184
+ {
185
+ "enable": true,
186
+ "type": "douyin_video_download",
187
+ "user_name": "志怪诡录记",
188
+ "sec_user_id": "MS4wLjABAAAA7PbDHXiQGrcSRT23gzK8cX_HOpEDFhbzDsJeSkLkcSw",
189
+ "check_interval": 900,
190
+ "key_of_credentials": "douyin_wentao_credentials",
191
+ "min_date2": "2026-01-10 00:00:00",
192
+ "output_video_dir": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线",
193
+ "output_video_info_file": "data/tasks/laoa_douyin_video_to_youtube/video/douyin/牢A斩杀线/file_info.json",
194
+ "allowed_max_duration_in_s": 900,
195
+ "allowed_must_width_less_equal_height": true
196
+ },
197
  {
198
  "enable": true,
199
  "type": "video_to_youtube",
data/porter_tasks/porter_task_songkewei_douyin_video_to_youtube.json CHANGED
@@ -1,6 +1,6 @@
1
  [
2
  {
3
- "enable": true,
4
  "type": "douyin_video_download",
5
  "user_name": "宋可为",
6
  "sec_user_id": "MS4wLjABAAAAs2XhHg7SMVu-STXWpod1zFxTzlnoeWzTXxAE02c7OQ49GMnGiHCcLxk8c3aDPr3s",
@@ -11,7 +11,7 @@
11
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
12
  },
13
  {
14
- "enable": true,
15
  "type": "douyin_video_download",
16
  "user_name": "牢a斩杀线",
17
  "sec_user_id": "MS4wLjABAAAAXnnVHOsZk38ETzA45chRPzu-PJ8yyMffFnt8XdWpe5s",
@@ -22,7 +22,7 @@
22
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
23
  },
24
  {
25
- "enable": true,
26
  "type": "douyin_video_download",
27
  "user_name": "牢A",
28
  "sec_user_id": "MS4wLjABAAAAEdeYl85-j6OPwwPNYkYrRGTm-fU6uMy8d2QZK6KWky8",
@@ -33,7 +33,7 @@
33
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
34
  },
35
  {
36
- "enable": true,
37
  "type": "douyin_video_download",
38
  "user_name": "牢A斩杀线.",
39
  "sec_user_id": "MS4wLjABAAAAZqvkWjDBXYJuQVd-dT2057QMd-KzUFl8MFI18OCLsDq9I2bt2IaOM5EJOyYxY3Ah",
@@ -44,7 +44,7 @@
44
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
45
  },
46
  {
47
- "enable": true,
48
  "type": "douyin_video_download",
49
  "user_name": "[牢a(斯奎奇大王)切片]",
50
  "sec_user_id": "MS4wLjABAAAAj48_8G1mRueLVoqghjlnfXM8GHY9dz58Pciez7Ud6vm8in9SOg6KzDKEohSU_m-P",
@@ -55,7 +55,7 @@
55
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
56
  },
57
  {
58
- "enable": true,
59
  "type": "douyin_video_download",
60
  "user_name": "洛阳斯卡文(牢A切片)",
61
  "sec_user_id": "MS4wLjABAAAAoWtwg0QZaiFqUf9UKRaQCEHCiD_Idvz0mVnpcso-rfLtjHja3Q3mpYKY_wDiNfdX",
@@ -66,7 +66,7 @@
66
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
67
  },
68
  {
69
- "enable": true,
70
  "type": "douyin_video_download",
71
  "user_name": "牢A海边斯奎奇",
72
  "sec_user_id": "MS4wLjABAAAAp4P0zq0hAHMaM2jDuwCcQufukxx_8o1kzKNHqAEQqBCqNLqsN0qeACDXV9Mm-iBs",
@@ -77,7 +77,7 @@
77
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
78
  },
79
  {
80
- "enable": true,
81
  "type": "douyin_video_download",
82
  "user_name": "牢A斩杀线合集(最全)",
83
  "sec_user_id": "MS4wLjABAAAAOkTBUjj9KXdrbJYIBnHBy7Ic8kSN-wcG-1K31GXnPSc",
@@ -88,7 +88,7 @@
88
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
89
  },
90
  {
91
- "enable": true,
92
  "type": "douyin_video_download",
93
  "user_name": "牢A播报员",
94
  "sec_user_id": "MS4wLjABAAAA4qtfb_bG8uN2WRxltAdUiOgp4eyWjzob-0_ZnGef8NN8vTPUYnO3ITFzUrLoxpmA",
@@ -99,7 +99,7 @@
99
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
100
  },
101
  {
102
- "enable": true,
103
  "type": "douyin_video_download",
104
  "user_name": "Brilliant_Xx",
105
  "sec_user_id": "MS4wLjABAAAAC4q8A1sWZqN4UJUdc2oA5V5Pv6jPUyuGjEFjMe4tr_o",
@@ -110,7 +110,7 @@
110
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
111
  },
112
  {
113
- "enable": true,
114
  "type": "douyin_video_download",
115
  "user_name": "青枫2026",
116
  "sec_user_id": "MS4wLjABAAAAbVmWbLy67N58OU_P7GmUhBTCj4BaLzVFbaXJdB2FEHC2qmL-GckPa8E3c8haDKSd",
@@ -121,7 +121,7 @@
121
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
122
  },
123
  {
124
- "enable": true,
125
  "type": "douyin_video_download",
126
  "user_name": "、丶",
127
  "sec_user_id": "MS4wLjABAAAAf_FjIWwJxMCFiyqhZmLAybhPyjQoDkv6T4b3cZiMP1M",
@@ -132,7 +132,7 @@
132
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
133
  },
134
  {
135
- "enable": true,
136
  "type": "douyin_video_download",
137
  "user_name": "赤色世纪",
138
  "sec_user_id": "MS4wLjABAAAALKP8r-GB9g702pjviRekISUVMwZbQ8o3-bAPUenkRI260igZ5xVqPdgtRHlnm6kx",
@@ -143,7 +143,7 @@
143
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
144
  },
145
  {
146
- "enable": true,
147
  "type": "douyin_video_download",
148
  "user_name": "白马啸西风",
149
  "sec_user_id": "MS4wLjABAAAAdiZ1OmeHzY0-HZ-Pczh6TOp9OABfbevpCG5sNeSQAJE",
@@ -154,7 +154,29 @@
154
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
155
  },
156
  {
157
- "enable": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  "type": "video_to_youtube",
159
  "video_group": "宋可为",
160
  "target_channel_title": "宋可为",
 
1
  [
2
  {
3
+ "enable": false,
4
  "type": "douyin_video_download",
5
  "user_name": "宋可为",
6
  "sec_user_id": "MS4wLjABAAAAs2XhHg7SMVu-STXWpod1zFxTzlnoeWzTXxAE02c7OQ49GMnGiHCcLxk8c3aDPr3s",
 
11
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
12
  },
13
  {
14
+ "enable": false,
15
  "type": "douyin_video_download",
16
  "user_name": "牢a斩杀线",
17
  "sec_user_id": "MS4wLjABAAAAXnnVHOsZk38ETzA45chRPzu-PJ8yyMffFnt8XdWpe5s",
 
22
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
23
  },
24
  {
25
+ "enable": false,
26
  "type": "douyin_video_download",
27
  "user_name": "牢A",
28
  "sec_user_id": "MS4wLjABAAAAEdeYl85-j6OPwwPNYkYrRGTm-fU6uMy8d2QZK6KWky8",
 
33
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
34
  },
35
  {
36
+ "enable": false,
37
  "type": "douyin_video_download",
38
  "user_name": "牢A斩杀线.",
39
  "sec_user_id": "MS4wLjABAAAAZqvkWjDBXYJuQVd-dT2057QMd-KzUFl8MFI18OCLsDq9I2bt2IaOM5EJOyYxY3Ah",
 
44
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
45
  },
46
  {
47
+ "enable": false,
48
  "type": "douyin_video_download",
49
  "user_name": "[牢a(斯奎奇大王)切片]",
50
  "sec_user_id": "MS4wLjABAAAAj48_8G1mRueLVoqghjlnfXM8GHY9dz58Pciez7Ud6vm8in9SOg6KzDKEohSU_m-P",
 
55
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
56
  },
57
  {
58
+ "enable": false,
59
  "type": "douyin_video_download",
60
  "user_name": "洛阳斯卡文(牢A切片)",
61
  "sec_user_id": "MS4wLjABAAAAoWtwg0QZaiFqUf9UKRaQCEHCiD_Idvz0mVnpcso-rfLtjHja3Q3mpYKY_wDiNfdX",
 
66
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
67
  },
68
  {
69
+ "enable": false,
70
  "type": "douyin_video_download",
71
  "user_name": "牢A海边斯奎奇",
72
  "sec_user_id": "MS4wLjABAAAAp4P0zq0hAHMaM2jDuwCcQufukxx_8o1kzKNHqAEQqBCqNLqsN0qeACDXV9Mm-iBs",
 
77
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
78
  },
79
  {
80
+ "enable": false,
81
  "type": "douyin_video_download",
82
  "user_name": "牢A斩杀线合集(最全)",
83
  "sec_user_id": "MS4wLjABAAAAOkTBUjj9KXdrbJYIBnHBy7Ic8kSN-wcG-1K31GXnPSc",
 
88
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
89
  },
90
  {
91
+ "enable": false,
92
  "type": "douyin_video_download",
93
  "user_name": "牢A播报员",
94
  "sec_user_id": "MS4wLjABAAAA4qtfb_bG8uN2WRxltAdUiOgp4eyWjzob-0_ZnGef8NN8vTPUYnO3ITFzUrLoxpmA",
 
99
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
100
  },
101
  {
102
+ "enable": false,
103
  "type": "douyin_video_download",
104
  "user_name": "Brilliant_Xx",
105
  "sec_user_id": "MS4wLjABAAAAC4q8A1sWZqN4UJUdc2oA5V5Pv6jPUyuGjEFjMe4tr_o",
 
110
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
111
  },
112
  {
113
+ "enable": false,
114
  "type": "douyin_video_download",
115
  "user_name": "青枫2026",
116
  "sec_user_id": "MS4wLjABAAAAbVmWbLy67N58OU_P7GmUhBTCj4BaLzVFbaXJdB2FEHC2qmL-GckPa8E3c8haDKSd",
 
121
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
122
  },
123
  {
124
+ "enable": false,
125
  "type": "douyin_video_download",
126
  "user_name": "、丶",
127
  "sec_user_id": "MS4wLjABAAAAf_FjIWwJxMCFiyqhZmLAybhPyjQoDkv6T4b3cZiMP1M",
 
132
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
133
  },
134
  {
135
+ "enable": false,
136
  "type": "douyin_video_download",
137
  "user_name": "赤色世纪",
138
  "sec_user_id": "MS4wLjABAAAALKP8r-GB9g702pjviRekISUVMwZbQ8o3-bAPUenkRI260igZ5xVqPdgtRHlnm6kx",
 
143
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
144
  },
145
  {
146
+ "enable": false,
147
  "type": "douyin_video_download",
148
  "user_name": "白马啸西风",
149
  "sec_user_id": "MS4wLjABAAAAdiZ1OmeHzY0-HZ-Pczh6TOp9OABfbevpCG5sNeSQAJE",
 
154
  "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
155
  },
156
  {
157
+ "enable": false,
158
+ "type": "douyin_video_download",
159
+ "user_name": "软糖七分甜",
160
+ "sec_user_id": "MS4wLjABAAAApueL0s5QaAzaEPuHfNaNzXlvbrvzHx7oSCQdyPUdELk",
161
+ "check_interval": 900,
162
+ "key_of_credentials": "douyin_wentao_credentials",
163
+ "min_date2": "2020-12-27 00:00:00",
164
+ "output_video_dir": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为",
165
+ "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
166
+ },
167
+ {
168
+ "enable": false,
169
+ "type": "douyin_video_download",
170
+ "user_name": "志怪诡录记",
171
+ "sec_user_id": "MS4wLjABAAAA7PbDHXiQGrcSRT23gzK8cX_HOpEDFhbzDsJeSkLkcSw",
172
+ "check_interval": 900,
173
+ "key_of_credentials": "douyin_wentao_credentials",
174
+ "min_date2": "2020-12-27 00:00:00",
175
+ "output_video_dir": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为",
176
+ "output_video_info_file": "data/tasks/songkewei_douyin_video_to_youtube/video/douyin/宋可为/file_info.json"
177
+ },
178
+ {
179
+ "enable": false,
180
  "type": "video_to_youtube",
181
  "video_group": "宋可为",
182
  "target_channel_title": "宋可为",
tabs/shell_tab.py CHANGED
@@ -25,18 +25,16 @@ def get_shell_tab():
25
  examples=[
26
  [
27
  "echo \"CPU使用率: $(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage \"%\"}')\""
28
- ],
29
- [
30
  "echo \"内存使用: $(free -m | awk '/Mem:/ {printf \"%.1f%%\", $3/$2*100}')\""
31
- ],
32
- [
33
  "echo \"内存总量: $(grep MemTotal /proc/meminfo | awk '{print $2/1024 \" MB\"}')\""
34
- ],
35
- [
36
  "echo \"可用内存: $(grep MemAvailable /proc/meminfo | awk '{print $2/1024 \" MB\"}')\""
37
- ],
38
- [
39
  "grep 'less' logs/info.log | tail -n 15"
 
 
40
  ]
41
  ],
42
  inputs=[shell_text],
 
25
  examples=[
26
  [
27
  "echo \"CPU使用率: $(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage \"%\"}')\""
28
+ ], [
 
29
  "echo \"内存使用: $(free -m | awk '/Mem:/ {printf \"%.1f%%\", $3/$2*100}')\""
30
+ ], [
 
31
  "echo \"内存总量: $(grep MemTotal /proc/meminfo | awk '{print $2/1024 \" MB\"}')\""
32
+ ], [
 
33
  "echo \"可用内存: $(grep MemAvailable /proc/meminfo | awk '{print $2/1024 \" MB\"}')\""
34
+ ], [
 
35
  "grep 'less' logs/info.log | tail -n 15"
36
+ ], [
37
+ "ffmpeg -i /home/user/app/data/video/download/video.mp4 -vn -acodec libmp3lame -q:a 2 /home/user/app/data/video/download/audio.mp3"
38
  ]
39
  ],
40
  inputs=[shell_text],
toolbox/hf_netdisk/netdisk/netdisk_client.py CHANGED
@@ -206,13 +206,15 @@ def main3():
206
  continue
207
  if user_type not in ("customers",):
208
  continue
209
- if user_name not in ("陈杰森",):
210
  continue
211
  if date not in ("20260119",):
212
  continue
213
 
214
  cache_dir = temp_directory / "hf_cache_dir"
215
 
 
 
216
  target_file = temp_directory / f"{platform}/{user_type}/{user_name}/{date}/{name[1:16]}.mp4"
217
  target_file.parent.mkdir(parents=True, exist_ok=True)
218
  map_target_file = temp_directory / f"{platform}/{user_type}/{user_name}/{date}/file.txt"
 
206
  continue
207
  if user_type not in ("customers",):
208
  continue
209
+ if user_name not in ("找光小吕",):
210
  continue
211
  if date not in ("20260119",):
212
  continue
213
 
214
  cache_dir = temp_directory / "hf_cache_dir"
215
 
216
+ #ffmpeg -f concat -safe 0 -i file.txt -c copy output.mp4
217
+
218
  target_file = temp_directory / f"{platform}/{user_type}/{user_name}/{date}/{name[1:16]}.mp4"
219
  target_file.parent.mkdir(parents=True, exist_ok=True)
220
  map_target_file = temp_directory / f"{platform}/{user_type}/{user_name}/{date}/file.txt"