mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[compat, networking] Deprecate old functions (#2861)
Authored by: coletdjnz, pukkandan
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 coletdjnz
					coletdjnz