Derp fixes(leech_utils): Fix some keys if exists

- context: https://telegra.ph/file/8c9ebb038071352743e01.jpg
This commit is contained in:
K u n g 2023-08-20 01:38:18 +07:00 committed by GitHub
parent a85ee83181
commit f02f7966b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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