Merge pull request #35 from TNTcraftHIM/master

小bug修复
This commit is contained in:
Pentacene 2020-08-28 01:24:11 +08:00 committed by GitHub
commit 92f6890438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@
}, },
{ {
"name": "neteasemusic", "name": "neteasemusic",
"version": "1.7", "version": "1.8",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "22.5 kb", "size": "22.5 kb",

View File

@ -379,7 +379,7 @@ async def nem(context):
br = "#" + str(eyed3.mp3.Mp3AudioFile(name).info.bit_rate[1]) + "kbps " br = "#" + str(eyed3.mp3.Mp3AudioFile(name).info.bit_rate[1]) + "kbps "
alias = "" alias = ""
if info['alias']: if info['alias']:
alias = "\n\n__" + info['alias'][0].replace(" ","__") + "__" alias = "\n\n__" + info['alias'][0] + "__"
cap += "\n#NeteaseMusic " + br + alias cap += "\n#NeteaseMusic " + br + alias
await context.edit(f"{title}上传中 . . .") await context.edit(f"{title}上传中 . . .")
await context.client.send_file( await context.client.send_file(