From: Philipp Hagemeister Date: Sun, 24 Aug 2014 00:29:02 +0000 (+0200) Subject: [generic] Require og:video URLs to contain a dot X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=10eaeb20c5bff78444b4f38098dd8ef89e29cba4;p=youtube-dl [generic] Require og:video URLs to contain a dot --- 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'