croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.18k stars 78 forks source link

Broken if there's the same title, that's later replaced. #1994

Closed KyleSanderson closed 10 months ago

KyleSanderson commented 1 year ago

Help yourself

Describe the bug

Orphaned files are retained forever in Kodi, and all new library updates are ignored from Plex.

To Reproduce

Steps to reproduce the behavior:

  1. Sync the Kodi library with PKC.
  2. Replace the file in Plex with a better quality one.
  3. Play the library file in PKC, and receive an error because the file is gone.
  4. Sync the Kodi library with PKC.
  5. Play the library file in PKC, and see that PKC ignored the library update from Plex.
  6. Start the File in Plex, which clearly plays no problem.
  7. Go into Video Addons, go to "What's On Deck", and play the impossible file on Kodi, with the library still broken.

Expected behavior

Playback of media.

I am aware that I can delete Plex tokens that I accidentially posted by following the instructions on the PKC wiki

StanislavAlexandrov commented 1 year ago

I am having the same issue. Currently, I resolve the issue by restarting Kodi each time it occurs. Also, I'm not entirely sure, but it appears that the issue resolves itself if enough time passes after the file upgrade.

doomwithdon commented 1 year ago

This is a known issue. Can be fixed by running the Analyze option on the file. That updates the last update date for the file in plex and forces a sync with kodi

KyleSanderson commented 1 year ago

Admittedly I don't use this anymore (flipped to mariadb, for now). Will keep it open for the rest, but I'm not going to be able to add any additional information at this time.

croneter commented 10 months ago

This is a duplicate of https://github.com/croneter/PlexKodiConnect/issues/1893, thus closing this one. There is nothing I can do about that currently, as Plex simply does not tell that it got a new file and the old one is gone :-(. You need to reset the Kodi database in the PKC settings to get rid of this.

croneter commented 10 months ago

Also, I'm not entirely sure, but it appears that the issue resolves itself if enough time passes after the file upgrade.

@doomwithdon Yes with "enough time", Plex at some point updates the movie with e.g. new metadata. Plex tells about this (as opposed to a changed movie file :cry:), then PKC grabs the new data. Issue solved for now