1
0
Fork 0

[compat, networking] Deprecate old functions (#2861)

Authored by: coletdjnz, pukkandan
This commit is contained in:
coletdjnz 2023-07-09 13:23:02 +05:30 committed by pukkandan
commit 3d2623a898
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
176 changed files with 706 additions and 728 deletions

View file

@ -2,11 +2,8 @@ from datetime import datetime
import base64
from .common import InfoExtractor
from ..utils import (
HEADRequest,
int_or_none,
urlencode_postdata,
)
from ..networking import HEADRequest
from ..utils import int_or_none, urlencode_postdata
class TenPlayIE(InfoExtractor):
@ -94,7 +91,7 @@ class TenPlayIE(InfoExtractor):
data.get('playbackApiEndpoint'), content_id, 'Downloading video JSON',
headers=headers).get('source')
m3u8_url = self._request_webpage(HEADRequest(
_video_url), content_id).geturl()
_video_url), content_id).url
if '10play-not-in-oz' in m3u8_url:
self.raise_geo_restricted(countries=['AU'])
formats = self._extract_m3u8_formats(m3u8_url, content_id, 'mp4')