[FEATURE] - Radarr - Delete old trailers #155

Open
opened 2026-02-20 00:16:31 -05:00 by deekerman · 3 comments
Owner

Originally created by @nothing2obvi on GitHub (Jun 4, 2024).

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.

Originally created by @nothing2obvi on GitHub (Jun 4, 2024). **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.
Author
Owner

@RandomNinjaAtk commented on GitHub (Jun 5, 2024):

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 commented on GitHub (Jun 5, 2024): 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....
Author
Owner

@nothing2obvi commented on GitHub (Jun 5, 2024):

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 commented on GitHub (Jun 5, 2024): 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`.
Author
Owner

@RandomNinjaAtk commented on GitHub (Jun 7, 2024):

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 commented on GitHub (Jun 7, 2024): 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...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/arr-scripts#155
No description provided.