aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-06-12 02:06:30 +0700
committerSergey M․ <dstftw@gmail.com>2018-06-12 02:06:30 +0700
commitdc53c7863481f927bb011ad28784facec428ce22 (patch)
tree645ba9c59902df27d9bc144c3ca44be4e4306076
parent7dc9c60b4b848f4b1d38b2995c7d421c89be93c0 (diff)
downloadyoutube-dl-dc53c7863481f927bb011ad28784facec428ce22.tar.xz
[crackle] Add support for sonycrackle.com (closes #16698)
-rw-r--r--youtube_dl/extractor/crackle.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/crackle.py b/youtube_dl/extractor/crackle.py
index fc014f8b5..f4a616455 100644
--- a/youtube_dl/extractor/crackle.py
+++ b/youtube_dl/extractor/crackle.py
@@ -19,8 +19,8 @@ from ..utils import (
class CrackleIE(InfoExtractor):
- _VALID_URL = r'(?:crackle:|https?://(?:(?:www|m)\.)?crackle\.com/(?:playlist/\d+/|(?:[^/]+/)+))(?P<id>\d+)'
- _TEST = {
+ _VALID_URL = r'(?:crackle:|https?://(?:(?:www|m)\.)?(?:sony)?crackle\.com/(?:playlist/\d+/|(?:[^/]+/)+))(?P<id>\d+)'
+ _TESTS = [{
# geo restricted to CA
'url': 'https://www.crackle.com/andromeda/2502343',
'info_dict': {
@@ -45,7 +45,10 @@ class CrackleIE(InfoExtractor):
# m3u8 download
'skip_download': True,
}
- }
+ }, {
+ 'url': 'https://www.sonycrackle.com/andromeda/2502343',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)