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

Quality is lost on rescan (Radarr) #27

Closed TheCaptain989 closed 3 years ago

TheCaptain989 commented 4 years ago

In Radarr v2, if the file suffix changes, the quality of the downloaded file will be lost on a rescan.
For example, if the original downloaded file was: A Movie (2014).avi with a quality of DVD, the remuxed file will be named: A Movie (2014).mkv with a quality of Unknown.

I spent a great deal of time trying to fix this in Radarr, only to run into what I must describe as a Radarr API bug. When I make a PUT call to the /movies/{id} endpoint with all of the original data from the MKV except I change the quality, the GUI is visually updated (if you happen to have the Radarr GUI up) with the new quality, but the API returns Unknown quality and if you refresh the GUI it goes back to Unknown.

I'm leaving all the new code in case the API gets fixed (maybe v3?) or I otherwise figure it out.

None of this happens in Sonarr.

TheCaptain989 commented 3 years ago

The above reference to resolving issue #27 from commit ed4a7a4a3b31ee003fab25d8eb4311680414eddb is a typo. This commit does not resolve the issue.

TheCaptain989 commented 3 years ago

I had to come up with a completely different fix for this in v3. I'm using the poorly documented v3 API endpoint 'movieFile/editor' in Radarr. Still testing Sonarr.