GithubHelp home page GithubHelp logo

Comments (9)

MBR-0001 avatar MBR-0001 commented on July 18, 2024 1

I recently discovered the true source of this error (link), this is something that can't be fixed in the plugin so the only thing we can do is wait for opensubtitles to make changes on their side

from jellyfin-plugin-opensubtitles.

opensubtitles avatar opensubtitles commented on July 18, 2024 1

@MBR-0001 it should be fixed. Also I added new rule to replace "%20" to "+"

from jellyfin-plugin-opensubtitles.

wanleimin avatar wanleimin commented on July 18, 2024

[2021-11-01 02:37:52.029 +00:00] [ERR] [156] 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)

from jellyfin-plugin-opensubtitles.

crobibero avatar crobibero commented on July 18, 2024

Which version of the plugin are you using?

from jellyfin-plugin-opensubtitles.

MBR-0001 avatar MBR-0001 commented on July 18, 2024

It looks like the opensubtitles api is returning a 301 status code but not providing the location header 🤔
@opensubtitles could this be caused by the current api outage?

from jellyfin-plugin-opensubtitles.

opensubtitles avatar opensubtitles commented on July 18, 2024

strange, I can not duplicate the problem. Please send some requests examples (curl is ok) how to do it, I tried to generated download link and then download and it works.

from jellyfin-plugin-opensubtitles.

tuetenk0pp avatar tuetenk0pp commented on July 18, 2024

Hello, I think I have run into the same issue, see my reddit post here. I also noticed that this issue should be solved in newer versions of this plugin. Unfortunately, they are not available yet through the jellyfin stable nor unstable repos.

from jellyfin-plugin-opensubtitles.

crobibero avatar crobibero commented on July 18, 2024

v13-16 failed to build, but v17 did build, and is available for those running 10.8.

from jellyfin-plugin-opensubtitles.

tuetenk0pp avatar tuetenk0pp commented on July 18, 2024

Thanks! Now we just have to wait for 10.8 to be released ;)

from jellyfin-plugin-opensubtitles.

Related Issues (20)

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.