[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
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
176 changed files with 707 additions and 729 deletions

View file

@ -1,13 +1,13 @@
import re
from .common import InfoExtractor
from ..networking import Request
from ..utils import (
ExtractorError,
int_or_none,
js_to_json,
sanitized_Request,
urlencode_postdata,
traverse_obj,
urlencode_postdata,
)
@ -72,8 +72,8 @@ class TubiTvIE(InfoExtractor):
'password': password,
}
payload = urlencode_postdata(form_data)
request = sanitized_Request(self._LOGIN_URL, payload)
request.add_header('Content-Type', 'application/x-www-form-urlencoded')
request = Request(self._LOGIN_URL, payload)
request.headers['Content-Type'] = 'application/x-www-form-urlencoded'
login_page = self._download_webpage(
request, None, False, 'Wrong login info')
if not re.search(r'id="tubi-logout"', login_page):