@@ -769,28 +769,28 @@ def _filter_movie(movie_id: MovieId, votingSession: VotingSession) -> bool :
769769
770770 # Prefere Kodi movies; so if source of this movie isnt kodi,
771771 # but kodi is available as provider for this movie and session, skip this movie
772- if movie_id .source != MovieSource .KODI and MovieProvider .KODI in votingSession .getMovieProvider () and MovieProvider .KODI in check_movie .provider :
772+ if movie_id .source == MovieSource .TMDB and MovieProvider .KODI in votingSession .getMovieProvider () and MovieProvider .KODI in check_movie .provider :
773773 logger .debug (f"Movie { movie_id } filtered cause of double match with kodi and kodi is prefered" )
774774 _SESSION_MOVIE_FILTER_RESULT [key ] = True
775775 return True
776776
777777 # Prefere Jellyfin movies; so if source of this movie isnt Jellyfin,
778778 # but Jellyfin is available as provider for this movie and session, skip this movie
779- if movie_id .source != MovieSource .JELLYFIN and MovieProvider .JELLYFIN in votingSession .getMovieProvider () and MovieProvider .JELLYFIN in check_movie .provider :
779+ if movie_id .source == MovieSource .TMDB and MovieProvider .JELLYFIN in votingSession .getMovieProvider () and MovieProvider .JELLYFIN in check_movie .provider :
780780 logger .debug (f"Movie { movie_id } filtered cause of double match with jellyfin and jellyfin is prefered" )
781781 _SESSION_MOVIE_FILTER_RESULT [key ] = True
782782 return True
783783
784784 # Prefere Emby movies; so if source of this movie isnt emby,
785785 # but emby is available as provider for this movie and session, skip this movie
786- if movie_id .source != MovieSource .EMBY and MovieProvider .EMBY in votingSession .getMovieProvider () and MovieProvider .EMBY in check_movie .provider :
786+ if movie_id .source == MovieSource .TMDB and MovieProvider .EMBY in votingSession .getMovieProvider () and MovieProvider .EMBY in check_movie .provider :
787787 logger .debug (f"Movie { movie_id } filtered cause of double match with emby and emby is prefered" )
788788 _SESSION_MOVIE_FILTER_RESULT [key ] = True
789789 return True
790790
791791 # Prefere Plex movies; so if source of this movie isnt plex,
792792 # but plex is available as provider for this movie and session, skip this movie
793- if movie_id .source != MovieSource .PLEX and MovieProvider .PLEX in votingSession .getMovieProvider () and MovieProvider .PLEX in check_movie .provider :
793+ if movie_id .source == MovieSource .TMDB and MovieProvider .PLEX in votingSession .getMovieProvider () and MovieProvider .PLEX in check_movie .provider :
794794 logger .debug (f"Movie { movie_id } filtered cause of double match with emby and emby is prefered" )
795795 _SESSION_MOVIE_FILTER_RESULT [key ] = True
796796 return True
0 commit comments