mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-10 10:49:45 +00:00
[compat, networking] Deprecate old functions (#2861)
Authored by: coletdjnz, pukkandan
This commit is contained in:
@@ -7,13 +7,13 @@ import hashlib
|
||||
|
||||
from .once import OnceIE
|
||||
from .adobepass import AdobePassIE
|
||||
from ..networking import Request
|
||||
from ..utils import (
|
||||
determine_ext,
|
||||
ExtractorError,
|
||||
float_or_none,
|
||||
int_or_none,
|
||||
parse_qs,
|
||||
sanitized_Request,
|
||||
unsmuggle_url,
|
||||
update_url_query,
|
||||
xpath_with_ns,
|
||||
@@ -270,7 +270,7 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
|
||||
source_url = smuggled_data.get('source_url')
|
||||
if source_url:
|
||||
headers['Referer'] = source_url
|
||||
request = sanitized_Request(url, headers=headers)
|
||||
request = Request(url, headers=headers)
|
||||
webpage = self._download_webpage(request, video_id)
|
||||
smil_url = self._search_regex(
|
||||
r'<link[^>]+href=(["\'])(?P<url>.+?)\1[^>]+type=["\']application/smil\+xml',
|
||||
|
Reference in New Issue
Block a user