🚩 netease 在歌曲上添加试听链接

This commit is contained in:
xtaodada 2020-08-12 02:18:28 +08:00
parent a668e1acb5
commit 91bb890de9
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@
}, },
{ {
"name": "netease", "name": "netease",
"version": "1.1", "version": "1.2",
"section": "daily", "section": "daily",
"maintainer": "xtaodada、KorenKrita", "maintainer": "xtaodada、KorenKrita",
"size": "0.7 kb", "size": "0.7 kb",

View File

@ -12,7 +12,7 @@ async def netease(context):
if req.status_code == 200: if req.status_code == 200:
data = json.loads(req.text) data = json.loads(req.text)
res = data['Comment'] + '\n\n来自 @' + data[ res = data['Comment'] + '\n\n来自 @' + data[
'UserName'] + ' 在鸽曲"<a href="http://music.163.com/song/media/outer/url?id=' + data['SongId'] + '.mp3">' + \ 'UserName'] + ' 在鸽曲"<a href="http://music.163.com/song/media/outer/url?id=' + str(data['SongId']) + '.mp3">' + \
data['SongName'] + '</a>"-' + data['SongAutho'] + '</a>下方的评论' data['SongName'] + '</a>"-' + data['SongAutho'] + '</a>下方的评论'
await context.edit(res, parse_mode='html', link_preview=True) await context.edit(res, parse_mode='html', link_preview=True)
else: else: