]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[testurl] Fix case when only one IE matches
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 25 Feb 2014 09:43:34 +0000 (10:43 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 25 Feb 2014 09:43:34 +0000 (10:43 +0100)
youtube_dl/extractor/testurl.py

index bdc6e206427a655fd50b7132a1c69e3e2e4a51f7..c7d559315be7d2ceed094fab691e4141de5534e7 100644 (file)
@@ -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