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

flattenSeasons can have the value -1 #77

Closed
nasisakk opened this issue Jan 21, 2025 · 6 comments
Closed

flattenSeasons can have the value -1 #77

nasisakk opened this issue Jan 21, 2025 · 6 comments

Comments

@nasisakk
Copy link

nasisakk commented Jan 21, 2025

flattenSeasons can be -1 for Library Default, 0 for False/Hide, 1 for True/Show.

https://github.com/pkkid/python-plexapi/blob/master/plexapi/video.py#L526 has this documented as such.

It's treated as a strict boolean here: https://github.com/LukeHagar/plex-api-spec/blob/main/src/models/MetaData.yaml#L74

@JasonLandbridge
Copy link
Collaborator

Yes you're correct, If you want you can make a PR or I can take a look tomorrow and fix this

@nasisakk
Copy link
Author

Happy to wait. Getting spun up to ensure it works properly would likely take me just as long :-).

@JasonLandbridge
Copy link
Collaborator

@nasisakk Do you have an example of a response? I'm not sure if it is a string "-1" or number -1 in the json response

@JasonLandbridge
Copy link
Collaborator

Fix has been merged

@nasisakk
Copy link
Author

If you still need me to confirm if it's a string or int, I can do so tomorrow. Sorry for the delayed responses.

@JasonLandbridge
Copy link
Collaborator

If you still need me to confirm if it's a string or int, I can do so tomorrow. Sorry for the delayed responses.

No worries, I figured out that it was a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants