From 76c45a45ea056f994168ce3f5ff05f2c7f21cce5 Mon Sep 17 00:00:00 2001 From: blank X Date: Fri, 4 Dec 2020 11:59:14 +0700 Subject: [PATCH] Make the fix work --- redditbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redditbot.py b/redditbot.py index cdf3147..9b118ac 100644 --- a/redditbot.py +++ b/redditbot.py @@ -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()