projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebb471
)
[ruutu] Skip NOT-USED URLs(Closes #7478)
author
Sergey M․
<dstftw@gmail.com>
Thu, 12 Nov 2015 20:41:38 +0000
(
02:41
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 12 Nov 2015 20:41:38 +0000
(
02:41
+0600)
youtube_dl/extractor/ruutu.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ruutu.py
b/youtube_dl/extractor/ruutu.py
index a16b73ff4025fb78a9358282c6f01c523327f8e2..c19107cb05e36b48475c6ec75efcf35c74a98945 100644
(file)
--- 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)