projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[crackle] Add support for sonycrackle.com (closes #16698)
[youtube-dl]
/
youtube_dl
/
extractor
/
testurl.py
diff --git
a/youtube_dl/extractor/testurl.py
b/youtube_dl/extractor/testurl.py
index bdc6e206427a655fd50b7132a1c69e3e2e4a51f7..46918adb05fc77d45b480b138575afff9d69a086 100644
(file)
--- a/
youtube_dl/extractor/testurl.py
+++ b/
youtube_dl/extractor/testurl.py
@@
-7,7
+7,7
@@
from ..utils import ExtractorError
class TestURLIE(InfoExtractor):
class TestURLIE(InfoExtractor):
- """ Allows adressing of the test cases as test:yout.*be_1 """
+ """ Allows ad
d
ressing of the test cases as test:yout.*be_1 """
IE_DESC = False # Do not list
_VALID_URL = r'test(?:url)?:(?P<id>(?P<extractor>.+?)(?:_(?P<num>[0-9]+))?)$'
IE_DESC = False # Do not list
_VALID_URL = r'test(?:url)?:(?P<id>(?P<extractor>.+?)(?:_(?P<num>[0-9]+))?)$'
@@
-39,6
+39,8
@@
class TestURLIE(InfoExtractor):
('Found multiple matching extractors: %s' %
' '.join(ie.IE_NAME for ie in matching_extractors)),
expected=True)
('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
num_str = mobj.group('num')
num = int(num_str) if num_str else 0