Open b3n3w opened 2 months ago
@b3n3w not sure if there is a better way to do this, right now it downloads trailer from the youtubeTrailerId
it gets from Radarr
and Sonarr
, which gets it from TMDB
and TVDB
.
If there is no youtubeTrailerId
received then app searches YouTube with '
Language select for Trailer would be a good feature.
@nandyalu you say its based on that trailer id it gets from the other arrs. That makes total sense. But i have found no way to override this youtubeTrailerId in one of the arrs to a german trailer.
My Libary consists of many movies for kids. (the dont yet speak english) so it would be a greate feature to have a setting in trailarr to override the search for the trailer with an custom serch parameter.
Maybe something with variables like %title% %year% %language% %someothercustom_string%
@b3n3w not sure if there is a better way to do this, right now it downloads trailer from the
youtubeTrailerId
it gets fromRadarr
andSonarr
, which gets it fromTMDB
andTVDB
.If there is no
youtubeTrailerId
received then app searches YouTube with ' () <movie/series> trailer', it is possible to add a language in search but wouldn't change the default Radarr/Sonarr trailer ids
First of all Thank you for such a nice tool! My library also not in english. It is in russian. To solve it I rebuilt your sources with a few modifications and it looks like solved my case. Almost all 150 movies I have now with FullHD local trailers in russian.
My idea here is to not use provided youtubeTrailerId for localized trailers at all (at least for the first time). Instead to use your fallback option with YouTube search but with a localized query. It works really well.
These changes were enough for my case: 1) In the download_trailer I changed condition:
if not exclude:
exclude = []
if media.yt_id and media.yt_id.endswith("?"):
video_id = media.yt_id[:-1]
else:
#... all the rest code until file downloaded
logger.debug(f"Trailer downloaded for {media.title}, Moving to folder...")
media.yt_id = video_id + "?"
The question mark is just a my own quickfix marker for localized trailers that do not make any influence to url query.
2) In the _search_yt_for_trailer I changed query to the local one:
lang = "ru"
match lang:
case "ru":
search_query += " фильм" if is_movie else " сериал"
search_query += " русский трейлер hd"
case "en":
search_query += " movie" if is_movie else " series"
search_query += " trailer"
Of course it is not a solution at all. Just it looks that something like "custom query" and "force yt search" options in Advanced settings will be good enough for the beginning.
Glad you were able to make it work!
So, to add this to app, I am thinking to add an option for something like Always Search
which when enabled would search in youtube even when Radarr provides a youtube trailer id, and another option to customize the search query. Thoughts?
Sounds great! I think it should completely solve this question so far.
I would also be interested in being able to select the download language and a custom list of authorized YouTube channels, it would be the best way to get the trailers in Spanish from Spain and not in Latin Spanish or English.
Hi there,
first of all thanks for all the effort to develop this state of Trailarr! Really like the idea! Just tested it on my demo library, which consists out of a lot of foreign language movies (e.g. german). It would be great to support also other languages for the trailers and let the users select which language to choose. English could be used as the default fallback for example.
Once again: Thanks a lot !