mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[mtv] Fix non-hls extraction
method attribute may not be present
This commit is contained in:
parent
2032d935d1
commit
20faad74b6
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def _extract_video_formats(self, mdoc, mtvn_id, video_id):
|
|||
|
||||
formats = []
|
||||
for rendition in mdoc.findall('.//rendition'):
|
||||
if rendition.attrib['method'] == 'hls':
|
||||
if rendition.get('method') == 'hls':
|
||||
hls_url = rendition.find('./src').text
|
||||
formats.extend(self._extract_m3u8_formats(hls_url, video_id, ext='mp4'))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue