Taxel / PlexTraktSync

A python script that syncs the movies, shows and ratings between trakt and Plex (without needing a PlexPass or Trakt VIP subscription)
MIT License
1.62k stars 106 forks source link

Incorrect movie matched #49

Closed jofotoo closed 4 years ago

jofotoo commented 4 years ago

Greetings,

I am attempting to sync movies from Trakt lists to Plex, and some didn't appear in the playlists. Here is one example where Adventures in Babysitting (1987) is in my Trakt list and my Plex library, but it matches the remake from 2016.

2020-07-11 08:14:49,970 DEBUG:get: https://api-v2launch.trakt.tv/movies/adventures-in-babysitting-1987?extended=full 2020-07-11 08:14:49,970 DEBUG:headers: {'Content-Type': 'application/json', 'trakt-api-version': '2', 'trakt-api-key': 'TRAKTKEY', 'Authorization': 'Bearer BEARER'} 2020-07-11 08:14:49,970 DEBUG:method, url :: get, https://api-v2launch.trakt.tv/movies/adventures-in-babysitting-1987?extended=full 2020-07-11 08:14:49,980 DEBUG:RESPONSE [get] (https://api-v2launch.trakt.tv/movies/adventures-in-babysitting-1987?extended=full): <Response [200]>

[later in the log...]

2020-07-11 08:15:38,015 DEBUG:get: https://api-v2launch.trakt.tv/search?id=360606&id_type=tmdb 2020-07-11 08:15:38,016 DEBUG:headers: {'Content-Type': 'application/json', 'trakt-api-version': '2', 'trakt-api-key': 'TRAKTKEY', 'Authorization': 'Bearer BEARER'} 2020-07-11 08:15:38,016 DEBUG:method, url :: get, https://api-v2launch.trakt.tv/search?id=360606&id_type=tmdb 2020-07-11 08:15:38,028 DEBUG:RESPONSE [get] (https://api-v2launch.trakt.tv/search?id=360606&id_type=tmdb): <Response [200]> 2020-07-11 08:15:38,029 INFO:Movie [Adventures In Babysitting (1987)]: sync complete

Another example is the movie L.A. Story, which gets matched to Toy Story 4. Let me know if you need further info

simonc56 commented 4 years ago

Can you give the Plex guid of those movies please. In Plex, for each movie click on Get Info > View XML

Example : guid="com.plexapp.agents.imdb://tt1024648"

Do you try to sync liked_lists or watchlists ?

jofotoo commented 4 years ago

Thanks for the reply :) Adventures in Babysitting: guid="com.plexapp.agents.themoviedb://360606?lang=en L.A. Story: guid="com.plexapp.agents.themoviedb://301528?lang=en"

I sync my watchlist and I synced my liked lists (some of which were created by me). Here's my lists if you need to check them out

simonc56 commented 4 years ago

It's a Plex problem. The guid are wrong. The Plex scraper did not match the correct movies from the filenames. Is Plex showing the right movies : are posters and metadata correct ?

360606 is themoviedb id for Babysitting Night (2016). 301528 is themoviedb id for Toy Story 4.

Try to click on Fix match in Plex for each mismatched movie. Try to have release year in your filenames. If filenames don't have release year, this problem will occur sometimes.