aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-01-11 23:10:18 +0700
committerSergey M․ <dstftw@gmail.com>2018-01-11 23:10:18 +0700
commit609850acfb6c03dcdfa4d9cdba77df3b0a259968 (patch)
tree61734684984a4793997ba04bbc4cc60452350021
parent64287560e4a7af9401e84318d9d04783c1b289af (diff)
downloadyoutube-dl-609850acfb6c03dcdfa4d9cdba77df3b0a259968.zip
youtube-dl-609850acfb6c03dcdfa4d9cdba77df3b0a259968.tar.gz
youtube-dl-609850acfb6c03dcdfa4d9cdba77df3b0a259968.tar.bz2
[pandoratv] Add support for mobile URLs (closes #12441)
-rw-r--r--youtube_dl/extractor/pandoratv.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pandoratv.py b/youtube_dl/extractor/pandoratv.py
index 0c27a61..538738c 100644
--- a/youtube_dl/extractor/pandoratv.py
+++ b/youtube_dl/extractor/pandoratv.py
@@ -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):