mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:47:39 +00:00
neteasemusic小改动,增加反馈
This commit is contained in:
parent
727c98645d
commit
03f5fcaf45
@ -282,10 +282,10 @@
|
||||
},
|
||||
{
|
||||
"name": "neteasemusic",
|
||||
"version": "1.3",
|
||||
"version": "1.4",
|
||||
"section": "daily",
|
||||
"maintainer": "TNTcraftHIM",
|
||||
"size": "21.5 kb",
|
||||
"size": "21.6 kb",
|
||||
"supported": true,
|
||||
"des-short": "网易云点歌",
|
||||
"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)
|
||||
return
|
||||
if imported is True:
|
||||
await context.edit(f"{title}信息导入中 . . .")
|
||||
imagedata = requests.get(
|
||||
info['albumpic'], headers=headers).content
|
||||
tag = eyed3.load(name).tag
|
||||
tag = eyed3.load(name)
|
||||
tag.initTag()
|
||||
tag = tag.tag
|
||||
tag.artist = info['artist']
|
||||
tag.title = info['title']
|
||||
tag.album = info['album']
|
||||
tag.images.remove('')
|
||||
tag.images.set(3, imagedata, "image/jpeg",
|
||||
u"Cover")
|
||||
tag.images.set(3, imagedata, "image/jpeg", u"Cover")
|
||||
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.client.send_file(
|
||||
context.chat_id,
|
||||
|
Loading…
Reference in New Issue
Block a user