Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netease] Get netease music download url through player api #31235

Merged
merged 8 commits into from
Oct 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix hash
  • Loading branch information
xyb committed Oct 10, 2022
commit cf0c30fd0c0d6479681185fae2fb172de7349c1b
4 changes: 2 additions & 2 deletions youtube_dl/extractor/neteasemusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def make_player_api_request_data_and_headers(cls, song_id, bitrate):

def _call_player_api(self, song_id, bitrate):
url = 'https://interface3.music.163.com/eapi/song/enhance/player/url'
data, headers = cls.make_player_api_request_data_and_headers(song_id, bitrate)
data, headers = self.make_player_api_request_data_and_headers(song_id, bitrate)
try:
return self._download_json(
url, song_id, data=data.encode('ascii'), headers=headers)
Expand Down Expand Up @@ -162,7 +162,7 @@ class NetEaseMusicIE(NetEaseMusicBaseIE):
'title': 'Opus 28',
'creator': 'Dustin O\'Halloran',
'upload_date': '20080211',
'description': 'md5:...',
'description': 'md5:f12945b0f6e0365e3b73c5032e1b0ff4',
'timestamp': 1202745600,
},
}, {
Expand Down