[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

@ -225,10 +225,10 @@ class TuneInShortenerIE(InfoExtractor):
urlh = self._request_webpage(
url, redirect_id, note='Downloading redirect page')
url = urlh.geturl()
url = urlh.url
url_parsed = urllib.parse.urlparse(url)
if url_parsed.port == 443:
url = url_parsed._replace(netloc=url_parsed.hostname).geturl()
url = url_parsed._replace(netloc=url_parsed.hostname).url
self.to_screen('Following redirect: %s' % url)
return self.url_result(url)