1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

[pandoratv] Add support for mobile URLs (closes #12441)

This commit is contained in:
Sergey M․ 2018-01-11 23:10:18 +07:00
parent 64287560e4
commit 609850acfb
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -24,7 +24,8 @@ class PandoraTVIE(InfoExtractor):
https?:// https?://
(?: (?:
(?:www\.)?pandora\.tv/view/(?P<user_id>[^/]+)/(?P<id>\d+)| # new format (?:www\.)?pandora\.tv/view/(?P<user_id>[^/]+)/(?P<id>\d+)| # new format
(?:.+?\.)?channel\.pandora\.tv/channel/video\.ptv\? # old format (?:.+?\.)?channel\.pandora\.tv/channel/video\.ptv\?| # old format
m\.pandora\.tv/?\? # mobile
) )
''' '''
_TESTS = [{ _TESTS = [{
@ -64,6 +65,9 @@ class PandoraTVIE(InfoExtractor):
}, { }, {
'url': 'http://www.pandora.tv/view/mikakim/53294230#36797454_new', 'url': 'http://www.pandora.tv/view/mikakim/53294230#36797454_new',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://m.pandora.tv/?c=view&ch_userid=mikakim&prgid=54600346',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):