Giter VIP home page Giter VIP logo

jellyfin-plugin-opensubtitles's Introduction

Jellyfin OpenSubtitles Plugin

Part of the Jellyfin Project

Plugin Banner

GitHub Workflow Status GPLv3 License Current Release

About

This is a plugin allows you to download subtitles from Open Subtitles for your media.

Installation

See the official documentation for install instructions.

Build

  1. To build this plugin you will need .Net 6.x.

  2. Build plugin with following command

dotnet publish --configuration Release --output bin
  1. Place the dll-file in the plugins/opensubtitles folder (you might need to create the folders) of your JF install

Releasing

To release the plugin we recommend JPRM that will build and package the plugin. For additional context and for how to add the packaged plugin zip to a plugin manifest see the JPRM documentation for more info.

Contributing

We welcome all contributions and pull requests! If you have a larger feature in mind please open an issue so we can discuss the implementation before you start. In general refer to our contributing guidelines for further information.

Licence

This plugins code and packages are distributed under the GPLv3 License. See LICENSE for more information.

jellyfin-plugin-opensubtitles's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jellyfin-plugin-opensubtitles's Issues

OpenSubtitles downloader only returns Bad Request

Jellyfin: 10.7.7
OpenSubtitles plugin: 11.0.0
OS: DSM7 on a DS220+
Using the built in reverse proxy in DSM, not sure if that contributes to it instead of manually setting up nginx.

When the activity is triggered it just clogs the logs with messages identical to this:

Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response: BadRequest - ""

Login and API keys all look well. Tried with both dev and non-dev key.

Subtitles aren't downloaded automatically for me.

Hello!

I have set up my plugin, but it doesn't seem to work.

I can run the scheduled task to download missing subtitles, but nothing happens. The OS API overview also says no downloads occurred.
WHen I go to the show I downloaded (Which is identified by Jellyfin correctly), the subtitles show "off". When I click on edit -> find subtitles, some do appear.. but this is only after I messed around with the plugin, created an new API consumer, connected it to my plugin, deleted the plugin, reinstalled the plugin and reconfigured it..

I am still expecting it to automatically download subtitles, though..

Could anyone help me out? Or point me in the direction of the logs? I am running jellyfin on a raspberry pi 3b+

image
image

MediaBrowser.Model.Net.HttpException: Misused header name.

I keep getting the following error in my log:

[17:50:02] [ERR] Error downloading subtitles from Open Subtitles
MediaBrowser.Model.Net.HttpException: Misused header name. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String userName, String password, String language, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

Windows 10 - Opensubtitles plugin not working when placed in plugins directory

Hi,
Installing opensubtitles plugin doesn't work.

  1. Installing from the catalog in Jellyfin does not work, it hangs up indefinitely then.
    Error message I get in that case is :

[21:04:54] [ERR] [9] Emby.Server.Implementations.HttpServer.HttpListenerHost: Error processing request. URL: http://localhost:8097/Packages/Installed/Open Subtitles?AssemblyGuid=4b9ed42f-5185-48b5-9803-6ff2989014c4&version=10.0.0.0
MediaBrowser.Common.Extensions.ResourceNotFoundException: Package not found: Open Subtitles
at MediaBrowser.Api.PackageService.Post(InstallPackage request)
at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

  1. I've tried manually installed the opensubtitles plugin by cloning and building the repository, and then placing the resulting bin folder in my plugins directory.
    However, when restarting jellyfin I get the error messages like below, and jellyfin exits.
    After removing the bin folder, every works fine again.

21:01:39] [INF] [1] Main: Jellyfin version: 10.6.4
[21:01:39] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[21:01:39] [INF] [1] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[21:01:39] [INF] [1] Main: Operating system: Windows
[21:01:39] [INF] [1] Main: Architecture: X64
[21:01:39] [INF] [1] Main: 64-Bit Process: True
[21:01:39] [INF] [1] Main: User Interactive: True
[21:01:39] [INF] [1] Main: Processor count: 12
[21:01:39] [INF] [1] Main: Program data path: C:\ProgramData\Jellyfin\Server
[21:01:39] [INF] [1] Main: Web resources path: C:\Program Files\Jellyfin\Server\jellyfin-web
[21:01:39] [INF] [1] Main: Application directory: C:\Program Files\Jellyfin\Server
[21:01:39] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: C:\ProgramData\Jellyfin\Server\cache
[21:01:39] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[21:01:39] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Jellyfin.Data.dll
System.IO.FileLoadException: Could not load file or assembly 'Jellyfin.Data, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:39] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null from C:\ProgramData\Jellyfin\Server\plugins\bin\Jellyfin.Plugin.OpenSubtitles.dll
[21:01:39] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error getting exported types from Jellyfin.Plugin.OpenSubtitles, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()

