aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-13 02:41:38 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-13 02:41:38 +0600
commit5d6c3d6a665ed5de89bb3b056bb051b043400897 (patch)
treeebd95bb17c899af50e47775892db2576f709b620 /youtube_dl/extractor
parent1ebb4717dfc67890c66abd4274e201cafda48e79 (diff)
[ruutu] Skip NOT-USED URLs(Closes #7478)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ruutu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ruutu.py b/youtube_dl/extractor/ruutu.py
index a16b73ff4..c19107cb0 100644
--- a/youtube_dl/extractor/ruutu.py
+++ b/youtube_dl/extractor/ruutu.py
@@ -57,7 +57,8 @@ class RuutuIE(InfoExtractor):
extract_formats(child)
elif child.tag.endswith('File'):
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
processed_urls.append(video_url)
ext = determine_ext(video_url)