projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6612c9
)
[youtube:user] check if the url didn't match only the other youtube extractors
author
remitamine
<remitamine@gmail.com>
Fri, 15 Apr 2016 18:04:37 +0000
(19:04 +0100)
committer
remitamine
<remitamine@gmail.com>
Fri, 15 Apr 2016 18:06:13 +0000
(19:06 +0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 5a102de5109f417561e85bdbff56999a21b1a869..44c1191bd2a2fe5b6dbadf4ee9c0ae1f9b4c869e 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1987,8
+1987,8
@@
class YoutubeUserIE(YoutubeChannelIE):
def suitable(cls, url):
# Don't return True if the url can be extracted with other youtube
# extractor, the regex would is too permissive and it would match.
def suitable(cls, url):
# Don't return True if the url can be extracted with other youtube
# extractor, the regex would is too permissive and it would match.
- other_
ies = iter(klass for (name, klass) in globals().items() if
name.endswith('IE') and klass is not cls)
- if any(ie.suitable(url) for ie in other_ies):
+ other_
yt_ies = iter(klass for (name, klass) in globals().items() if name.startswith('Youtube') and
name.endswith('IE') and klass is not cls)
+ if any(ie.suitable(url) for ie in other_
yt_
ies):
return False
else:
return super(YoutubeUserIE, cls).suitable(url)
return False
else:
return super(YoutubeUserIE, cls).suitable(url)