aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/hypem.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-05 20:42:21 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-05 20:42:21 +0600
commitea14422ff12a5184794880befe50f1cac4686ea6 (patch)
treec39ee5319a792631bfa95a1350f3742a23fbfc07 /youtube_dl/extractor/hypem.py
parent38d05d17e54ead57eefd7b33c5ff261f127315a8 (diff)
[hypem] Correctly handle cookies (Closes #7762)
Diffstat (limited to 'youtube_dl/extractor/hypem.py')
-rw-r--r--youtube_dl/extractor/hypem.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/youtube_dl/extractor/hypem.py b/youtube_dl/extractor/hypem.py
index cca3dd498..c8a74bfc7 100644
--- a/youtube_dl/extractor/hypem.py
+++ b/youtube_dl/extractor/hypem.py
@@ -33,7 +33,6 @@ class HypemIE(InfoExtractor):
request = sanitized_Request(complete_url)
response, urlh = self._download_webpage_handle(
request, track_id, 'Downloading webpage with the url')
- cookie = urlh.headers.get('Set-Cookie', '')
html_tracks = self._html_search_regex(
r'(?ms)<script type="application/json" id="displayList-data">\s*(.*?)\s*</script>',
@@ -52,7 +51,6 @@ class HypemIE(InfoExtractor):
serve_url = "http://hypem.com/serve/source/%s/%s" % (track_id, key)
request = sanitized_Request(
serve_url, '', {'Content-Type': 'application/json'})
- request.add_header('cookie', cookie)
song_data = self._download_json(request, track_id, 'Downloading metadata')
final_url = song_data["url"]