mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:08:18 +00:00
🚩 netease 在歌曲上添加试听链接
This commit is contained in:
parent
a668e1acb5
commit
91bb890de9
@ -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",
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user