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: Stream objects not loaded for Plex sessions #1369

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

JonnyWong16
Copy link
Collaborator

@JonnyWong16 JonnyWong16 commented Feb 19, 2024

Description

Objects loaded from /status/sessions have an added .session to the ehash used to lookup the PlexObject class. This adds a helper function to recursively get the PlexObject with the highest specificity. e.g. ehash = 'Stream.1.session' will return the MediaPartStream class for ehash = 'Stream.1'.

Fixes #1368
Ref.: #1328

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

@JonnyWong16 JonnyWong16 force-pushed the bugfix/utils_getPlexObject branch from 84c6df0 to a0f070e Compare February 19, 2024 21:27
@JonnyWong16 JonnyWong16 merged commit 0601aaa into pkkid:master Mar 16, 2024
5 checks passed
@JonnyWong16 JonnyWong16 deleted the bugfix/utils_getPlexObject branch March 31, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streams in MediaParts empty (reload() has no effect)
1 participant