1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-01-03 16:26:19 +00:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Morgan Harris
959587c8ff
Merge 3d122d40c1 into c5098961b0 2024-09-11 17:06:02 +00:00

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(video_data['items'][0]['HLSURL']), HEADRequest(traverse_obj(video_data, ('items', 0, 'HLSURL', T(url_or_none)))),
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()