From: Philipp Hagemeister Date: Tue, 25 Feb 2014 09:43:34 +0000 (+0100) Subject: [testurl] Fix case when only one IE matches X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4d756a9cc01ed2e85b2ea540b70c78dee10fc118;p=youtube-dl [testurl] Fix case when only one IE matches --- 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