[pandoratv] Add support for mobile URLs (closes #12441)
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Jan 2018 16:10:18 +0000 (23:10 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Jan 2018 16:10:18 +0000 (23:10 +0700)
youtube_dl/extractor/pandoratv.py

index 0c27a61d7d446c7ffde9daa889a872f2e184a19f..538738c090a515c296969dab9762ee1d643d1382 100644 (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):