Skip to content
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

Fix nested folder navigation #2063

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

Spacetech
Copy link

Fixes #2056

Browsing a library fetches plex xml from https://plexurl:32400/library/sections/1/folder. The XML response will look like:

<MediaContainer size="5099" allowSync="1" art="/:/resources/movie-fanart.jpg" content="secondary" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="052eff28-a524-469b-8243-cbcf295acf7f" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1710421609" thumb="/:/resources/movie.png" title1="Movies" title2="By Folder" viewGroup="secondary" viewMode="65592">
<Directory key="/library/sections/1/folder?parent=4989" title="abc" />
...

The nested directory key for that item was being set to /library/sections/1/folder//library/sections/1/folder?parent=4989. It should have been /library/sections/1/folder?parent=4989.
Checking for that first / before concatenating keys fixed this. I'm not sure if this is the correct fix, but it resolves the issue for me.

@croneter croneter merged commit 16765bb into croneter:python3-beta Apr 20, 2024
1 check passed
@Spacetech Spacetech deleted the fix_navigation branch April 20, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certain PKC add-on navigation broken
2 participants