Browse Source

[periscope] Treat timed_out state as finished stream

totalwebcasting
Sergey M․ 8 years ago
parent
commit
1a2fbe322e
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/periscope.py

+ 1
- 1
youtube_dl/extractor/periscope.py View File

@ -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)


Loading…
Cancel
Save