aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-12 16:22:08 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-12 16:22:08 +0100
commit0ee79a378ad9536cfb580187c9a30a0463ad5d8b (patch)
tree0810dd7800f906f29298c45c737f572e2e934b7f
parent79a51069e5c08afe7bf15bca7fcdf44fd0d93eb6 (diff)
[generic] exclude urls with xml ext from valid video urls(closes #10768)(closes #11654)
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
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))