diff options
author | Philipp Hagemeister <[email protected]> | 2014-08-24 02:29:02 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-08-24 02:29:56 +0200 |
commit | 10eaeb20c5bff78444b4f38098dd8ef89e29cba4 (patch) | |
tree | 11347a2072b06151840b4253290a605022528e1a /youtube_dl | |
parent | fa8deaf38b0d576d693a6565dcdb3b29877a4c94 (diff) | |
download | youtube-dl-10eaeb20c5bff78444b4f38098dd8ef89e29cba4.tar.gz youtube-dl-10eaeb20c5bff78444b4f38098dd8ef89e29cba4.zip |
[generic] Require og:video URLs to contain a dot
Diffstat (limited to 'youtube_dl')
-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 5bd315051..f05ac4d38 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -833,7 +833,7 @@ class GenericIE(InfoExtractor): if m_video_type is not None: def check_video(vurl): vpath = compat_urlparse.urlparse(vurl).path - return not vpath.endswith('.swf') + return '.' in vpath and not vpath.endswith('.swf') found = list(filter( check_video, re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage))) |