Make the fix work
This commit is contained in:
parent
47c2010f7f
commit
76c45a45ea
|
@ -283,9 +283,9 @@ async def main():
|
||||||
for i in ('hls_url', 'dash_url'):
|
for i in ('hls_url', 'dash_url'):
|
||||||
if not ffmpeg_exists:
|
if not ffmpeg_exists:
|
||||||
continue
|
continue
|
||||||
url = reddit_video.get(i)
|
if not reddit_video.get(i):
|
||||||
if not url:
|
|
||||||
continue
|
continue
|
||||||
|
url = reddit_video[i]
|
||||||
print(url)
|
print(url)
|
||||||
proc = await asyncio.create_subprocess_exec('ffmpeg', '-nostdin', '-y', '-i', url, '-c', 'copy', '-f', 'mp4', filename)
|
proc = await asyncio.create_subprocess_exec('ffmpeg', '-nostdin', '-y', '-i', url, '-c', 'copy', '-f', 'mp4', filename)
|
||||||
await proc.communicate()
|
await proc.communicate()
|
||||||
|
|
Loading…
Reference in New Issue