Explorar o código

[generic] Require og:video URLs to contain a dot

Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
10eaeb20c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/generic.py

+ 1 - 1
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)))