mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-04 04:07:26 +00:00
This commit is contained in:
parent
79a51069e5
commit
0ee79a378a
1 changed files with 1 additions and 1 deletions
|
@ -2611,7 +2611,7 @@ def check_video(vurl):
|
||||||
return True
|
return True
|
||||||
vpath = compat_urlparse.urlparse(vurl).path
|
vpath = compat_urlparse.urlparse(vurl).path
|
||||||
vext = determine_ext(vpath)
|
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):
|
def filter_video(urls):
|
||||||
return list(filter(check_video, urls))
|
return list(filter(check_video, urls))
|
||||||
|
|
Loading…
Reference in a new issue