croneter / PlexKodiConnect

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

Certain PKC add-on navigation broken #2056

Closed croneter closed 7 months ago

croneter commented 7 months ago

If e.g. navigating to a movie library, then "Browse by folder", one cannot browse further into subfolders.

Possible culprit: introduced by ListItem changes in PRs #2041 and #2052.

FYI @Spacetech

Spacetech commented 7 months ago

I can repro this on my end. The logs show:

2024-03-29 16:51:30.529 T:11232 warning <general>: PLEX.download: Unknown answer from PMS https://{redacted}.plex.direct:32400/library/sections/1/folder//library/sections/1/folder?parent=4989& with status code 404: <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html>
2024-03-29 16:51:30.529 T:11232    info <general>: Skipped 1 duplicate messages..
2024-03-29 16:51:30.529 T:11232   error <general>: PLEX.entrypoint: Could not browse to key /library/sections/1/folder//library/sections/1/folder?parent=4989, section None

LOG.error('Could not browse to key %s, section %s', key, section_id) -> so the key is including itself to some extent, while section_id is blank.

I have not yet been able to fully understand how nodes/listings as exposed to kodi. I suspect the watchlist PR could have caused an issue, but I don't see any obvious issues