jellyfin-plugin-trakt icon indicating copy to clipboard operation
jellyfin-plugin-trakt copied to clipboard

"Export library to trakt.tv" task resets watched status of movies locally

Open blackwind opened this issue 2 years ago • 7 comments

Here's a pretty straightforward one: Since upgrading to v10.8 and the latest Trakt plugin for v10.8, whenever the "Export library to trakt.tv" task is run, all movies (but NOT TV shows) are marked as unwatched locally. This can be resolved by running the "Import watch states and playback progress from trakt.tv" task -- these unwatched states aren't pushed to Trakt, so the correct data can easily be reimported -- but this is clearly not the intended behavior, so I'm submitting a bug report.

blackwind avatar Jun 17 '22 21:06 blackwind

We don't touch the local state when exporting the library. What other options do you have configured for your user?

Shadowghost avatar Jun 17 '22 21:06 Shadowghost

Set trakt.tv item to watched when local item is changed to watched, Set trakt.tv item to unwatched when local item is changed to unwatched, Synchronize collection, and Scrobble.

I can reproduce this every time I execute the task in question. Didn't occur in v10.7 with the same settings.

blackwind avatar Jun 17 '22 21:06 blackwind

Try reauthenticating the users please. We seem to have borked user data from the plugin shipped with 10.7.

Shadowghost avatar Jul 01 '22 23:07 Shadowghost

Tried, but the problem persists.

blackwind avatar Jul 02 '22 01:07 blackwind

I tried force re-authorization last time to no avail, and I've just gone in and de-authorized device entirely and removed Jellyfin from my Trakt account to start completely fresh. Same thing.

blackwind avatar Jul 07 '22 18:07 blackwind

Did you try deleting /var/lib/jellyfin/plugins/configuration/Trakt.xml, restarting Jellyfin and reauthing your user?

Shadowghost avatar Sep 02 '22 13:09 Shadowghost

Just tried it, no change.

blackwind avatar Sep 02 '22 23:09 blackwind

I thought it might have something to do with authorizing two Jellyfin users to the same Trakt account, but I just deleted my second Jellyfin user, stopped Jellyfin, deleted Trakt.xml, started Jellyfin, reauthorized, and the problem persists.

blackwind avatar Sep 14 '22 16:09 blackwind

We don't touch the local state when exporting the library.

That's actually not true.

https://github.com/jellyfin/jellyfin-plugin-trakt/blob/08b43b248eeed471dc2a86d21def70866d3fe7bc/Trakt/ScheduledTasks/SyncLibraryTask.cs#L226-L236

@blackwind I believe "Skip unwatched import from trakt.tv" unchecked?

shemanaev avatar Sep 20 '22 13:09 shemanaev

Yep, you're right, Denis. Thanks for tracking that down!

Can we get a fix, @Shadowghost?

blackwind avatar Sep 20 '22 16:09 blackwind