logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: acd620c930a92511c2e2099a4fc82d41825fdf93
parent 27694fe7ad77d5f99d7b46fa7395f4ccbb378777
Author: Remita Amine <remitamine@gmail.com>
Date:   Sat, 19 May 2018 12:19:05 +0100

[teamcoco] improve _VALID_URL regex(#16484)

Diffstat:

Myoutube_dl/extractor/teamcoco.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/teamcoco.py b/youtube_dl/extractor/teamcoco.py @@ -16,7 +16,7 @@ from ..utils import ( class TeamcocoIE(InfoExtractor): - _VALID_URL = r'https?://teamcoco\.com/video/(?P<id>[^/?#]+)' + _VALID_URL = r'https?://teamcoco\.com/video/(?P<id>([^/]+/)*[^/?#]+)' _TESTS = [ { 'url': 'http://teamcoco.com/video/mary-kay-remote', @@ -67,6 +67,9 @@ class TeamcocoIE(InfoExtractor): 'skip_download': True, # m3u8 downloads }, 'skip': 'This video is no longer available.', + }, { + 'url': 'http://teamcoco.com/video/the-conan-audiencey-awards-for-04/25/18', + 'only_matching': True, } ]