1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-09-21 02:45:49 +00:00

Match merged yt-dlp extractor

This commit is contained in:
dirkf 2024-09-14 23:18:32 +01:00 committed by GitHub
parent 3d122d40c1
commit 7ac17d4b44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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']), 'https://vod.ten.com.au/api/videos/bcquery?command=find_videos_by_id&video_id={0}'.format(data['altId']),
content_id, 'Downloading video JSON') content_id, 'Downloading video JSON')
m3u8_url = self._request_webpage( 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 content_id, 'Checking stream URL').url
if '10play-not-in-oz' in m3u8_url: if '10play-not-in-oz' in m3u8_url:
self.raise_geo_restricted() self.raise_geo_restricted()