Browse Source

[testurl] Fix case when only one IE matches

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
4d756a9cc0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/testurl.py

+ 2
- 0
youtube_dl/extractor/testurl.py View 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


Loading…
Cancel
Save