diff options
author | remitamine <remitamine@gmail.com> | 2016-02-20 08:06:12 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-02-20 08:06:12 +0100 |
commit | f34294fa0c0097cea7f6388d5d691d5a54950491 (patch) | |
tree | 44b19a55a2368ec9ccaf79c2a5396f485735a4dc /youtube_dl/downloader/external.py | |
parent | 99cbe98ce8617c119c2fb6a567b0e6ef7eae8859 (diff) |
[downloader/external:ffmpegfd] check for None value of start_time
Diffstat (limited to 'youtube_dl/downloader/external.py')
-rw-r--r-- | youtube_dl/downloader/external.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |