Skip to content

fix(jellyfin): Refactor library parsing and valid activity when user …#403

Open
FoxxMD wants to merge 2 commits into
masterfrom
GH-402/nonAdminJellyfin
Open

fix(jellyfin): Refactor library parsing and valid activity when user …#403
FoxxMD wants to merge 2 commits into
masterfrom
GH-402/nonAdminJellyfin

Conversation

@FoxxMD

@FoxxMD FoxxMD commented Nov 24, 2025

Copy link
Copy Markdown
Owner

…is non-admin

#402

Checklist before requesting a review

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

Describe your changes

  • User alternate api to get libraries when not using API key for auth
    • getVirtualFolders is only available to users with escalated privileges
    • getUserViews returns similar information except that Locations is missing so we can't check library based on file path
  • Use getAncestors to try to get library name for newly seen media Ids
  • User libraries Ids and/or Paths (if hydrated from from virtual folders) to determine valid libraries

There is a breaking change/limitation with this change: GetAncestors only returns the first CollectionFolder (library) that an Item is added to. If the same media is in n+1 libraries and a user does not include the 1st library when using librariesAllow or librariesBlock then the media may accidentally be filtered out, or allowed, respectively.

In this scenario a user must use API Key auth so that we can filter by Path, which will have the correct behavior.

Issue number and link, if applicable

#402

@FoxxMD FoxxMD added the safe to test trusted to build image label Nov 24, 2025
@github-actions

Copy link
Copy Markdown
Contributor

📦 A new release has been made for this pull request.

To play around with this PR, pull an image:

  • foxxmd/multi-scrobbler:pr-403

Images are available for x86_64 and ARM64.

Latest commit: 6d8d840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test trusted to build image

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant