Update youtube_dl/extractor/tubitv.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
wfaulk 2023-05-11 14:13:50 -04:00 committed by GitHub
parent 0f8938bd1e
commit 92d09b249d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,7 @@ class TubiTvIE(InfoExtractor):
title = video_data['title'] title = video_data['title']
formats = self._extract_m3u8_formats( formats = self._extract_m3u8_formats(
self._proto_relative_url(video_data.get('url') self._proto_relative_url(traverse_obj(video_data, 'url', ('video_resources', 0, 'manifest', 'url'))),
or video_data['video_resources'][0]['manifest']['url']),
video_id, 'mp4', 'm3u8_native') video_id, 'mp4', 'm3u8_native')
self._sort_formats(formats) self._sort_formats(formats)