[generic] Require og:video URLs to contain a dot
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 24 Aug 2014 00:29:02 +0000 (02:29 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 24 Aug 2014 00:29:56 +0000 (02:29 +0200)
youtube_dl/extractor/generic.py

index 5bd315051e7cfe2f003c675e0142fdf6234fc566..f05ac4d38d57ec70621625b0d1a052fa1400e5ea 100644 (file)
@@ -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)))