Closed Spacetech closed 7 months ago
Love this!
You read my mind! Was looking for this yesterday
Would it be possible to separate the watchlist per library as well?
You read my mind! Was looking for this yesterday
Would it be possible to separate the watchlist per library as well?
I added that
Thanks so much!! :heart:
I think this came in 3.9.1 of PKC? Cause I'm getting an error with that version that plex-guid is missing? I had to revert back to 3.9.0.
Could you please share a debug log (see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug) and open a new issue? Thanks @bokkoman
Could you please share a debug log (see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug) and open a new issue? Thanks @bokkoman
Here's the log. If you search for plex_guid you should find it. kodi.log
I only had 1 item in Watchlist.
Did you do a db reset @bokkoman ?
This requires the addition of a new guid column in the plex db, which requires a database reset/recreation.
Did you do a db reset @bokkoman ?
This requires the addition of a new guid column in the plex db, which requires a database reset/recreation.
No? But you don't get this info when you update automatically. In fact, imo, it should automatically reset your db if there's breaking changes like this. Perhaps give a warning first that it is going to reset db because there's an update which requires a new DB.
Also, where does it say this? I know it was necessary with 3.8.8 (iirc) cause of the missing movies. I know it is on this PR, but not in the update info on the Releases page.
Addresses: #1828. Explanation below for how this works:
You can check your Plex Watchlist by going to
https://metadata.provider.plex.tv/library/sections/watchlist/all?X-Plex-Token={token}
(fill out the token param). Here's an example result:Each
Video
element includes a guid. This is also known as a 'plex media key' in wiki land and every movie, TV show, TV season, & TV episode will have a unique guid assigned to it.It's important to note that there is no
id
in theVideo
element and thekey
/ratingKey
do not point to a key on your server (e.g. it's not like/library/metadata/123
). This means that you cannot directly map the items in this response into your local server without changing the lookup strategy. My understanding is that lookups should use the guid instead.Based on that, when we want to view the Watchlist in Kodi, we need to map the items from that Watchlist response into items that were synced into Kodi. We can do that by looking up items in the plex db based on that guid. The flow would be:
Watchlist Video.guid -> Plex DB lookup by guid -> Kodi item
This requires the addition of a new guid column in the plex db, which requires a database reset/recreation. I also added new indexes for that column to enable quick lookups.
The end result is that the Watchlist will sync correctly and show items that are available in Kodi.
Some pictures:
My watchlist on plex web:
Me, about to add the watchlist to my home page in arctic fuse skin. It shows up alongside search, channels, watch later:
The watchlist items showing up on my home screen. Each item correctly points to the kodi item and is playable