aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nick.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-08-24 23:58:22 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-08-24 23:58:22 +0800
commit0c75abbb7bb9135d145805e86c87a5a43b69ac15 (patch)
treed606b2a1eaaea4267991b247112a69dfddfbdfef /youtube_dl/extractor/nick.py
parent97653f81b2565c752f2c107fc44167a93c3eef42 (diff)
[mtvservices:embedded] Use another endpoint to get feed URL
Closes #10363 In the original mtvservices:embedded test case, config.xml is still used to get the feed URL. Some other examples, including test_Generic_40 (http://www.vulture.com/2016/06/new-key-peele-sketches-released.html), and the video mentioned in #10363, use another endpoint to get the feed URL. The 'index.html' approach works for the original test case, too. So I didn't keep the old approach.
Diffstat (limited to 'youtube_dl/extractor/nick.py')
-rw-r--r--youtube_dl/extractor/nick.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/nick.py b/youtube_dl/extractor/nick.py
index 9c54846e1..64730a624 100644
--- a/youtube_dl/extractor/nick.py
+++ b/youtube_dl/extractor/nick.py
@@ -2,7 +2,6 @@
from __future__ import unicode_literals
from .mtv import MTVServicesInfoExtractor
-from ..compat import compat_urllib_parse_urlencode
from ..utils import update_url_query
@@ -59,10 +58,10 @@ class NickIE(MTVServicesInfoExtractor):
}]
def _get_feed_query(self, uri):
- return compat_urllib_parse_urlencode({
+ return {
'feed': 'nick_arc_player_prime',
'mgid': uri,
- })
+ }
def _extract_mgid(self, webpage):
return self._search_regex(r'data-contenturi="([^"]+)', webpage, 'mgid')