PlexKodiConnect
PlexKodiConnect copied to clipboard
Movies don't show up in a Kodi set/collection
Hi there,
i created some new movie collections in Plex yesterday, but several syncs later, they still dont show up in Kodi with plexkodiconnect. Older sets are showing up as expected. I had to repair the local database to make the new sets showing up.
What am i missing? I do not have background sync enabled and plexkodiconnect is syncing every five minutes.
Just tested - works perfectly fine here.
That is EXACTLY the reason why there is a template for opening a new issue - I need more information from you! Please provide the rest: https://github.com/croneter/PlexKodiConnect/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
How can I reproduce your issue?
Never mind, found the issue: if all movies are already in the Plex library and synched to PKC/Kodi and you create a new Plex collection later, Plex does not mark the movie as "changed". Obviously, there's no way for PKC to pick up on this.
Workaround
In the PKC settings under Advanced, hit Repair the Kodi database (force update all content)
(or reset the Kodi database altogether).
A permanent fix to this requires quite a lot of code 😞
Ok, as i stated before, repairing the database did fix the issue, that is unfortunately what i expected, but an understandable behaviour :) Thank you for the fast help. As i am managing the movie-sets myself, it's not a big deal as i know i have to repair the db afterwards 👍
Quick & Dirty Workaround: Add movies to a movie set (when adding the collection manually) and do a metadata update for each movie in the collection. Wait for next sync, and the collection is added :) Just a workaround, but much faster then repairing the db.
I still can't get it to work. A lot of my collections are missing a lot of movies. My Pixar collection have 20 movies but only 14 show up in Kodi. And the wierd thing is that a movie thats missing in one collection might show up in another one that it is in. I've tried to repair the db and reset as much as I could through Kodi/CoreELEC. In all other clients I have connected to Plex they show as they should which tells me it's something with PKC. And another wierd thing happens quite often is that movies disappear from "Latest movies" after a while, even though they are the latest addition and unwatched. But if I search for them I see them. The same goes for missing movies in collections. I can see them if I search. It's just some sort of indexing issue I feel. Can someone else confirm that they are experiencing these issues?
@Nojahhh
And the wierd thing is that a movie thats missing in one collection might show up in another one that it is in.
Kodi allows for a movie to belong to exactly 0 or 1 collection. Plex allows for 0 to n collections. So there is currently NO way to replicate Plex 1:1 on the Kodi side. It's literally up to chance which collection a movie belongs to on the Kodi side of things, sorry... :disappointed:
If you use PKCs search, which uses the Plex backend, then Yes collections are treated correctly.
@croneter Ah, that explains it. Thank you a lot for such a quick and good response. A small price to pay for otherwise a great library! ;)
The same bug exists when creating and updating movie set using MediaElch (v2.6.6) as well. Adding new movie set and deleting movie sets, updating movie set with titles do not update the kodi db.
Was this ever fixed or a new work-around suggested?
TAGS were working just fine on Leia and v2 of PKC. But with Matrix and 3.X Kodi tags are now missing movies from my Plex Collections.
Was this ever fixed or a new work-around suggested?
TAGS were working just fine on Leia and v2 of PKC. But with Matrix and 3.X Kodi tags are now missing movies from my Plex Collections.
Yes I can also confirm that multiple tags are not working on v2.12.6. They are working on v2.12.3.
Apologies. I understand now. Reposting the related question here.
Is there any way to automate/call the "repair database" function via cron/JSON etc?
Nope, @newoski , that's currently not possible via a "PKC API". Theoretically, you could just delete the Kodi movie database file when Kodi is not running. Plus the plex.db file, might be also a good idea. PKC will then re-sync everything.