mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-24 22:11:48 +01:00
[ruutu] Skip NOT-USED URLs(Closes #7478)
This commit is contained in:
parent
1ebb4717df
commit
5d6c3d6a66
@ -57,7 +57,8 @@ class RuutuIE(InfoExtractor):
|
|||||||
extract_formats(child)
|
extract_formats(child)
|
||||||
elif child.tag.endswith('File'):
|
elif child.tag.endswith('File'):
|
||||||
video_url = child.text
|
video_url = child.text
|
||||||
if not video_url or video_url in processed_urls or 'NOT_USED' in video_url:
|
if (not video_url or video_url in processed_urls or
|
||||||
|
any(p in video_url for p in ('NOT_USED', 'NOT-USED'))):
|
||||||
return
|
return
|
||||||
processed_urls.append(video_url)
|
processed_urls.append(video_url)
|
||||||
ext = determine_ext(video_url)
|
ext = determine_ext(video_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user