mzltest commited on
Commit
b81ee0f
1 Parent(s): ef39d78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 -cookies "{cookie_string}" "test.mp4"'
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