1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[periscope] Treat timed_out state as finished stream

This commit is contained in:
Sergey M․ 2016-09-27 21:55:51 +07:00
parent f9dd86a112
commit 1a2fbe322e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -87,7 +87,7 @@ class PeriscopeIE(PeriscopeBaseIE):
'ext': 'flv' if format_id == 'rtmp' else 'mp4', 'ext': 'flv' if format_id == 'rtmp' else 'mp4',
} }
if format_id != 'rtmp': if format_id != 'rtmp':
f['protocol'] = 'm3u8_native' if state == 'ended' else 'm3u8' f['protocol'] = 'm3u8_native' if state in ('ended', 'timed_out') else 'm3u8'
formats.append(f) formats.append(f)
self._sort_formats(formats) self._sort_formats(formats)