[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
parent 227bf1a33b
commit 3d2623a898
176 changed files with 707 additions and 729 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')