RandomNinjaAtk / arr-scripts

Extended Container Scripts - Automation scripts to make life easier!
GNU General Public License v3.0
663 stars 67 forks source link

[FEATURE] - Radarr - Delete old trailers #265

Open nothing2obvi opened 3 months ago

nothing2obvi commented 3 months ago

Is your feature request related to a problem? Please describe. When Radarr upgrades a movie, the arr-scripts download a new trailer for that movie, usually the same exact trailer, but renamed to the styling of the new upgrade. Therefore, there are now 2 trailers in the movie folder.

Describe the solution you'd like Auto-delete a file if it has the word "trailer" in it and is associated with the old movie.

Describe alternatives you've considered Deleting the old trailers manually. But then I'd have to go through all of my movie folders and see if there's even a duplicate.

RandomNinjaAtk commented 3 months ago

Your request is really for the source, not these scripts... The problem is likely caused by a lack of standardization on themoviedb website... Since it names/downloads trailers based on the names provided by the website (dupes only detected by name) and if someone adds a new trailer with a slightly different name, your going to be grabbing it...

The only method to resolve it would be use the single trailer option....

nothing2obvi commented 3 months ago

Oh no what I mean is it always downloads the same exact trailer, it's just that it renames it to the name of the new, upgraded Radarr movie. I would like it if the scripts deleted the trailer associated with the version of the movie that Radarr deleted. I do have it set to download a single trailer. So for example:

If there exists 1 movie, the scripts would download a trailer to go along with it, renamed to match the name of the movie:

- /media/movies/Movie_Version1.mkv
- /media/movies/Movie_Version1-trailer.mkv

Radarr then upgrades the movie (grabs a new, better one) and deletes Movie_Version1.mkv, so I'm left with:

- /media/movies/Movie_Version1-trailer.mkv
- /media/movies/Movie_Version2.mkv

Then the scripts download that same exact trailer again and rename it to match the upgraded movie:

- /media/movies/Movie_Version1-trailer.mkv
- /media/movies/Movie_Version2.mkv
- /media/movies/Movie_Version2-trailer.mkv

I have checked for many movies, and both of those trailers are the exact same in content and size.

I would like the option for the scripts to delete Movie_Version1-trailer.mkv.

RandomNinjaAtk commented 3 months ago

Thanks for the information... When I have some time, I'll look at it further but a lot of issues are because each application handles trailers differently and its hard to cover every platform... Kodi is a big issue because it doesn't support the same naming as the other apps...