The re engine does not want to repeat an empty string, for fear that something like
(.*)*
could be matching the tokens ...
""
"" ""
"" "" ""
Of course, that's harmless with a question mark, although still somewhat strange.
class TeamcocoIE(InfoExtractor):
- _VALID_URL = r'http://teamcoco\.com/video/(?P<video_id>\d*)?/?(?P<url_title>.*)'
+ _VALID_URL = r'http://teamcoco\.com/video/(?P<video_id>[0-9]+)?/?(?P<url_title>.*)'
_TESTS = [
{
'url': 'http://teamcoco.com/video/80187/conan-becomes-a-mary-kay-beauty-consultant',