aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/tubitv.py
diff options
context:
space:
mode:
authorJesus <heckyel@riseup.net>2023-09-04 01:59:36 +0800
committerJesus <heckyel@riseup.net>2023-09-04 01:59:36 +0800
commitb3013540b41d1eb77c4803c5fca46f8d75b40fc1 (patch)
tree97735cb0c49f3a2b0f276e1cd90817833d590d69 /hypervideo_dl/extractor/tubitv.py
parenteaeeef9c1d1bedb76fea953c332ef84d53bffe2c (diff)
downloadhypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.tar.lz
hypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.tar.xz
hypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.zip
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/tubitv.py')
-rw-r--r--hypervideo_dl/extractor/tubitv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/hypervideo_dl/extractor/tubitv.py b/hypervideo_dl/extractor/tubitv.py
index de8b5da..bd46bc3 100644
--- a/hypervideo_dl/extractor/tubitv.py
+++ b/hypervideo_dl/extractor/tubitv.py
@@ -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):