[compat, networking] Deprecate old functions (#2861)
Authored by: coletdjnz, pukkandan
This commit is contained in:
parent
227bf1a33b
commit
3d2623a898
176 changed files with 706 additions and 728 deletions
|
|
@ -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, "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue