diff options
author | Remita Amine <remitamine@gmail.com> | 2017-04-12 16:22:08 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2017-04-12 16:22:08 +0100 |
commit | 0ee79a378ad9536cfb580187c9a30a0463ad5d8b (patch) | |
tree | 0810dd7800f906f29298c45c737f572e2e934b7f /youtube_dl/extractor | |
parent | 79a51069e5c08afe7bf15bca7fcdf44fd0d93eb6 (diff) | |
download | youtube-dl-0ee79a378ad9536cfb580187c9a30a0463ad5d8b.tar.xz |
[generic] exclude urls with xml ext from valid video urls(closes #10768)(closes #11654)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
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)) |