Update yt_dlp/extractor/trtworld.py

This commit is contained in:
pukkandan 2023-12-03 19:09:08 +05:30 committed by GitHub
parent 24db55f603
commit e8d3dfbaa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class TrtWorldIE(InfoExtractor):
formats = [] formats = []
for media_url in traverse_obj(nuxtjs_data, ( for media_url in traverse_obj(nuxtjs_data, (
'platforms', ('website', 'ott'), 'metadata', ('hls_url', 'url'), {url_or_none})): 'platforms', ('website', 'ott'), 'metadata', ('hls_url', 'url'), {url_or_none})):
# Website sometimes serves mp4 files under `hls_url` key # NB: Website sometimes serves mp4 files under `hls_url` key
if media_url.endswith('.m3u8'): if media_url.endswith('.m3u8'):
formats.extend(self._extract_m3u8_formats(media_url, display_id, fatal=False)) formats.extend(self._extract_m3u8_formats(media_url, display_id, fatal=False))
else: else: