-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Plex Watchlist #2041
Conversation
Love this! |
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!! ❤️ |
I think this came in 3.9.1 of PKC? Cause I'm getting an error with that version that plex-guid is missing? |
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. I only had 1 item in Watchlist. |
Did you do a db reset @bokkoman ?
|
No? But you don't get this info when you update automatically. Also, where does it say this? I know it was necessary with 3.8.8 (iirc) cause of the missing movies. |
Force a database reset, necessary due to #2041
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