-
Notifications
You must be signed in to change notification settings - Fork 198
Data parity for seasons and episodes #1593
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
Merged
JonnyWong16
merged 20 commits into
pushingkarmaorg:master
from
Touchstone64:data-parity-for-seasons-and-episodes
Mar 18, 2026
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
997f9e9
Ensure data parity for seasons and episodes retrieved by section sear…
ba913e5
Extract includeGuids inclusion for parent/child searches into a mixin
6d600fe
Implement the key-building mixin for all parent/child retrieval methods
31d261b
Add unit tests for all permutations
1532d20
Fix the mistakes the unit tests inevitably show up
47504f9
Linting corrections (too many spaces)
67630af
Linting corrections (trailing whitespace)
608190b
More linting issues
f794705
Merge branch 'master' into data-parity-for-seasons-and-episodes
Touchstone64 32d7cac
Preserve fetchItem's failure mode when encountering invalid keys
Touchstone64 f46d498
Improve Season unit tests to provide partial objects have guids
fabbe18
Change the relational key builder to explicitly support filters in it…
b96f421
Correct the implementation of relational key construction in Episode.…
cfebc5e
Add the TV parent-child mixin to the collection of composite mixins.
6563636
Improve the statement of intent when building relational keys
db9668a
Prevent test local variables from shadowing fixtures
88da1e0
Move any parent-child query params into the key-building stage
85aa15b
Move the relational key builder into PlexObject and remove the parent…
b3dc7a6
Restore the trailing comma for Composite Mixins
587618f
Rename the relational key builder to be a query key builder
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| from plexapi import utils | ||
|
|
||
|
|
||
| class TvParentChildMixin: | ||
| """ Mixin for Plex objects that have parent/child relationships (episode/season/show). """ | ||
|
|
||
| def _buildRelationKey(self, key, **kwargs): | ||
| """ Returns a key suitable for fetching parent/child TV items """ | ||
| args = {} | ||
|
|
||
| args['includeGuids'] = int(bool(kwargs.pop('includeGuids', True))) | ||
| for name, value in list(kwargs.items()): | ||
| args[name] = value | ||
|
|
||
| params = utils.joinArgs(args).lstrip('?') | ||
|
|
||
| return f"{key}?{params}" | ||
|
Touchstone64 marked this conversation as resolved.
Outdated
Touchstone64 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.