0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-03 03:57:26 +00:00

[generic] exclude urls with xml ext from valid video urls(closes #10768)(closes #11654)

This commit is contained in:
Remita Amine 2017-04-12 16:22:08 +01:00
parent 79a51069e5
commit 0ee79a378a

View file

@ -2611,7 +2611,7 @@ def check_video(vurl):
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))