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

Allow fields query with get_media_folders #38

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

Erotemic
Copy link
Contributor

I found myself in a situation where I needed to get the path corresponding to the top-level media folders. I was able to do this by looking at the source code, realizing it was just an empty call to self.users("/Items") and then adding the necessary params to specify the extra fields to returns.

To facilitate my use-case I added a fields option to get_media_folders, so running self.get_media_folders(fields=['Path']) will now return the associated path with each result.

I'm not sure if this is the best way to go about it, but it worked for me and now I'm putting it up here as a standalone PR for review / comments.

@iwalton3 iwalton3 merged commit 5692966 into jellyfin:master Jan 21, 2024
5 checks passed
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.

2 participants