]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader/external:ffmpegfd] check for None value of start_time
authorremitamine <remitamine@gmail.com>
Sat, 20 Feb 2016 07:06:12 +0000 (08:06 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 20 Feb 2016 07:06:12 +0000 (08:06 +0100)
youtube_dl/downloader/external.py

index edf85483ba65f9031c8cc5327c634d6dd20805a0..a4fdf1af8053a2d3215cdbcc2f2333ba61d7807c 100644 (file)
@@ -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')