croneter / PlexKodiConnect

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

Plex watchlist doesn't load #2103

Closed jecorn closed 1 month ago

jecorn commented 1 month ago

Describe the bug

For some reason, I can't access Plex watchlist in PKC. A Widget that polls the Plex Watchlist is empty. Manually navigating to the watchlist brings me to the base PKC menu. THe kodi logi shows lines like

2024-08-18 09:48:08.163 T:16076   error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexkodiconnect/?mode=watchlist
2024-08-18 09:48:08.163 T:13268    info <general>: PLEX.default: plugin.video.plexkodiconnect stopped
2024-08-18 09:48:08.175 T:5840    error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexkodiconnect/?mode=watchlist) failed

To Reproduce

  1. Navigate to Watchlist widget. Empty
  2. Try to open Watchlist. Stay at main PKC menu.

Expected behavior

Watchlist populated.

You need to attach a KODI LOG FILE

Done (with debug logging enabled) kodi.log

jecorn commented 1 month ago

Maybe this is because PKC is requesting the watchlist without a token? From the log: 2024-08-18 09:58:57.308 T:16996 error <general>: PLEX.entrypoint: Could not download watch list list from plex.tv

I'm not sure how PKC is requesting the watchlist, but there's no token-containing requests present in the log. And if you navigate to https://metadata.provider.plex.tv/library/sections/watchlist/all then the response is <Error error="Unauthorized" message="You must provide a token!" statusCode="401"/>

jecorn commented 1 month ago

That was it. PKC reported I was logged in to plex.tv and I could play movies using a token. But when I re-logged in to plex.tv from PKC, the watchlist now loads.