diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-28 04:01:21 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-28 04:01:21 +0600 |
commit | 52af8f222bc4f067b4c5e7a977a64345d35ae4fe (patch) | |
tree | aa82b1227dd3b58be63d7e6b506d396d3251d034 /youtube_dl/extractor/cwtv.py | |
parent | 3cc8649c9d42bab8c7b665115ebdc569bf44a762 (diff) |
[cwtv] Relax _VALID_URL (Closes #9327)
Diffstat (limited to 'youtube_dl/extractor/cwtv.py')
-rw-r--r-- | youtube_dl/extractor/cwtv.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cwtv.py b/youtube_dl/extractor/cwtv.py index f5cefd966..ebd14cb16 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}\?play=(?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|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})' _TESTS = [{ 'url': 'http://cwtv.com/shows/arrow/legends-of-yesterday/?play=6b15e985-9345-4f60-baf8-56e96be57c63', 'info_dict': { @@ -48,6 +48,9 @@ class CWTVIE(InfoExtractor): # m3u8 download 'skip_download': True, } + }, { + 'url': 'http://cwtv.com/thecw/chroniclesofcisco/?play=8adebe35-f447-465f-ab52-e863506ff6d6', + 'only_matching': True, }] def _real_extract(self, url): |