diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-25 10:43:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-25 10:43:34 +0100 |
commit | 4d756a9cc01ed2e85b2ea540b70c78dee10fc118 (patch) | |
tree | 0761fa8dd61e84a769d4070c576e09dfd287153b /youtube_dl | |
parent | 3e668e05bee6889cd07b853fed2a67d0bf8a700f (diff) |
[testurl] Fix case when only one IE matches
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/testurl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/testurl.py b/youtube_dl/extractor/testurl.py index bdc6e2064..c7d559315 100644 --- 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 |