mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 02:35:34 +00:00
NeteaseMusic修复无法清除缓存的bug
This commit is contained in:
parent
ecf0b0f8c4
commit
2bdf8d40c4
@ -282,13 +282,13 @@
|
||||
},
|
||||
{
|
||||
"name": "neteasemusic",
|
||||
"version": "3.1",
|
||||
"version": "3.2",
|
||||
"section": "daily",
|
||||
"maintainer": "TNTcraftHIM",
|
||||
"size": "26.3 kb",
|
||||
"supported": true,
|
||||
"des-short": "网易云点歌",
|
||||
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
||||
"des-short": "网易云搜/点歌",
|
||||
"des": "可以在线搜索并且快速点歌(可回复信息点歌),支持解锁VIP/灰色歌曲。命令:nem。"
|
||||
},
|
||||
{
|
||||
"name": "killallmembers",
|
||||
|
@ -181,7 +181,6 @@ async def nem(context):
|
||||
else:
|
||||
title = f"【{info['title']}】"
|
||||
await context.edit(f"{title}下载中 . . .")
|
||||
|
||||
try:
|
||||
from Crypto.Cipher import AES
|
||||
AES.new("0CoJUm6Qyw8W8jud".encode('utf-8'),
|
||||
@ -353,7 +352,6 @@ async def nem(context):
|
||||
ccimported = False
|
||||
if not exists(name):
|
||||
ccimported = False
|
||||
|
||||
if ccimported is False: # 下载(普通音质)
|
||||
music = requests.request(
|
||||
"GET", "http://music.163.com/api/song/enhance/download/url?&br=" + str(info['br']) + "&id=" + str(info['id']), headers=headers, proxies=proxies, verify=False)
|
||||
@ -427,13 +425,14 @@ async def nem(context):
|
||||
break
|
||||
try:
|
||||
from NeteaseMusicExtra.FastTelethon import upload_file
|
||||
name = await upload_file(context.client, open(name, 'rb'), name)
|
||||
file = await upload_file(context.client, open(name, 'rb'), name)
|
||||
except:
|
||||
file = name
|
||||
await bot.send_message(context.chat_id, '(`FastTelethon`支持文件导入失败,上传速度可能受到影响)')
|
||||
|
||||
await context.client.send_file(
|
||||
context.chat_id,
|
||||
name,
|
||||
file,
|
||||
caption=cap,
|
||||
link_preview=False,
|
||||
force_document=False,
|
||||
|
Loading…
Reference in New Issue
Block a user