1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix Unknown artist when in title

This commit is contained in:
Myned 2022-02-23 16:20:59 -06:00
parent 65d87e357d
commit 65deb9b4d4
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -27,7 +27,9 @@ async def _saucenao(url):
return (
{
"url": results[0].url,
"artist": ", ".join(results[0].authors) or "Unknown",
"artist": results[0].title
if results[0].author_name == "Unknown"
else ", ".join(results[0].authors) or "Unknown",
"thumbnail": results[0].thumbnail,
"similarity": round(results[0].similarity),
"source": tldextract.extract(results[0].index).domain,