projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9dd86a
)
[periscope] Treat timed_out state as finished stream
author
Sergey M․
<dstftw@gmail.com>
Tue, 27 Sep 2016 14:55:51 +0000
(21:55 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 27 Sep 2016 14:55:51 +0000
(21:55 +0700)
youtube_dl/extractor/periscope.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/periscope.py
b/youtube_dl/extractor/periscope.py
index e8b2f11c6b2e0bd7842ef4c026e2dbb3cd76bcbf..61043cad5c23880abba1666842cdf7a6490c44b3 100644
(file)
--- 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)