arr-scripts icon indicating copy to clipboard operation
arr-scripts copied to clipboard

[FEATURE] - Radarr - Delete old trailers

Open nothing2obvi opened this issue 1 year ago • 3 comments

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.

nothing2obvi avatar Jun 05 '24 02:06 nothing2obvi

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....

RandomNinjaAtk avatar Jun 05 '24 12:06 RandomNinjaAtk

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.

nothing2obvi avatar Jun 06 '24 00:06 nothing2obvi

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...

RandomNinjaAtk avatar Jun 07 '24 11:06 RandomNinjaAtk