projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e668e0
)
[testurl] Fix case when only one IE matches
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 25 Feb 2014 09:43:34 +0000
(10:43 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 25 Feb 2014 09:43:34 +0000
(10:43 +0100)
youtube_dl/extractor/testurl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/testurl.py
b/youtube_dl/extractor/testurl.py
index bdc6e206427a655fd50b7132a1c69e3e2e4a51f7..c7d559315be7d2ceed094fab691e4141de5534e7 100644
(file)
--- a/
youtube_dl/extractor/testurl.py
+++ b/
youtube_dl/extractor/testurl.py
@@
-39,6
+39,8
@@
class TestURLIE(InfoExtractor):
('Found multiple matching extractors: %s' %
' '.join(ie.IE_NAME for ie in matching_extractors)),
expected=True)
+ else:
+ extractor = matching_extractors[0]
num_str = mobj.group('num')
num = int(num_str) if num_str else 0