mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 06:42:21 +00:00
[testurl] Fix case when only one IE matches
This commit is contained in:
parent
3e668e05be
commit
4d756a9cc0
@ -39,6 +39,8 @@ class TestURLIE(InfoExtractor):
|
|||||||
('Found multiple matching extractors: %s' %
|
('Found multiple matching extractors: %s' %
|
||||||
' '.join(ie.IE_NAME for ie in matching_extractors)),
|
' '.join(ie.IE_NAME for ie in matching_extractors)),
|
||||||
expected=True)
|
expected=True)
|
||||||
|
else:
|
||||||
|
extractor = matching_extractors[0]
|
||||||
|
|
||||||
num_str = mobj.group('num')
|
num_str = mobj.group('num')
|
||||||
num = int(num_str) if num_str else 0
|
num = int(num_str) if num_str else 0
|
||||||
|
Loading…
Reference in New Issue
Block a user