mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-09 04:47:34 +08:00
Derp fixes(leech_utils): Fix some keys if exists
- context: https://telegra.ph/file/8c9ebb038071352743e01.jpg
This commit is contained in:
parent
a85ee83181
commit
f02f7966b7
@ -50,8 +50,8 @@ async def get_media_info(path):
|
||||
return 0, None, None
|
||||
duration = round(float(fields.get('duration', 0)))
|
||||
tags = fields.get('tags', {})
|
||||
artist = tags.get('artist') or tags.get('ARTIST')
|
||||
title = tags.get('title') or tags.get('TITLE')
|
||||
artist = tags.get('artist') or tags.get('ARTIST') or tags.get("Artist")
|
||||
title = tags.get('title') or tags.get('TITLE') or tags.get("Title")
|
||||
return duration, artist, title
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user