mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[npo] Improve smooth stream skipping and set low preference for streams other than hds ans hls (Closes #5175)
This commit is contained in:
parent
2ebfeacabc
commit
32aaeca775
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,8 @@ def _real_extract(self, url):
|
|||
if streams:
|
||||
for stream in streams:
|
||||
stream_type = stream.get('type').lower()
|
||||
if stream_type == 'ss':
|
||||
# smooth streaming is not supported
|
||||
if stream_type in ['ss', 'ms']:
|
||||
continue
|
||||
stream_info = self._download_json(
|
||||
'http://ida.omroep.nl/aapi/?stream=%s&token=%s&type=jsonp'
|
||||
|
@ -242,6 +243,7 @@ def _real_extract(self, url):
|
|||
else:
|
||||
formats.append({
|
||||
'url': stream_url,
|
||||
'preference': -10,
|
||||
})
|
||||
|
||||
self._sort_formats(formats)
|
||||
|
|
Loading…
Reference in a new issue