aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/external.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-20 08:06:12 +0100
committerremitamine <remitamine@gmail.com>2016-02-20 08:06:12 +0100
commitf34294fa0c0097cea7f6388d5d691d5a54950491 (patch)
tree44b19a55a2368ec9ccaf79c2a5396f485735a4dc /youtube_dl/downloader/external.py
parent99cbe98ce8617c119c2fb6a567b0e6ef7eae8859 (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.py2
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')