projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a5106
)
[generic] exclude urls with xml ext from valid video urls(closes #10768)(closes ...
author
Remita Amine
<remitamine@gmail.com>
Wed, 12 Apr 2017 15:22:08 +0000
(16:22 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Wed, 12 Apr 2017 15:22:08 +0000
(16:22 +0100)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 4690816cbb36fc9372d28051a7753a036556ad54..36d23d2f37181a37e3ba79db9c9e65ec42d7d960 100644
(file)
--- 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))