TheCaptain989 / radarr-striptracks

A Docker Mod to Radarr/Sonarr to automatically strip out unwanted audio and subtitle tracks
https://hub.docker.com/r/thecaptain989/radarr-striptracks
GNU General Public License v3.0
20 stars 1 forks source link

Radarr and Sonarr treat languages so differently #42

Closed TheCaptain989 closed 1 year ago

TheCaptain989 commented 2 years ago

In my quest to make my script more and more automatic so that it does things on its own that I find myself doing by hand, I decided to tackle languages a while back. I started by using the built-in functions in Radarr and Sonarr v3 that allow for languages in configured profiles.

I soon found that each program treats languages very differently:

I also found that in addition to natural language selections, each also has an 'Unknown' selection. That sounded nice.

Radarr also has 'Any' and 'Original' selections that Sonarr doesn't have, which as far as I can tell do the exact same thing. There is nowhere in the GUI or the returned JSON in Radarr where it tracks the first release language of a movie, so 'Original' can't do what you would think it does.

So, I worked out how to call the APIs and parse the JSON, added some more variables to differentiate between them, and how to work with effectively two 'Any' settings in Radarr.

Release 2.0 was born.


This worked out really great. However, after a bit, I found myself manually updating the Languages on movies in Radarr when "Multi-Language" appeared. Unless they were foreign films, this turned out to be an indicator that the movie had been detected with more than one audio language during download, but after remuxing, only retained one language (or a smaller set of languages).
How hard could that be?

☹️ 🤦‍♂️

I have now thoroughly unpacked the problem, only to discover that yet again, Radarr and Sonarr treat languages very differently:

Exactly the opposite quantity problem of the profile issue above, with the added complexity of different codes.

<rant on> They have opposite issues??? One allows the selection of multiple languages during download, but only one language configured per file, while the other allows the selection of only one language during download, but multiple languages configured per file!

WTF?!?

How hard can it be to get both Radarr and Sonarr to treat languages the same !@#$% way! Sheesh.

This is just the dumbest thing. <end rant>

After much tweaking, dealing with JSON differences, etc.,

Please help test Release 2.2 that attempts to deal with this cluster f---

TheCaptain989 commented 1 year ago

Other than the Radarr 'Original' setting now doing something, all of the above holds true. Closing.