Browse Source

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

master-ytdl-org
Sergey M․ 6 years ago
parent
commit
609850acfb
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/extractor/pandoratv.py

+ 5
- 1
youtube_dl/extractor/pandoratv.py View File

@ -24,7 +24,8 @@ class PandoraTVIE(InfoExtractor):
https?://
(?:
(?: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 = [{
@ -64,6 +65,9 @@ class PandoraTVIE(InfoExtractor):
}, {
'url': 'http://www.pandora.tv/view/mikakim/53294230#36797454_new',
'only_matching': True,
}, {
'url': 'http://m.pandora.tv/?c=view&ch_userid=mikakim&prgid=54600346',
'only_matching': True,
}]
def _real_extract(self, url):


Loading…
Cancel
Save