From 92d09b249d72d005176086b47e10e468236d2719 Mon Sep 17 00:00:00 2001 From: wfaulk Date: Thu, 11 May 2023 14:13:50 -0400 Subject: [PATCH] Update youtube_dl/extractor/tubitv.py Co-authored-by: dirkf --- youtube_dl/extractor/tubitv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/tubitv.py b/youtube_dl/extractor/tubitv.py index 213ff579f..faefa8c5b 100644 --- a/youtube_dl/extractor/tubitv.py +++ b/youtube_dl/extractor/tubitv.py @@ -68,8 +68,7 @@ class TubiTvIE(InfoExtractor): title = video_data['title'] formats = self._extract_m3u8_formats( - self._proto_relative_url(video_data.get('url') - or video_data['video_resources'][0]['manifest']['url']), + self._proto_relative_url(traverse_obj(video_data, 'url', ('video_resources', 0, 'manifest', 'url'))), video_id, 'mp4', 'm3u8_native') self._sort_formats(formats)