[21:01:39] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\MediaBrowser.Common.dll
System.IO.FileLoadException: Could not load file or assembly 'MediaBrowser.Common, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\MediaBrowser.Controller.dll
System.IO.FileLoadException: Could not load file or assembly 'MediaBrowser.Controller, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\MediaBrowser.Model.dll
System.IO.FileLoadException: Could not load file or assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly Microsoft.AspNetCore.Http.Abstractions, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.AspNetCore.Http.Abstractions.dll
[21:01:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly Microsoft.AspNetCore.Http.Features, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.AspNetCore.Http.Features.dll
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.Data.Sqlite.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Data.Sqlite, Version=5.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly Microsoft.DotNet.PlatformAbstractions, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.DotNet.PlatformAbstractions.dll
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.EntityFrameworkCore.Abstractions.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Abstractions, Version=5.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.EntityFrameworkCore.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=5.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.EntityFrameworkCore.Relational.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Relational, Version=5.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.EntityFrameworkCore.Sqlite.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Sqlite, Version=5.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Failed to load assembly C:\ProgramData\Jellyfin\Server\plugins\bin\Microsoft.Extensions.Caching.Abstractions.dll
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Caching.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
[21:01:40] [ERR

Useragent Required

Hey ๐Ÿ‘‹
OpenSubtitles requires us to use a specific useragent to identify the app. It must be in the format we have registered with them, and a version number.

In this case, the appropriate useragent would be Jellyfin v10.2.

Url contains username and password รฎn plain text

Hi all,

When entering OpenSubtitiles credentials in Jellyfin, it redirects to

http://localhost:8096/web/index.html?username=<my_username>&password=<my_password>#!/configurationpage?name=Open%20Subtitles?username=<my_username>&password=<my_password>

where my_username and my_password are my credentials for OpenSubtitles.org, in plain text.

It seems they're kept in the url even if I leave the plugin page:
image

For security reasons they should not be passed in plain text and in the query string.

  • Jellyfin v10.7.5
  • OpenSubtitles plugin v10.0.0

Thank you.

Failed to load assembly /config/data/plugins/Open Subtitles_11.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll. Unknown exception was thrown. Disabling plugin.

Hi everyone, first of all sorry to bother if it is an easy fix i'm not an experienced user.

My opensubtitles plugin is not working anymore when dowloaded directly from jellyfin plugin catalog. I checked my logs (i'm running Jf in docker) but i didnt see anything at first so i decided to unistall/reinstall the pluggin but after doing so nothing changed: I get this unknow exception that is thrown and nothing else. (logs following). In JF the plugging is marked as "malfunctioned" and I can't put my opensub credentials via user interface. I thought maybe i had to change my credentials in the conf file but i'm lacking of knwoledge with xml and i'm not sure if I wrote it right in the file: I wrote it like this

<Username="myusername" /> <Password="mypassword" />

Anyway I'm lost please help :)

Thanks a lot in advance

`[16:12:54] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly OpenSubtitlesHandler, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null from /config/data/plugins/Open Subtitles_11.0.0.0/OpenSubtitlesHandler.dll

[16:12:54] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly /config/data/plugins/Open Subtitles_11.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll. Unknown exception was thrown. Disabling plugin.

System.IO.FileNotFoundException: Could not load file or assembly 'MediaBrowser.Controller, Version=10.7.6.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MediaBrowser.Controller, Version=10.7.6.0, Culture=neutral, PublicKeyToken=null'

at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()`

Open Subtitles erroe

Describe the bug
Error using Open Subtitles

Logs

[2019-12-14 03:09:16.211 +00:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.MissingMethodException: Method not found: 'Void MediaBrowser.Common.Net.HttpRequestOptions.set_EnableHttpCompression(Boolean)'.
   at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()

Screenshots

image

System (please complete the following information):

  • OS: [Docker]
  • Browser: [Chrome]
  • Jellyfin Version: [e.g. 10.4.3]
  • Installed Plugins: [Open Subtitles.]
  • Reverse proxy: [nginx]

Opensubtitles Rate Limit Exceeded

Opensubtitles will exceed the rate limit of the API.

https://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC
API Request limit:ย 40 HTTP requests per 10 seconds per IP address

We should also probably integrate the X-ratelimit header to the sources that respect the header.
Check HTTP Response header 'X-RateLimit-Remaining' for http requests remaining per given period.

Might be worth while for this as well
If you getย 407 Download limit reached, do not use persistent connections (HTTP keep-alive) and don't download more than 200 subtitles per 24 hour per IP/User

Paid members still have a rate limit
Higher download limitsย - 1000 subtitles/24 hours - useful when using programs such as media centers (but no abusing!)

Select file or movie version to download the subtitles for

Hi,

Unfortunately I'm having a problem with the plugin in the situation when there's more than a single version of a movie. I'm following the suggested folder and file structure described at https://jellyfin.org/docs/general/server/media/movies.html

When I choose to "Edit subtitles" there's always only a single file / version selected. So for example I am able to download subtitles for 1080p version but not for 4K one.

It would be great if the plugin would use the version of a movie that's currently selected or possibly if it would allow to choose a specific file in the popup screen.

Regards,
Maciej

For a specific TV show, plugin can search but not download in 12.0.0, and not search at all in 18.0.0

Hi,

I tried both jellyfin 10.7 with the opensubtitles plugin 12.0.0 and jellyfin 10.8 with the 18.0.0 plugin.

I have a TV show A for which I can search, find and download subtitles in jellyfin 10.7 and 10.8

I also have a TV show B (Boruto) for which I can search, and:

  • in 10.7, find a candidate, but when clicking on download, the download happens (My OpenSubtitles ratio goes down by 1), but then an HttpRequestException is thrown when processing the download.
  • in 10.8, for the same episode, the search instantly returns nothing

This happened for all the episodes I tried for this TV show.

Log for sub search failing in 10.8:
[2022-04-08 21:04:00.904 +00:00] [WRN] [8] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "https://myserv/Items/6b46c49b8bf82d1ab75f12d942aff2f3/RemoteSearch/Subtitles/eng" to "myip" in 0:00:00.9097688 with Status Code 200

Log for sub search succeeding but then error happening during or after download in 10.7:
[2022-04-08 21:13:07.253 +00:00] [WRN] [15] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "https://myserv/Items/6b46c49b8bf82d1ab75f12d942aff2f3/RemoteSearch/Subtitles/eng" to "myip" in 0:00:02.469229 with Status Code 200
[2022-04-08 21:14:16.975 +00:00] [INF] [25] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Remaining downloads: 16
[2022-04-08 21:14:17.328 +00:00] [ERR] [34] Jellyfin.Api.Controllers.SubtitleController: Error downloading subtitles
System.Net.Http.HttpRequestException: Subtitle with Id 6972559 could not be downloaded: OK
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.GetSubtitlesInternal(String id, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.DownloadSubtitles(Video video, LibraryOptions libraryOptions, String subtitleId, CancellationToken cancellationToken)
at Jellyfin.Api.Controllers.SubtitleController.DownloadRemoteSubtitles(Guid itemId, String subtitleId)

502 bad gateway error

I use Docker-Desktop on WSL and have OS v12.0.0. When I try to download subs I get:

[20:05:20] [INF] [1] Main: Jellyfin version: 10.7.7
[20:05:20] [INF] [1] Main: Environment Variables: ["[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_MEDIA_DIR, /media]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_LOG_DIR, /config/log]"]
[20:05:20] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[20:05:20] [INF] [1] Main: Operating system: Linux
[20:05:20] [INF] [1] Main: Architecture: X64
[20:05:20] [INF] [1] Main: 64-Bit Process: True
[20:05:20] [INF] [1] Main: User Interactive: True
[20:05:20] [INF] [1] Main: Processor count: 8
[20:05:20] [INF] [1] Main: Program data path: /config
[20:05:20] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[20:05:20] [INF] [1] Main: Application directory: /jellyfin/
[20:05:20] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
[20:05:20] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[20:05:20] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_12.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll
[20:05:20] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly OpenSubtitlesHandler, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_12.0.0.0/OpenSubtitlesHandler.dll
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Open Subtitles 12.0.0.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.7.7.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.7.7.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.7.7.0
[20:05:31] [INF] [1] Main: Kestrel listening on Any IP4 Address
[20:05:32] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {9edd3bea-0864-4206-b5d7-f32fb66960ea} may be persisted to storage in unencrypted form.
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[20:05:32] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 01/21/2022 02:00, which is 5:54:27.7575522 from now.
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 4.3.2
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8_cuvid", "vp8_qsv", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "flac", "mp3"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["vdpau", "cuda", "vaapi", "qsv", "drm", "opencl"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: Custom: /usr/lib/jellyfin-ffmpeg/ffmpeg
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 87583decc73a449c851e3cba5ac4812b
[20:05:32] [INF] [1] Emby.Dlna.Main.DlnaEntryPoint: Registering publisher for urn:schemas-upnp-org:device:MediaServer:1 on 172.19.0.2/16
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.3971254
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[20:05:33] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.2241486
[20:05:33] [INF] [1] Main: Startup complete 0:00:13.0670898
[20:05:33] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /educational
[20:05:33] [INF] [19] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /films
[20:05:34] [INF] [7] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /series
[20:05:35] [INF] [19] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins
[20:05:35] [INF] [19] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
[20:05:35] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
[20:05:36] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
[20:05:36] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[20:07:08] [INF] [12] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 172.19.0.1 request
[20:07:57] [INF] [11] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[20:08:09] [INF] [37] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[20:08:23] [WRN] [36] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo to 172.19.0.1 in 0:00:03.7765845 with Status Code 200
[20:08:45] [WRN] [28] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/4115842c803f969ab22328ad6cbc8921/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=7732126cd8e3c3eb584d99c2c454667a to 172.19.0.1 in 0:00:00.5851355 with Status Code 200
[20:08:45] [WRN] [16] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/b98cc1e0ae259b6588aa4de372badca9/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=606ec5c34818604470b9774d18091573 to 172.19.0.1 in 0:00:00.5390307 with Status Code 200
[20:08:45] [WRN] [48] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/c74b6ca4659de0c3dc68e9cc2f3f075b/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=1cd7fa1568011a5bb4cae968d5700c07 to 172.19.0.1 in 0:00:00.5750953 with Status Code 200
[20:08:45] [WRN] [44] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/23faf0e1800c622d9ab4e6bebdd272b7/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=f33efed019e3ada242a6a6c97d529f5e to 172.19.0.1 in 0:00:00.7221421 with Status Code 200
[20:08:45] [WRN] [28] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/e59fb7eaf39c5cf73e4bcb8f1d925982/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=70221faddacd22e275710a53e3733d5a to 172.19.0.1 in 0:00:00.614173 with Status Code 200
[20:08:45] [WRN] [39] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/a6c442310e3c773ed8ceb9da55cfa247/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=f29f2b33fea09d1b084842af7b8d8d7c to 172.19.0.1 in 0:00:00.7247949 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/e52629f5fe79161f86d4561f9d0f3855/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=8d975f1c52763beeb3c82928ed4b0e8c to 172.19.0.1 in 0:00:00.7794231 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/ffb1ef360ce63e2eb60811c3b771f5e7/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=94b5f964c4738e777403a38dc69bb03e to 172.19.0.1 in 0:00:00.782857 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/02c6742e952d8b98731f5c37aca2ccca/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=8e4ff10f1f3ceec14a3a61dcc1dd8f2b to 172.19.0.1 in 0:00:00.8298095 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/a65850e3281b74ec6cf80343441bf79d/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=bbdc5d537dd0f37802afdeffa04fd909 to 172.19.0.1 in 0:00:00.8981114 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/2bee301bef7f0405ad787b016e93246c/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=160d1462170f68fbfd491cda7d409ee3 to 172.19.0.1 in 0:00:00.8423752 with Status Code 200
[20:08:46] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/527cf6897442e06cb607ddbd2c8473e6/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=c0dacb30619e02463d86f883695c93b5 to 172.19.0.1 in 0:00:00.8114312 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/b91c701c95fae0e1f7f46a14fbe6e00e/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=19dcf19c79a35f1cce86efe683b23426 to 172.19.0.1 in 0:00:01.0072169 with Status Code 200
[20:08:47] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/6c713d068d57928c2b612445b05fda4e/Images/Primary?fillHeight=270&fillWidth=180&quality=96&tag=6716bf14a38cae6e2608ad65ced995dc to 172.19.0.1 in 0:00:00.5724319 with Status Code 200
[20:08:48] [WRN] [49] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/DisplayPreferences/usersettings?userId=194c93afb0ba405bb36cb4947671218b&client=emby to 172.19.0.1 in 0:00:00.8471697 with Status Code 204
[20:09:17] [ERR] [34] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response: BadGateway - <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>


<title>api.opensubtitles.com | 502: Bad gateway</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/main.css" type="text/css" media="screen,projection" />


</head>
<body>
<div id="cf-wrapper">

    

    <div id="cf-error-details" class="p-0">
        <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8">
            <h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2">
              
              <span class="cf-error-type">Error</span>
              <span class="cf-error-code">502</span>
            </h1>
            <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">Ray ID: 6d0af082eeb8421e &bull;</span>
            <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">2022-01-20 20:09:16 UTC</span>
            <h2 class="text-gray-600 leading-1.3 text-3xl font-light">Bad gateway</h2>
        </header>
        
        <div class="my-8 bg-gradient-gray">
            <div class="w-240 lg:w-full mx-auto">
                <div class="clearfix md:px-8">
                  
<div id="cf-browser-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">You</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Browser</h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>

<div id="cf-cloudflare-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">Amsterdam</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Cloudflare</h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>

<div id="cf-host-status" class="cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">api.opensubtitles.com</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Host</h3>
  <span class="leading-1.3 text-2xl text-red-error">Error</span>
</div>

                </div>
              
            </div>
        </div>

        <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
            <div class="clearfix">
                <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>
                    <p>The web server reported a bad gateway error.</p>
                </div>
              
                <div class="w-1/2 md:w-full float-left leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>
                    <p class="mb-6">Please try again in a few minutes.</p>
                </div>
            </div>
              
        </div>

        <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
  <p class="text-13">
    <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">6d0af082eeb8421e</strong></span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Your IP</span>: 83.86.188.222</span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
    
  </p>
</div><!-- /.error-footer -->


    </div>
</div>
</body>
</html>

The "Check opensubtitles API status" shows everything works. I can also log into my account on Jellyfin and it recognises my download limit.

Do I need to roll back a version?

Plugin configuration not saving correctly, and gets overwritten on server restart.

I can't get the configuration for version 11 to save. If I hit edit plugin, and fill in the settings and save, the page just reloads and clears all the fields, and the xml file in the plugin config directory still has empty elements for the username, password, and api key. If I manually edit the xml file and restart the server, it clears the file.

I reverted to version 10 and it's working fine with the old API.

[ERR] Error downloading subtitles from "Open Subtitles" error fills my log after installing the plugin on Jellyfin 10.7.6

My log is filled with this error after installing the open subtitles plugin and adding my login info.

System.Xml.XmlException: 'src' is an unexpected token. The expected token is '='. Line 10, position 16.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(SubtitleSearchParameters[] parameters, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
[2021-07-27 13:35:10.214 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.229 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.290 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.371 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.471 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.634 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.652 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.704 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.739 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:10.988 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:11.054 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:11.071 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:11.092 -04:00] [ERR] Invalid response type
[2021-07-27 13:35:11.139 -04:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Net.Http.Headers.HttpHeaders.AddHeaderInfo(HeaderDescriptor descriptor, HeaderStoreItemInfo sourceInfo)
   at System.Net.Http.Headers.HttpHeaders.AddHeaders(HttpHeaders sourceHeaders)
   at System.Net.Http.Headers.HttpRequestHeaders.AddHeaders(HttpHeaders sourceHeaders)
   at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.PostAsync(Uri requestUri, HttpContent content, CancellationToken cancellationToken)
   at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
   at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(SubtitleSearchParameters[] parameters, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
.
.
.
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(SubtitleSearchParameters[] parameters, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
[2021-07-27 13:35:15.336 -04:00] [ERR] Error downloading subtitles from "Open Subtitles"
.
.
.
[2021-07-27 13:38:17.890 -04:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: The 'hr' start tag on line 6 position 2 does not match the end tag of 'body'. Line 7, position 3.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)```

Error downloading subtitles from "Open Subtitles"

[2019-12-22 12:01:27.500 +00:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()

[REQUEST] Allow choose between 2 or 3 letter language tags

When asking a subtitle for movie.mp4, the subtitle will be named movie.eng.srt. I was wondering if it were possible to let it output 2 letter country codes so it would be movie.en.srt? This would allow it to work better together with tools as https://github.com/Diaoul/subliminal . The use of 2-letter codes is also more appropriate with BCP 47 [1][2]

[1] https://www.w3.org/International/questions/qa-lang-2or3 "Should I use two-letter or three-letter ISO language codes in language tags?"
[2] https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

Log path on IOException for media hashing

Describe the isue
Sometimes the plugin attempts to hash movies and fails due to IO errors.
It would be great if the path for these failures could be logged for further investigation.

System:

  • OS: Debian
  • Virtualization: QEMU
  • Jellyfin Version: 10.7.1
  • Open Subtitles plugin version: 10.0.0.0

To Reproduce

  1. Have a media item referencing a path which results in in an IO error when accessed
  2. Run the Download missing subtitles task

Expected behavior
Log should contain the path that was attempted to be accessed.

Logs

[2021-04-24 19:52:45.984 +00:00] [ERR] [80] MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles"
System.IO.IOException: Input/output error
   at System.IO.FileStream.CheckFileCall(Int64 result, Boolean ignoreNotSupported)
   at System.IO.FileStream.ReadNative(Span`1 buffer)
   at System.IO.FileStream.ReadSpan(Span`1 destination)
   at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
   at OpenSubtitlesHandler.MovieHasher.ComputeMovieHash(Stream input)
   at OpenSubtitlesHandler.Utilities.ComputeHash(Stream stream)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

param languages is empty, breaks the searching

According the log I can see not very often, but sometimes we get query like this:

https://api.opensubtitles.com/api/v1/subtitles?episode_number=1&languages=moviehash=5716a7688381082d&moviehash_match=only&query=marvel%27s+the+punisher&season_number=1&type=episode

as you can see, languages is empty, so it won't return anything. Please check the code, if this can happen at your side

error in manual build

Hi, when i trying to build the plugin i get an error

Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/3.1.107/NuGet.targets(123,5): error : '10.*-*' is not a valid version string. [/home/user/repos/jellyfin/jellyfin-plugin-opensubtitles/Jellyfin.Plugin.OpenSubtitles.sln]

Looks like is related to package versioning

<PackageReference Include="Jellyfin.Controller" Version="10.*-*" />

Can't sign in

can't sign in,
when u do this ,will jump to homepage,and account is missing
jellyfin 10.8.1

OpenSubtitles Crashes the latest Docker Jellyfin

[04:27:23] [INF] Loading assemblies,
[04:27:23] [INF] Loaded assembly Jellyfin.Plugin.PlaybackReporting, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Playback Reporting/Jellyfin.Plugin.PlaybackReporting.dll,
[04:27:23] [INF] Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles/Jellyfin.Plugin.OpenSubtitles.dll,
[04:27:23] [INF] Disposing CoreAppHost,
[04:27:23] [FTL] Unhandled Exception,
System.IO.FileNotFoundException: Could not load file or assembly 'MediaBrowser.Controller, Version=10.4.1.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.,
,
File name: 'MediaBrowser.Controller, Version=10.4.1.0, Culture=neutral, PublicKeyToken=null',
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes),
   at System.Reflection.RuntimeAssembly.GetExportedTypes(),
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext(),
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items),
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source),
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source),
   at Emby.Server.Implementations.ApplicationHost.DiscoverTypes(),
   at Emby.Server.Implementations.ApplicationHost.InitAsync(IServiceCollection serviceCollection),
   at Jellyfin.Server.Program.StartApp(StartupOptions options),
,
   at Jellyfin.Server.Program.Main(String[] args),
   at Jellyfin.Server.Program.<Main>(String[] args),
,
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MediaBrowser.Controller, Version=10.4.1.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.,
,
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes),
   at System.Reflection.RuntimeAssembly.GetExportedTypes(),
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext(),
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items),
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source),
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source),
   at Emby.Server.Implementations.ApplicationHost.DiscoverTypes(),
   at Emby.Server.Implementations.ApplicationHost.InitAsync(IServiceCollection serviceCollection),
   at Jellyfin.Server.Program.StartApp(StartupOptions options),
   at Jellyfin.Server.Program.Main(String[] args),
   at Jellyfin.Server.Program.<Main>(String[] args),
Aborted (core dumped),

Error downloading automated task

Hi have a issue.

I get those error in log when running the task in automated task.

If I download manually it work fine.

Any suggestion?

[2020-01-12 13:42:41.729 -05:00] [ERR] Error downloading subtitles from "Open Subtitles"
MediaBrowser.Model.Net.HttpException: Backend fetch failed
   at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
   at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
   at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
   at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

not searching for the right movie

Hello,

this plugin won't find the correct subtitles for the movies.
I first though my movies just didnt have subtitles available, so i tried it with the hobbit which has several pages.
But somehow "(1956)CanyonRiver[ING].srt" is the only one that comes up.
image

It has worked in the past, but I'm currently on plugin version 10.0.0.0 and jellyfin 10.7.0-RC3.

Error downloading subtitles from "Open Subtitles"

An error occurred when I used OpenSubtitles to download
version๏ผš10.7.7
os๏ผšLinux X64

[2021-11-01 02:37:36.369 +00:00] [ERR] [42] MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles" System.Text.Json.JsonException: Failed to parse response, code: Moved, context: options: System.Collections.Generic.Dictionary2[System.String,System.String], page: 1, body:
""
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options) at OpenSubtitlesHandler.Models.ApiResponse1..ctor(HttpResponse response, String[] context)
--- End of inner exception stack trace ---
at OpenSubtitlesHandler.Models.ApiResponse1..ctor(HttpResponse response, String[] context) at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(Dictionary2 options, String apiKey, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)`

[Request] Add Chinese Bilingual as an option

Not sure if this is something that would need to be added into Jellyfin as well as here. OpenSubtitles.org not sure if .com supports dual subtitles for chinese.

Could be as simple as searching Chinese subs and Chinese Bilingual at the same time (which would be nice actually) or a separate one.

Bilingual Household and dual subs are really nice to have, they're common with Chinese/English fortunately.

The OpenSubtitle task should stop when the prescribed number of downloads is reached.

Self-explanatory really. The plugin now correctly reports the amount of downloads left.

[23:58:33] [INF] [22] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Remaining downloads: 60

So when the limit of 100 is reached

[00:33:59] [INF] [22] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Remaining downloads: 0

The task should end and restart the next day when the quota has been reset. Otherwise, it will just clog the logs and put unnecessary load on the Opensubtitles servers.

[00:34:33] [ERR] [20] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: OpenSubtitles download limit reached
[00:34:51] [ERR] [18] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: OpenSubtitles download limit reached
....
[08:48:55] [ERR] [10] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: OpenSubtitles download limit reached
[08:49:02] [ERR] [18] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: OpenSubtitles download limit reached

Search and replace subtitle not working (worked fine on Jellyfin 10.6.4)

I am on V10.0.0.0.
I have a movie with subtitles that don't aren't in sync, so in Jellyfin I edit subtitles, "delete" the old one (to which it isn't removed), I manually remove the file, search for more, download a "perfect match" and the wrong one seems to get downloaded.

This doesn't seem to happen with previous version and with Jellyfin 10.6.4


   MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/shared/downloads/movies/Blade Trinity (2004)/Blade Trinity - 2004.eng.srt"
   MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/shared/downloads/movies/Blade Trinity (2004)/Blade Trinity - 2004.eng.srt"
   MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/shared/downloads/movies/Blade Trinity (2004)/Blade Trinity - 2004.eng.srt"
   MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/shared/downloads/movies/Transformers (2007) /Transformers - 2007.eng.srt"
   MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/shared/downloads/movies/Transformers (2007) /Transformers - 2007.eng.srt"

Saw some other strange errors above:

   MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: The 'hr' start tag on line 6 position 2 does not match the end tag of 'body'. Line 7, position 3.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

27072021Log.txt

Subtitle Search only works with English lenguaje.

Versiรณn: 10.7.7
Linux
Arquitectura: X64
Plugin version: 11.0.0.0
Opensubtitles Account: VIP, 1000 subtitles per day.

Background task does download subtitles, until it reaches the limit.

sometimes i get this error:

[2021-09-22 21:09:21.246 -05:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Text.Json.JsonException: Failed to parse JSON:
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options) at OpenSubtitlesHandler.Models.ApiResponse1..ctor(String response, HttpStatusCode statusCode)
--- End of inner exception stack trace ---
at OpenSubtitlesHandler.Models.ApiResponse1..ctor(String response, HttpStatusCode statusCode) at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(Dictionary2 options, String apiKey, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

In any Movie, if i perform a manual search for subtitles, i get no results with any languaje except english.
i do have "exact match" activated and results shown that exact matches exist for my file, but only for english searches.

Opensubtitles plugin doesn't show wrong credentials .

Describe the bug
There is no indicator that says that Opensubtitles should be configurated, as well as even configurated there is no ' test ' button or anything that would allow a user to check if he has a typo.
I have seen some users claim Opensubtitles doesn't wort well and it's probably because they didn't know it Opensubtitles plugin should be configurated.

To Reproduce

  1. Go to 'availableplugins.html'
  2. Click on 'Open Subtitles'
  3. No description.

Expected behavior
A minimum verbal explanation in plugin description.
Inside configuration screen a ' Test ' button.

Screenshots
https://i.imgur.com/ifcrpGa.png
https://i.imgur.com/nUkm5Ik.png

System (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Jellyfin Version: 10.4.3
  • Installed Plugins: Only Opensubtitles
  • Reverse proxy: [e.g. no, nginx, apache, etc.]

Additional context
For all who enjoy watching mainstream content outside who isn't in their native language, subtitles are extremely important. It's so important that they might not use a player only because its subtitle support isn't quite well.

That's for your amazing work :)

Not able to login through the opensubtitles plugin

I have installed the plugin, but it doesn't seem to work. I tried logging in through the plugin's interface in jellyfin, however, the screen only keeps loading and I am unable to login. Using the latest versions of both jellyfin, and opensub plugin.

Keyboard not showing and can't login

On my Android browser, I think I have 2 issue here.

  1. Keyboard not showing
    I had to type credentials somewhere and copy then paste it in the box.

  2. Can't login
    After hitting the login button button, it went to infinite loading. This is the log

[2019-11-06 08:54:26.882 +08:00] [ERR] Error processing request
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuidWithNoStyle(ReadOnlySpan`1 guidString, GuidResult& result)
   at System.Guid.TryParseGuid(ReadOnlySpan`1 guidString, GuidStyles flags, GuidResult& result)
   at System.Guid..ctor(String g)
   at MediaBrowser.Api.PluginService.Post(UpdatePluginConfiguration request)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

OpenSubtitles domain not working in Denmark

Hello,

I have my server hosted in Denmark, and the Opensubtitles plugin is not working. When you go to opensubtitles.org it redirects you to the following document:

https://rettighedsalliancen.dk/wp-content/uploads/2018/03/Frederiksberg-District-Court-RA-v-TDC-5-December-2017-Popcorn-Time-EN.pdf

TDC (one of the biggest providers in the country) blocked access to that domain (and others) and therefore the plugin is not working.

Not sure what would be the best solution (besides wrapping everything behind a VPN)..

What do you think?

Thanks!

Auto trigger when library scanned

My understanding is that currently, the Open Subtitles plugin only runs as a scheduled task. Is it possible to auto-trigger the download whenever a library is re-scanned? It is helpful for automated set ups, where Radarr (or Sonarr) triggers a library re-scan, which when done, triggers a subtitle download for the newly imported file.

Error downloading subtitles using opensubtitles plugin

System:

  • Jellyfin Version: 10.7.1
  • Openubtitles plugin version: 10.0.0

Log:

[2021-03-26 14:17:44.356 +08:00] [ERR] [18] MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles"
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: The operation was canceled.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
---> System.Net.Sockets.SocketException (125): Operation canceled
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(SubtitleSearchParameters[] parameters, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
[2021-03-26 14:18:38.149 +08:00] [ERR] [24] MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: The 'img' start tag on line 68 position 2 does not match the end tag of 'body'. Line 69, position 3.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(SubtitleSearchParameters[] parameters, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

opensubtitles plugin does not search for subtitles in tv series

Hi,

I would like to report some isse.
Cant download subtitles for TV series. I'm sure that subtitles exists, but plugin shows only: "No results found."
It works for movies, but not for TV series. My naming scheme looks like this:

Library points to general folder with TV series: /media/tv_series
Then folder with specific series, for example: "The_Mandalorian_2019"
Then season: "Season_2"
Then episode: "The_Mandalorian_S02E02.mkv"

So it looks like this:

  • /media/tv_series
    • The_Mandalorian_2019
      • Season_2
        • The_Mandalorian_S02E02.mkv

Option "Only download subtitles that are a perfect match for my video files" is unchecked.

Plugin Version 9.0.0.0
Jellyfin Version 10.6.4

Any idea how to solve it? I just switch from emby and there it works for the same naming scheme.

BR.

System.MissingMethodException: Method not found

Hello,

I'm getting the following error from the plugin:

System.MissingMethodException: Method not found: 'Void MediaBrowser.Common.Net.HttpRequestOptions.set_EnableHttpCompression(Boolean)'. at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken) at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken) at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken) at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken) at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()

Thanks.

NullReferenceException raised with the latest build

Describe the issue
I build the plugin from the repo and placed the DLL files generated in the plugin directory. After I log in from the configuration panel and try to search subtitles for a movie, the plugin failed to work

System:

OS: Debian
Jellyfin Version: 10.7.1
Open Subtitles plugin version: build from source

Logs

[ERR] Error downloading subtitles from "Open Subtitles"
System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSubtitlesHandler.Utilities.SendRequestAsync(Byte[] request, String userAgent, CancellationToken cancellationToken)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()

[Issue]: OpenSubtitles.com Username and/or Password NOT working.

Please describe your bug

OpenSubtitles.com Username and/or Password aren't working.

I can log in without ANY issues within their website,
I even tried my OpenSubtitles.org username and password out of desperation, of course without luck as well.

Jellyfin Version

10.8.0

if other:

No response

Environment

- OS: Kubuntu 22.04
- Virtualization:
- Clients: JellyFin for Linux
- Browser: Chrome and Firefox
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Storage:

Jellyfin logs

Couldn't add Log, I got the following error:
"There was an error creating your issue: body is too long, body is too long (maximum is 65536 characters)."

FFmpeg logs

/videos/8c6574ae-4088-488b-2365-bf1da7c3ddb4/live.m3u8

{"Protocol":1,"Id":"112955cd78e7595974283137c47e19d5","Path":"https://v-ny.theus6tv.tk/hls/7.1/playlist.m3u8","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"hls","Size":246,"Name":null,"IsRemote":true,"ETag":null,"RunTimeTicks":null,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":true,"IsInfiniteStream":true,"RequiresOpening":true,"OpenToken":null,"RequiresClosing":true,"LiveStreamId":"a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_112955cd78e7595974283137c47e19d5","BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"h264","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"576p H264 SDR","NalLengthSize":"0","IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":2000000,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":432,"Width":768,"AverageFrameRate":30,"RealFrameRate":30,"Profile":"Constrained Baseline","Type":1,"AspectRatio":"16:9","Index":-1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":30,"IsAnamorphic":false},{"Codec":"aac","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"AAC - Stereo","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":-1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2192000,"Timestamp":null,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36"},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":3000,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36" -fflags +igndts+genpts -f hls  -i "https://v-ny.theus6tv.tk/hls/7.1/playlist.m3u8" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 copy -start_at_zero -flags -global_header -codec:a:0 copy -strict -2 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url "hls/d0e29eaef28c985bea731851fc053092/" -hls_segment_filename "/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8"


ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-18ubuntu1)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[hls @ 0x55943a0ef780] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:42.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:48.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:54.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:00.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:06.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:41.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:47.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:53.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:59.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:05.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547191.ts' for reading
[hls @ 0x55943a0ef780] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547192.ts' for reading
[hls @ 0x55943a0ef780] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547191.ts' for reading
[hls @ 0x55943a0ef780] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547192.ts' for reading
[hls @ 0x55943a0ef780] decoding for stream 2 failed
[hls @ 0x55943a0ef780] Could not find codec parameters for stream 3 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (3000000) and 'probesize' (5000000) options
Input #0, hls, from 'https://v-ny.theus6tv.tk/hls/7.1/playlist.m3u8':
  Duration: N/A, start: 16171.421333, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 2190326
  Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 768x432 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 2190326
  Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 2190326
  Program 1 
    Metadata:
      variant_bitrate : 5416155
  Stream #0:2: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 5416155
  Stream #0:3: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
    Metadata:
      variant_bitrate : 5416155
Output #0, hls, to '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 tbr, 90k tbn, 30 tbc
  Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 size=N/A time=-00:00:04.28 bitrate=N/A speed=N/A    
[hls @ 0x55943ac9fcc0] Non-monotonous DTS in output stream 0:0; previous: 383040, current: 383040; changing to 383041. This may result in incorrect timestamps in the output file.
[hls @ 0x55943ac9fcc0] Non-monotonous DTS in output stream 0:0; previous: 383041, current: 383040; changing to 383042. This may result in incorrect timestamps in the output file.
[hls @ 0x55943ac9fcc0] Non-monotonous DTS in output stream 0:0; previous: 383042, current: 383040; changing to 383043. This may result in incorrect timestamps in the output file.
[hls @ 0x55943ac9fcc0] pkt->duration = 0, maybe the hls segment duration will not precise
    Last message repeated 2 times
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547193.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530920.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530921.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530922.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530923.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:48.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:54.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:00.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:06.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547194.ts' for reading
frame=  358 fps= 64 q=-1.0 size=N/A time=00:00:13.69 bitrate=N/A speed=2.45x    
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:47.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:53.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:59.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:05.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:23.987+0000')
[https @ 0x55943acaab00] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547193.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530924.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530925.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:54.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:00.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:06.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:30.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547195.ts' for reading
frame=  533 fps= 46 q=-1.0 size=N/A time=00:00:19.68 bitrate=N/A speed=1.69x    
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:53.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:59.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:05.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:23.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:29.987+0000')
[https @ 0x55943acaab00] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547194.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530926.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530927.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:00.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:06.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:30.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:36.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547196.ts' for reading
frame=  715 fps= 40 q=-1.0 size=N/A time=00:00:25.70 bitrate=N/A speed=1.45x    
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:10:59.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:05.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:23.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:29.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:35.987+0000')
[https @ 0x55943acaab00] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547195.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530928.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc0530929.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:06.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:30.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:36.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:42.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547197.ts' for reading
frame=  890 fps= 37 q=-1.0 size=N/A time=00:00:31.67 bitrate=N/A speed=1.33x    
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:05.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:23.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:29.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:35.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:41.987+0000')
[https @ 0x55943acaab00] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547196.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc05309210.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc05309211.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:12.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:30.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:36.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:42.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:48.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547198.ts' for reading
frame= 1076 fps= 36 q=-1.0 size=N/A time=00:00:37.69 bitrate=N/A speed=1.26x    
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/1280x720.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:11.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:17.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:23.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:29.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:35.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:41.987+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:47.987+0000')
[https @ 0x55943acaab00] Opening 'https://v-ny.mybtv.net/live/554/1280x720/1654547197.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc05309212.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc05309213.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
[https @ 0x55943a3de2c0] Opening 'https://v-ny.mybtv.net/live/554/768x432.m3u8?env=prd&uid=-1&x=1' for reading
[hls @ 0x55943a0ef780] Skip ('#EXT-X-VERSION:3')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:18.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:24.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:30.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:36.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:42.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:48.129+0000')
[hls @ 0x55943a0ef780] Skip ('#EXT-X-PROGRAM-DATE-TIME:2022-06-07T00:11:54.129+0000')
[https @ 0x55943a405c80] Opening 'https://v-ny.mybtv.net/live/554/768x432/1654547199.ts' for reading
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc05309214.ts' for writing
[hls @ 0x55943ac9fcc0] Opening '/var/lib/jellyfin/transcodes/d0e29eaef28c985bea731851fc053092.m3u8.tmp' for writing
frame= 1256 fps= 35 q=-1.0 Lsize=N/A time=00:00:43.68 bitrate=N/A speed=1.21x    
video:7812kB audio:788kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Please attach any browser or client logs here

No response

Please attach any screenshots here

Screenshot_20220607_080602

Code of Conduct

  • I agree to follow this project's Code of Conduct

Error downloading subtitles

Hi, since a few days I'm unable to download subtitles.

System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()```

Download error: System.Xml.XmlException: Root element is missin

Describe the bug
The plugin does not work in the latest version.

System (please complete the following information):

  • OS: Ubuntu 20.04.2 LTS
  • Virtualization: LXC
  • Clients: Browser
  • Browser: Chrome 88.0.4324.190
  • Jellyfin Version: 10.6.4
  • Playback: n.a
  • Installed Plugins: OpenSubtitles
  • Reverse Proxy: n.a
  • Base URL: /
  • Networking: Bridge
  • Storage: local

To Reproduce
Install the plugin, login and run the scheduled task.

Expected behavior
Subtitle download, but it throws errors.

Logs

System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
[2021-03-09 11:32:31.357 +00:00] [INF] "Download missing subtitles" Completed after 0 minute(s) and 42 seconds
[2021-03-09 11:32:31.357 +00:00] [INF] ExecuteQueuedTasks

Additional context
This is Anime content, I do not know if this is a direct problem!

not working due to Json error

I have added open subtitles plugin , and it worked like this
1634798306(1)

However, when i play the vedio, it didn't work, and the log show as below.

[2021-10-21 13:38:07.483 +08:00] [ERR] [60] MediaBrowser.Providers.Subtitles.SubtitleManager: Error downloading subtitles from "Open Subtitles"
System.Text.Json.JsonException: Failed to parse response, code: Moved, context: options: System.Collections.Generic.Dictionary2[System.String,System.String], page: 1, body: "" ---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0. ---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes)
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options)
at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options)
at OpenSubtitlesHandler.Models.ApiResponse1..ctor(HttpResponse response, String[] context) --- End of inner exception stack trace --- at OpenSubtitlesHandler.Models.ApiResponse1..ctor(HttpResponse response, String[] context)
at OpenSubtitlesHandler.OpenSubtitles.SearchSubtitlesAsync(Dictionary`2 options, String apiKey, CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)


And it repeate this error once and once again. It seems the data about movie sent/recevie to/from server is not json format or not valid. Does some know this issue? I don't know how this plugin search the subtitles, which information it used. Does anyone know? Maybe i should change the movie's metadata or other things?

Plugin doesn't find any subtitles

Jellyfin cannot find any subtitles. Getting these error messages. Searched through all .xml files in filesystem and they seemed OK!

[2019-12-19 21:12:10.046 +02:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 1, position 4.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParsePI(StringBuilder piInDtdStringBuilder)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
[2019-12-19 21:18:21.444 +02:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 1, position 4.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParsePI(StringBuilder piInDtdStringBuilder)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()

Jellyfin version: 10.4.1
Open subtitles plugin version: 7.0.0.0

Error downloading subtitles

I am using version 6 of the Open Subtitles plugin and I am getting the same error message that was reported on (closed) bug #1424 of the jellyfin repository:

[2019-10-25 18:38:12.594 -03:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.NullReferenceException: Object reference not set to an instance of an object.
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
at MediaBrowser.Providers.Subtitles.SubtitleManager.<>c__DisplayClass11_0.<<SearchSubtitles>b__3>d.MoveNext()
This error message is triggered both when (i) I run the scheduled task to download subtitles, or (ii) I search for subtitles in a particular movie.
I tried with version 5 as well, and same error appears (after restarting the server). I also tried with and without username and password (it is hard to tell if my user and pass are being saved, because the fields are reset to blank after clicking "save" in the plugin settings).
The error appears if I request subtitle download both from Firefox browser, and from the Android app.

V7 Won't download

Hi,

First, thanks for your work :)

The last version of the plugin won't be activated:
I hit download on jellyfin, it asks me to restart the server, that I do, then the extension isn't there.
I install the v6, and it works

Any ideas why ?

Thanks

There is no need for API key request from user

https://github.com/jellyfin/jellyfin-docs/blob/master/general/server/plugins/open-subtitles.md/#L1

This plugin will allow your server to download subtitles from OpenSubtitles.com for any video file on your server. The plugin can be installed from the catalog page and once enabled you will need to enter your OpenSubtitles.com account info and an API key (which can be obtained here) in the plugin configuration page.

Thing is, there is no need to ask for API key. API key should be provided within your Program (you get it from your profile and name it as Jellyfin for example), we just need to have user credentials. We are doing statistics per User Agent and now there is many jellyfin API keys (consumers)

Significant Amount of Upload Bandwidth Used

Hiya!

I installed this plugin this morning onto a fresh install of Jellyfin through the Ubuntu Repository.

I created an account for OpenSubtitles, but coincidentally, the site went down for maintenance at the same time. I entered my account information into the plugin, and figured I'd try it once the maintenance was done. (Not sure if this is relevant.)

A notification from my router popped up about unusual upload. Over the last 13ish hours, there's been 14GBs of data upload to api.opensubtitles.org, starting from when I first entered my OpenSubtitles login information.

In the logs, this error message has been repeated about every 200ms:

[2021-07-03 22:18:34.749 +00:00] [ERR] Error downloading subtitles from "Open Subtitles"
System.Xml.XmlException: The 'hr' start tag on line 6 position 2 does not match the end tag of 'body'. Line 7, position 3.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at XmlRpcHandler.XmlRpcGenerator.DecodeMethodResponse(String xmlResponse)
   at OpenSubtitlesHandler.OpenSubtitles.LogInAsync(String username, String password, String language, CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Login(CancellationToken cancellationToken)
   at Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)

Subtitle downloads not working in unstable branch of server

Installing plugin version 10 (rebooting after ofc, appears running ok in the plugin tab) and attempting to either automatically or manually search for subtitles using this plugin does not work. Output from server:

[12:32:49] [WRN] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: The username or password has no value. Attempting to access the service without an account.
[12:32:49] [ERR] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response type
[12:32:49] [WRN] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: The username or password has no value. Attempting to access the service without an account.
[12:32:49] [ERR] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response type
[12:32:49] [WRN] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: The username or password has no value. Attempting to access the service without an account.
[12:32:49] [ERR] [21] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response type

Jellyfin Version: unstable 20210310.6

Manually add subtitles

Hello,

I'm forwarding this issue / feature request here because i think that add this option on the opensubtitles plugin can be a good workaround instead of implement it in jellyfin core

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.