0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[downloader/external:ffmpegfd] check for None value of start_time

This commit is contained in:
remitamine 2016-02-20 08:06:12 +01:00
parent 99cbe98ce8
commit f34294fa0c

View file

@ -175,7 +175,7 @@ def _call_downloader(self, tmpfilename, info_dict):
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')