projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db96252
)
[generic] Fix infinite recursion for twitter:player URLs (closes #14339)
author
Sergey M․
<dstftw@gmail.com>
Tue, 26 Sep 2017 14:47:18 +0000
(21:47 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 26 Sep 2017 14:47:18 +0000
(21:47 +0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 7d0edf09c6a2e8428b84b3e7ebf787738db1bfaa..096e2aab43569458704b2420a64f8e367002d00e 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-2973,7
+2973,7
@@
class GenericIE(InfoExtractor):
# 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)
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)
if not found: