From: Remita Amine Date: Wed, 12 Apr 2017 15:22:08 +0000 (+0100) Subject: [generic] exclude urls with xml ext from valid video urls(closes #10768)(closes ... X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=0ee79a378ad9536cfb580187c9a30a0463ad5d8b;p=youtube-dl.git [generic] exclude urls with xml ext from valid video urls(closes #10768)(closes #11654) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 4690816cb..36d23d2f3 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2611,7 +2611,7 @@ class GenericIE(InfoExtractor): return True vpath = compat_urlparse.urlparse(vurl).path vext = determine_ext(vpath) - return '.' in vpath and vext not in ('swf', 'png', 'jpg', 'srt', 'sbv', 'sub', 'vtt', 'ttml', 'js') + return '.' in vpath and vext not in ('swf', 'png', 'jpg', 'srt', 'sbv', 'sub', 'vtt', 'ttml', 'js', 'xml') def filter_video(urls): return list(filter(check_video, urls))