diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-09-26 21:47:18 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-09-26 21:47:18 +0700 |
commit | 02d01e15f1a52a23cc4991c39219f98aed542136 (patch) | |
tree | ed1df0a546526c05cdec9480836e13e979e928e8 /youtube_dl/extractor | |
parent | db96252831e24ae040de92f4c6668d3eaef82165 (diff) |
[generic] Fix infinite recursion for twitter:player URLs (closes #14339)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 7d0edf09c..096e2aab4 100644 --- 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: |