diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-08-01 22:51:01 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-01 22:51:01 +0700 |
commit | e03d3e64533a2b64293b9ed38b62acd3a8b06d9c (patch) | |
tree | f225b77e3d6289a3ac529b392734971088c518e4 /youtube_dl/extractor/cwtv.py | |
parent | a70e45f80a398fccbb757dd2e166d15f16ffb160 (diff) |
[cwtv] Add support for cwtvpr.com (Closes #10196)
Diffstat (limited to 'youtube_dl/extractor/cwtv.py')
-rw-r--r-- | youtube_dl/extractor/cwtv.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cwtv.py b/youtube_dl/extractor/cwtv.py index ebd14cb16..c66c359cf 100644 --- a/youtube_dl/extractor/cwtv.py +++ b/youtube_dl/extractor/cwtv.py @@ -9,7 +9,7 @@ from ..utils import ( class CWTVIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?cw(?:tv|seed)\.com/(?:shows/)?(?:[^/]+/){2}\?.*\bplay=(?P<id>[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})' + _VALID_URL = r'https?://(?:www\.)?cw(?:tv(?:pr)?|seed)\.com/(?:shows/)?(?:[^/]+/)+[^?]*\?.*\b(?:play|watch)=(?P<id>[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})' _TESTS = [{ 'url': 'http://cwtv.com/shows/arrow/legends-of-yesterday/?play=6b15e985-9345-4f60-baf8-56e96be57c63', 'info_dict': { @@ -51,6 +51,12 @@ class CWTVIE(InfoExtractor): }, { 'url': 'http://cwtv.com/thecw/chroniclesofcisco/?play=8adebe35-f447-465f-ab52-e863506ff6d6', 'only_matching': True, + }, { + 'url': 'http://cwtvpr.com/the-cw/video?watch=9eee3f60-ef4e-440b-b3b2-49428ac9c54e', + 'only_matching': True, + }, { + 'url': 'http://cwtv.com/shows/arrow/legends-of-yesterday/?watch=6b15e985-9345-4f60-baf8-56e96be57c63', + 'only_matching': True, }] def _real_extract(self, url): |