mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-19 08:12:09 +00:00
Fix of metadata loading
This commit is contained in:
@@ -1310,6 +1310,7 @@ async def zrob_mi_plejliste(ctx):
|
||||
MUZYKA["queue"].insert(0, plik[1])
|
||||
MUZYKA["requestor"].insert(0, ctx.author)
|
||||
metadata = eyed3.load(plik[1])
|
||||
if metadata and metadata.tag:
|
||||
if metadata.tag.title:
|
||||
reply += f"{index} {metadata.tag.title}"
|
||||
else:
|
||||
@@ -1323,6 +1324,9 @@ async def zrob_mi_plejliste(ctx):
|
||||
reply += (
|
||||
" z prywatnej kolekcji Hammera i na Twoją specjalną rpośbę.\n"
|
||||
)
|
||||
else:
|
||||
reply += "{index}. {plik[1]} z prywatnej kolekcji Hammera."
|
||||
|
||||
index += 1
|
||||
if len(reply) > 1800:
|
||||
await ctx.send(reply)
|
||||
|
||||
Reference in New Issue
Block a user