From 7ac17d4b4469d23e575c3483695a790a309b2ff8 Mon Sep 17 00:00:00 2001 From: dirkf Date: Sat, 14 Sep 2024 23:18:32 +0100 Subject: [PATCH] Match merged yt-dlp extractor --- youtube_dl/extractor/tenplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tenplay.py b/youtube_dl/extractor/tenplay.py index 4f60d0225..11c3d72ab 100644 --- a/youtube_dl/extractor/tenplay.py +++ b/youtube_dl/extractor/tenplay.py @@ -117,7 +117,7 @@ class TenPlayIE(TenPlayBase): 'https://vod.ten.com.au/api/videos/bcquery?command=find_videos_by_id&video_id={0}'.format(data['altId']), content_id, 'Downloading video JSON') m3u8_url = self._request_webpage( - HEADRequest(traverse_obj(video_data, ('items', 0, 'HLSURL', T(url_or_none)))), + HEADRequest(video_data['items'][0]['HLSURL']), content_id, 'Checking stream URL').url if '10play-not-in-oz' in m3u8_url: self.raise_geo_restricted()