Update find_movie error to include what is wrong id_type value
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -172,8 +172,8 @@ def find_movie(self, movie):
try:
search = trakt.sync.search_by_id(movie.id, id_type=movie.provider)
except ValueError as e:
- # ValueError: search_type must be one of ('trakt', 'trakt-movie', 'trakt-show', 'trakt-episode', 'trakt-person', 'imdb', 'tmdb', 'tvdb')
- raise e
+ # Search_type must be one of ('trakt', ..., 'imdb', 'tmdb', 'tvdb')
+ raise ValueError(f"Invalid id_type: {movie.provider}") from e
# look for the first movie in the results
for m in search:
if type(m) is trakt.movies.Movie:

Update find_movie error to include what is wrong id_type value