From 10eaeb20c5bff78444b4f38098dd8ef89e29cba4 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 24 Aug 2014 02:29:02 +0200 Subject: [PATCH] [generic] Require og:video URLs to contain a dot --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 5bd315051e..f05ac4d38d 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'