From 4d756a9cc01ed2e85b2ea540b70c78dee10fc118 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Feb 2014 10:43:34 +0100 Subject: [PATCH] [testurl] Fix case when only one IE matches --- youtube_dl/extractor/testurl.py | 2 ++ 1 file changed, 2 insertions(+) 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