RileyXX / TMDB-Trakt-Syncer

A python script that syncs user watchlist and ratings for Movies, TV Shows and Episodes both ways between Trakt and TMDB.
MIT License
30 stars 0 forks source link

[Feature Request]: re-check score and update #20

Open ghost opened 1 year ago

ghost commented 1 year ago

Is there already a request for your feature?

Feature Request

When you switch a rating either on trakt or on TMDB it doesnt update, I propose an option to track which is different in which platform and let the user select which rating should stay on both.

An alternative option would be to mass delete the rating from one website and redo everything.

I currently have about 50 ratings which differ and I manually had to go through them to re-sync everything.

Alternatives you've considered

No response

RileyXX commented 1 year ago

Good suggestion! I'm looking into implementing something to address this.

My first thought was to implement a rating priority setting similar to the one recently implemented in Plex-Trakt-Sync where the user can select either None, Trakt or TMDB in which the ratings from either platform will be preferred.

After looking into it I think it would be better to implement something where when ratings differ, the script will prefer the most recent rating and sync both accordingly. After reviewing the Trakt and TMDB api's this should be possible, however with the current TMDB api getting the date updated value for episode ratings is not currently supported. So using this method only TV Show and Movies will be updated with the most recent rating. I plan on contacting TMDB support to see if this is something they might consider implementing into their api. In the meantime I think I plan on implementing it as is so atleast tv show and movie ratings are updated with the users most recent rating.

RileyXX commented 1 year ago

Posting an update here for later reference. I requested 2 new features be added to TMDB API

RileyXX commented 1 year ago

This is implemented now in v1.5.0. If you have any issues with this new feature let me know.

Note: Only updating Movie and TV Show ratings are supported. See pull request for more info.

RileyXX commented 1 year ago

Release v1.5.0 was reverted due to unforeseen issues with TMDB API.

The TMDB API created_at date for ratings is not updated with the most recent modified date. Therefore it is not possible to compare and update ratings with the most recent rating between Trakt and TMDB.

An alternative method will need to be used instead.

One method would be a rating priority setting similar to the one recently implemented in Plex-Trakt-Sync where the user can select either None, Trakt or TMDB in which the ratings from either platform will be preferred.

Alternative method would be to cache Trakt and IMDB data locally and compare it when syncing.

The preferred method would be to use TMDB API directly, but the TMDB devs will need to add support in their API for this. Reference the links above for updates on this issue https://github.com/RileyXX/TMDB-Trakt-Syncer/issues/20#issuecomment-1636918790.

ghost commented 1 year ago

That's a shame, maybe implementing this way and whenever trakt changes that adding it as another option, but thank your hard work