mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 11:26:47 +00:00
neteasemusic小改动,增加反馈
This commit is contained in:
parent
727c98645d
commit
03f5fcaf45
@ -282,10 +282,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "neteasemusic",
|
"name": "neteasemusic",
|
||||||
"version": "1.3",
|
"version": "1.4",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "TNTcraftHIM",
|
"maintainer": "TNTcraftHIM",
|
||||||
"size": "21.5 kb",
|
"size": "21.6 kb",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "网易云点歌",
|
"des-short": "网易云点歌",
|
||||||
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
||||||
|
@ -351,17 +351,19 @@ async def nem(context):
|
|||||||
await bot.send_message(context.chat_id, f"<strong>【{info['title']}】</strong>\n" + "歌曲获取失败,可能歌曲为VIP专属,或受到地区版权限制。\n" + res, parse_mode='html', link_preview=True)
|
await bot.send_message(context.chat_id, f"<strong>【{info['title']}】</strong>\n" + "歌曲获取失败,可能歌曲为VIP专属,或受到地区版权限制。\n" + res, parse_mode='html', link_preview=True)
|
||||||
return
|
return
|
||||||
if imported is True:
|
if imported is True:
|
||||||
|
await context.edit(f"{title}信息导入中 . . .")
|
||||||
imagedata = requests.get(
|
imagedata = requests.get(
|
||||||
info['albumpic'], headers=headers).content
|
info['albumpic'], headers=headers).content
|
||||||
tag = eyed3.load(name).tag
|
tag = eyed3.load(name)
|
||||||
|
tag.initTag()
|
||||||
|
tag = tag.tag
|
||||||
tag.artist = info['artist']
|
tag.artist = info['artist']
|
||||||
tag.title = info['title']
|
tag.title = info['title']
|
||||||
tag.album = info['album']
|
tag.album = info['album']
|
||||||
tag.images.remove('')
|
tag.images.remove('')
|
||||||
tag.images.set(3, imagedata, "image/jpeg",
|
tag.images.set(3, imagedata, "image/jpeg", u"Cover")
|
||||||
u"Cover")
|
|
||||||
tag.save(
|
tag.save(
|
||||||
version=eyed3.id3.ID3_DEFAULT_VERSION, encoding='utf-8')
|
name, version=eyed3.id3.ID3_DEFAULT_VERSION, encoding='utf-8')
|
||||||
await context.edit(f"{title}上传中 . . .")
|
await context.edit(f"{title}上传中 . . .")
|
||||||
await context.client.send_file(
|
await context.client.send_file(
|
||||||
context.chat_id,
|
context.chat_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user