fix(anilist-download): prefer romaji title over english when searching provider

This commit is contained in:
benex
2024-11-24 13:44:02 +03:00
parent 9d6f785a7f
commit 8b37927f6a

View File

@@ -187,11 +187,7 @@ def download(
translation_type = config.translation_type
download_dir = config.downloads_dir
anime_titles = [
(
anime["title"][config.preferred_language]
or anime["title"]["english"]
or anime["title"]["romaji"]
)
(anime["title"]["romaji"] or anime["title"]["english"])
for anime in anilist_search_results["data"]["Page"]["media"]
]
print(f"[green bold]Queued:[/] {anime_titles}")