logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 1a2fbe322ee2d711b474f32a7d3f331791fb1881
parent f9dd86a112835e04e271e8d1d844f250e6ff0c5e
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 27 Sep 2016 21:55:51 +0700

[periscope] Treat timed_out state as finished stream

Diffstat:

Myoutube_dl/extractor/periscope.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py @@ -87,7 +87,7 @@ class PeriscopeIE(PeriscopeBaseIE): 'ext': 'flv' if format_id == 'rtmp' else 'mp4', } 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) self._sort_formats(formats)