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:
parent
65d87e357d
commit
65deb9b4d4
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue