projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99cbe98
)
[downloader/external:ffmpegfd] check for None value of start_time
author
remitamine
<remitamine@gmail.com>
Sat, 20 Feb 2016 07:06:12 +0000
(08:06 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 20 Feb 2016 07:06:12 +0000
(08:06 +0100)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index edf85483ba65f9031c8cc5327c634d6dd20805a0..a4fdf1af8053a2d3215cdbcc2f2333ba61d7807c 100644
(file)
--- 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')