projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7dc9c60
)
[crackle] Add support for sonycrackle.com (closes #16698)
author
Sergey M․
<dstftw@gmail.com>
Mon, 11 Jun 2018 19:06:30 +0000
(
02:06
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 11 Jun 2018 19:06:30 +0000
(
02:06
+0700)
youtube_dl/extractor/crackle.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/crackle.py
b/youtube_dl/extractor/crackle.py
index fc014f8b558008f971448153c56fb45354ee641f..f4a61645502a3b064a62bcd807dc2fcb5835254b 100644
(file)
--- a/
youtube_dl/extractor/crackle.py
+++ b/
youtube_dl/extractor/crackle.py
@@
-19,8
+19,8
@@
from ..utils import (
class CrackleIE(InfoExtractor):
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+)'
+ _TEST
S = [
{
# geo restricted to CA
'url': 'https://www.crackle.com/andromeda/2502343',
'info_dict': {
# 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,
}
# 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)
def _real_extract(self, url):
video_id = self._match_id(url)