-
-
Notifications
You must be signed in to change notification settings - Fork 601
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: jellyfin test notification endpoint update #8766
fix: jellyfin test notification endpoint update #8766
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Notifier
participant JellyfinAPI
Notifier->>JellyfinAPI: GET /endpoint-information
JellyfinAPI-->>Notifier: Endpoint information response
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@coderabbitai review |
Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
sickchill/oldbeard/notifiers/jellyfin.py (1)
27-27
: Check for adequate logging.Consider enhancing the logging by including more details about the request, such as headers or parameters, which could be useful for debugging.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- sickchill/oldbeard/notifiers/jellyfin.py (2 hunks)
Additional comments not posted (4)
sickchill/oldbeard/notifiers/jellyfin.py (4)
14-14
: Updated method signature and endpoint URL.The method signature and endpoint URL have been updated as per the Jellyfin API changes. Ensure that all calls to
_notify_jellyfin
are updated to match the new signature.Also applies to: 19-20
42-42
: Wrapper method correctly forwards parameters.The
test_notify
method correctly forwards parameters to_notify_jellyfin
. Ensure that the changes in_notify_jellyfin
are reflected here if any additional parameters are later added or modified.
42-42
: Ensure correct API endpoint usage inupdate_library
.Verify that the API endpoints used in
update_library
are correct and up-to-date with the Jellyfin API documentation.
27-27
: Ensure proper error handling.Ensure that all possible exceptions are caught and handled appropriately, especially given the change in HTTP method which might affect the response behavior.
Additional refactor looks good 👍 I didn't really think to do any cleanup! |
remove last line
Ran |
Summary
In a recent update to Jellyfin (v10.9.0), they have merged a change which removes the older Emby Notifications endpoint which sickchill used when checking if an api key and url provided were correct.
My fix changes the endpoint used for something that does exist and still requires authentication.
Jellyfin PR that removes the endpoint: jellyfin/jellyfin#8952
Proposed changes in this pull request:
Notifications/Admin
endpoint withSystem/Endpoint
for jellyfin notifier.Checklist
Summary by CodeRabbit