Closed clinta closed 6 months ago
I'm going to guess the issue is Cantonese
!= Chinese
https://github.com/Radarr/Radarr/blob/60ac9d3ad75902384ba3cc1721d064216c281867/src/NzbDrone.Core/Languages/Language.cs#L83
Is this logic not intended to be used for parsing OriginalLanguge?
you did more digging than I :) yeah something is probably weird then; reproduced/confirmed on 3.1.0.4648
And maybe a separate bug is required for this, but I'd expect if the original language is not known or matched, it should be set to -1 for Any, or maybe a new meta-value. Not default to English.
I want to use the original language value for a script to strip out unnecessary audio streams. But I don't want to accidentally strip out an original language stream because it defaulted to English when the language was unknown.
Further digging, original language is set by looking up the iso code here
And this function does not contain any of the necessary logic to map Cantonese to Chinese the way LanguageParser does.
This issue has been automatically marked as stale because it has not had recent activity. Please verify that this is still an issue with the latest version of Radarr and report back. Otherwise this issue will be closed.
Just adding some additional context/example for what was seen in discord today.
"OriginalLanguage": "cn",
So original is CN and it seems that is NOT mapped to CHINESE https://radarrapi.servarr.com/v1/movie/9470 thus falls back to english movie.OriginalLanguage = IsoLanguages.Find(resource.OriginalLanguage.ToLower())?.Language ?? Language.English; is the TMDB lookup and map (ref https://github.com/Radarr/Radarr/blob/627ab64fd023269c8bedece61e529329600a3419/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs)
and where it maps. https://github.com/Radarr/Radarr/blob/627ab64fd023269c8bedece61e529329600a3419/src/NzbDrone.Core/Parser/IsoLanguages.cs I'm thinking for we may not be checking that second column at a glance. So TMDB is providing a country code - not a language code.
ref https://discord.com/channels/264387956343570434/264388019585286144/885258016914542623
What am I needed for here, exactly?
What am I needed for here, exactly?
In your PR there are some requested changes and the language numbers need changing.
In the original PR I was asked to choose different numbers, but it wasn’t clear what number I was supposed to use and still isn’t. Sorry I’m not of help here.
Yes, cn was added.
Describe the bug
To Reproduce
Expected behavior OriginalLanguage should be
10
matching the value of Cantonese in https://www.themoviedb.org/movie/11230-jui-kuenPlatform Information (please complete the following information):
Trace Logs radarr.trace.txt
AB#635