Open antonsoroko opened 1 month ago
i think we need to move https://github.com/elgatito/elementum/blob/2c644cdb6d2908b4d2dfbe0e17c1f2fdea5ef7d5/providers/xbmc.go#L372-L373
after AlternativeTitles/Translations thus title for OriginalLanguage
and user's language will be always correct.
(this logic actually should be done for any language. We should set "X" to "original" if "X" is empty and "original_language"="X".)
We should set "en" to "original" if "en" is empty and "original_language"="en". as i can see usually "en" is empty when "original_language"="en". so then we can some irrelevant name from
alternative_titles
since we treatus
asen
:example https://api.themoviedb.org/3/tv/1399?api_key=29a551a65eef108dd01b46e27eb0554a&append_to_response=credits,alternative_titles,translations,external_ids,trailers,release_dates,content_ratings&include_image_language=ru,en,null&include_video_language=ru,en,null&language=ru
so we get "en" as "GoT" instead of "Game of Thrones". so if tracker has only {title:en} then it is screwed.