mirror of
https://github.com/Suxiaoqinx/Netease_url.git
synced 2025-07-13 21:02:25 +08:00
更新音频链接HTTPS以及歌词翻译返回报错问题
This commit is contained in:
parent
40710e9e40
commit
268a615049
4
main.py
4
main.py
@ -190,8 +190,8 @@ def Song_v1():
|
||||
"level":music_level1(urlv1['data'][0]['level']),
|
||||
"size": size(urlv1['data'][0]['size']),
|
||||
"url": song_url.replace("http://", "https://", 1),
|
||||
"lyric": lyricv1['lrc']['lyric'],
|
||||
"tlyric": lyricv1.get('tlyric', {}).get('lyric', None)
|
||||
"lyric": lyricv1.get('lrc', {}).get('lyric', '无歌词'),
|
||||
"tlyric": lyricv1.get('tlyric', {}).get('lyric', '无翻译歌词')
|
||||
}
|
||||
data = Response(json.dumps(data), content_type='application/json')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user