Skip to content

Commit

Permalink
再次修复在线音乐接口问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyiYo committed Feb 9, 2024
1 parent 386885a commit fde2199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/common/crawler/kuwo_url_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def decode_song_url(rid: str, format='mp3'):
if format not in ['mp3', 'aac', 'flac']:
raise ValueError(f'The format `{format}` is invalid')

return "http://mobi.kuwo.cn/mobi.s?f=kuwo&q=" + KuwoDES.base64_encrypt(KuwoDES, f"corp=kuwo&p2p=1&type=convert_url2&format={format}&rid={rid}")
return "http://mobi.kuwo.cn/mobi.s?f=kuwo&q=" + KuwoDES.base64_encrypt(KuwoDES, f"corp=kuwo&p2p=1&type=convert_url2&source=oppo&format={format}&rid={rid}")


def decode_mv_url(mid: str):
""" decode mv url """
return "http://mobi.kuwo.cn/mobi.s?f=kuwo&q=" + KuwoDES.base64_encrypt(KuwoDES, f"corp=kuwo&p2p=1&type=convert_mv_url2&format=MP4&rid={mid}")
return "http://mobi.kuwo.cn/mobi.s?f=kuwo&q=" + KuwoDES.base64_encrypt(KuwoDES, f"corp=kuwo&p2p=1&type=convert_mv_url2&source=oppo&format=MP4&rid={mid}")

0 comments on commit fde2199

Please sign in to comment.