mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 01:08:10 +00:00
[generic] Fix infinite recursion for twitter:player URLs (closes #14339)
This commit is contained in:
parent
db96252831
commit
02d01e15f1
1 changed files with 1 additions and 1 deletions
|
@ -2973,7 +2973,7 @@ class GenericIE(InfoExtractor):
|
||||||
# be supported by youtube-dl thus this is checked the very last (see
|
# be supported by youtube-dl thus this is checked the very last (see
|
||||||
# https://dev.twitter.com/cards/types/player#On_twitter.com_via_desktop_browser)
|
# https://dev.twitter.com/cards/types/player#On_twitter.com_via_desktop_browser)
|
||||||
embed_url = self._html_search_meta('twitter:player', webpage, default=None)
|
embed_url = self._html_search_meta('twitter:player', webpage, default=None)
|
||||||
if embed_url:
|
if embed_url and embed_url != url:
|
||||||
return self.url_result(embed_url)
|
return self.url_result(embed_url)
|
||||||
|
|
||||||
if not found:
|
if not found:
|
||||||
|
|
Loading…
Reference in a new issue