commit: 4d756a9cc01ed2e85b2ea540b70c78dee10fc118
parent 3e668e05bee6889cd07b853fed2a67d0bf8a700f
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Tue, 25 Feb 2014 10:43:34 +0100
[testurl] Fix case when only one IE matches
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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