mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[npo] Fix non asf streams (Closes #4680)
This commit is contained in:
parent
15aecd8711
commit
a0977064ce
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
strip_jsonp,
|
strip_jsonp,
|
||||||
url_basename,
|
url_basename,
|
||||||
fix_xml_ampersands,
|
fix_xml_ampersands,
|
||||||
|
determine_ext,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -125,6 +126,12 @@ def _get_info(self, video_id):
|
||||||
stream_url = stream.get('url')
|
stream_url = stream.get('url')
|
||||||
if not stream_url:
|
if not stream_url:
|
||||||
continue
|
continue
|
||||||
|
if determine_ext(stream_url).lower() != 'asf':
|
||||||
|
formats.append({
|
||||||
|
'url': stream_url,
|
||||||
|
'quality': stream.get('kwaliteit'),
|
||||||
|
})
|
||||||
|
continue
|
||||||
asx = self._download_xml(
|
asx = self._download_xml(
|
||||||
stream_url, video_id,
|
stream_url, video_id,
|
||||||
'Downloading stream %d ASX playlist' % i,
|
'Downloading stream %d ASX playlist' % i,
|
||||||
|
|
Loading…
Reference in a new issue