Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,10 +65,10 @@ def dlvid(vid):
|
|
65 |
for key, value in cookie_dict.items():
|
66 |
cookie_string += f'{key}={value}; path=/; domain=nicovideo.jp; \r\n'
|
67 |
|
68 |
-
ffmpeg_command = f'ffmpeg -protocol_whitelist "concat,file,http,https,tcp,tls,crypto" -i "{hlsuri}" -c copy
|
69 |
-
|
70 |
os.system(ffmpeg_command)
|
71 |
-
return 'test.mp4'
|
72 |
else:
|
73 |
print("请求失败:", response.status_code)
|
74 |
|
|
|
65 |
for key, value in cookie_dict.items():
|
66 |
cookie_string += f'{key}={value}; path=/; domain=nicovideo.jp; \r\n'
|
67 |
|
68 |
+
ffmpeg_command = f'ffmpeg -protocol_whitelist "concat,file,http,https,tcp,tls,crypto" -cookies "{cookie_string}" -i "{hlsuri}" -c copy "test.mp4"'
|
69 |
+
print(ffmpeg_command)
|
70 |
os.system(ffmpeg_command)
|
71 |
+
return './test.mp4'
|
72 |
else:
|
73 |
print("请求失败:", response.status_code)
|
74 |
|