Make the fix work

This commit is contained in:
blank X 2020-12-04 11:59:14 +07:00
parent 47c2010f7f
commit 76c45a45ea
1 changed files with 2 additions and 2 deletions

View File

@ -283,9 +283,9 @@ async def main():
for i in ('hls_url', 'dash_url'):
if not ffmpeg_exists:
continue
url = reddit_video.get(i)
if not url:
if not reddit_video.get(i):
continue
url = reddit_video[i]
print(url)
proc = await asyncio.create_subprocess_exec('ffmpeg', '-nostdin', '-y', '-i', url, '-c', 'copy', '-f', 'mp4', filename)
await proc.communicate()