From: remitamine Date: Sat, 20 Feb 2016 07:06:12 +0000 (+0100) Subject: [downloader/external:ffmpegfd] check for None value of start_time X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f34294fa0c0097cea7f6388d5d691d5a54950491;p=youtube-dl [downloader/external:ffmpegfd] check for None value of start_time --- diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index edf85483b..a4fdf1af8 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -175,7 +175,7 @@ class FFmpegFD(ExternalFD): args = [ffpp.executable, '-y'] - start_time = info_dict.get('start_time', 0) + start_time = info_dict.get('start_time') or 0 if start_time: args += ['-ss', compat_str(start_time)] end_time = info_dict.get('end_time')