mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 00:25:08 +00:00
[compat, networking] Deprecate old functions (#2861)
Authored by: coletdjnz, pukkandan
This commit is contained in:
@ -1596,7 +1596,7 @@ class TwitterShortenerIE(TwitterBaseIE):
|
||||
if eid:
|
||||
id = eid
|
||||
url = self._BASE_URL + id
|
||||
new_url = self._request_webpage(url, id, headers={'User-Agent': 'curl'}).geturl()
|
||||
new_url = self._request_webpage(url, id, headers={'User-Agent': 'curl'}).url
|
||||
__UNSAFE_LINK = "https://twitter.com/safety/unsafe_link_warning?unsafe_link="
|
||||
if new_url.startswith(__UNSAFE_LINK):
|
||||
new_url = new_url.replace(__UNSAFE_LINK, "")
|
||||
|
Reference in New Issue
Block a user