neteasemusic小改动,增加反馈

This commit is contained in:
TNTcraftHIM 2020-08-27 17:23:40 +08:00
parent 727c98645d
commit 03f5fcaf45
2 changed files with 8 additions and 6 deletions

View File

@ -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。"

View File

@ -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,