[spreaker] new url schemes
This commit is contained in:
parent
abb792e7b5
commit
a4d58a6adf
|
@ -64,11 +64,16 @@ def _extract_episode(data, episode_id=None):
|
||||||
class SpreakerIE(InfoExtractor):
|
class SpreakerIE(InfoExtractor):
|
||||||
_VALID_URL = r'''(?x)
|
_VALID_URL = r'''(?x)
|
||||||
https?://
|
https?://
|
||||||
api\.spreaker\.com/
|
(?:(?:api|widget|www)\.)?spreaker\.com/
|
||||||
(?:
|
(?:
|
||||||
(?:download/)?episode|
|
(?:
|
||||||
v2/episodes
|
(?:download/)?episode|
|
||||||
)/
|
v2/episodes
|
||||||
|
)/
|
||||||
|
|(?:
|
||||||
|
player\?(?:.+?&)?episode_id=
|
||||||
|
)
|
||||||
|
)
|
||||||
(?P<id>\d+)
|
(?P<id>\d+)
|
||||||
'''
|
'''
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
@ -95,6 +100,12 @@ class SpreakerIE(InfoExtractor):
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://api.spreaker.com/v2/episodes/12534508?export=episode_segments',
|
'url': 'https://api.spreaker.com/v2/episodes/12534508?export=episode_segments',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.spreaker.com/episode/44098221',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://widget.spreaker.com/player?episode_id=44098221',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue