[PR #10499] fix regression in subtitle provider instantiation #12510

Closed
opened 2026-02-07 06:57:10 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/10499

State: closed
Merged: No


Fix subtitle provider instantiation (regression).

Changes
Rolled back some changes made from 10.8 to 10.9 in order to have the opensubtitle provider working.

Issues
While working on this feature, i came across the following error when trying to use the opensubtitle plugin with jellyfin 10.9:

[22:33:27] [ERR] [18] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL POST /Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler.RequestHandler.SendRequestAsync(String endpoint, HttpMethod method, Object body, Dictionary`2 headers, String apiKey, Int32 attempt, CancellationToken cancellationToken)

After investigating, I found out that the _subtitleProviders list from the subtitleManager was empty. This PR fixes the instantiation problem.

PR linked
https://github.com/jellyfin/jellyfin/pull/10410
https://github.com/jellyfin/jellyfin-web/pull/4883

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/10499 **State:** closed **Merged:** No --- Fix subtitle provider instantiation (regression). **Changes** Rolled back some changes made from 10.8 to 10.9 in order to have the opensubtitle provider working. **Issues** While working on [this feature](https://features.jellyfin.org/posts/185/non-admin-users-download-subtitles), i came across the following error when trying to use the opensubtitle plugin with jellyfin 10.9: ```log [22:33:27] [ERR] [18] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL POST /Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo. System.NullReferenceException: Object reference not set to an instance of an object. at Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler.RequestHandler.SendRequestAsync(String endpoint, HttpMethod method, Object body, Dictionary`2 headers, String apiKey, Int32 attempt, CancellationToken cancellationToken) ``` After investigating, I found out that the _subtitleProviders list from the subtitleManager was empty. This PR fixes the instantiation problem. **PR linked** https://github.com/jellyfin/jellyfin/pull/10410 https://github.com/jellyfin/jellyfin-web/pull/4883
OVERLORD added the pull-request label 2026-02-07 06:57:10 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12510