projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
252e172
)
[acast] Extend _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Sun, 16 Dec 2018 21:32:59 +0000
(
04:32
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 16 Dec 2018 21:32:59 +0000
(
04:32
+0700)
youtube_dl/extractor/acast.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/acast.py
b/youtube_dl/extractor/acast.py
index 1fbff705de34e3c1a317136c05da1a2a93208e92..b32f74a37fd188ca0f7881723ea394d2ef26182c 100644
(file)
--- a/
youtube_dl/extractor/acast.py
+++ b/
youtube_dl/extractor/acast.py
@@
-17,7
+17,14
@@
from ..utils import (
class ACastIE(InfoExtractor):
IE_NAME = 'acast'
class ACastIE(InfoExtractor):
IE_NAME = 'acast'
- _VALID_URL = r'https?://(?:(?:embed|www)\.)?acast\.com/(?P<channel>[^/]+)/(?P<id>[^/#?]+)'
+ _VALID_URL = r'''(?x)
+ https?://
+ (?:
+ (?:(?:embed|www)\.)?acast\.com/|
+ play\.acast\.com/s/
+ )
+ (?P<channel>[^/]+)/(?P<id>[^/#?]+)
+ '''
_TESTS = [{
'url': 'https://www.acast.com/sparpodcast/2.raggarmordet-rosterurdetforflutna',
'md5': 'a02393c74f3bdb1801c3ec2695577ce0',
_TESTS = [{
'url': 'https://www.acast.com/sparpodcast/2.raggarmordet-rosterurdetforflutna',
'md5': 'a02393c74f3bdb1801c3ec2695577ce0',
@@
-36,6
+43,9
@@
class ACastIE(InfoExtractor):
}, {
'url': 'http://embed.acast.com/adambuxton/ep.12-adam-joeschristmaspodcast2015',
'only_matching': True,
}, {
'url': 'http://embed.acast.com/adambuxton/ep.12-adam-joeschristmaspodcast2015',
'only_matching': True,
+ }, {
+ 'url': 'https://play.acast.com/s/rattegangspodden/s04e09-styckmordet-i-helenelund-del-22',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):