jellyfin / jellyfin-plugin-opensubtitles

https://jellyfin.org
GNU General Public License v3.0
131 stars 27 forks source link

Plugin doesn't find any subtitles #22

Closed Vetuska closed 3 years ago

Vetuska commented 4 years ago

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

Vetuska commented 4 years ago

Updated jellyfin to Version: 10.4.3 with latest Open subtitles plugin version: 7.0.0.0. Same result. Even made new account to opensubtitles for testing. Can't find any subtitles.

image

cvium commented 4 years ago

Can you include the XML?

Vetuska commented 4 years ago

Can you include the XML?

Thank you for you reply,

I have no idea what is the .xml file what error is referring to. I searched my filesystem for all .xml files and looked into them and all seemed fine to me. I also deleted all .xml which referred to subtitles and system re-maked them and still getting the same error.

Vetuska commented 4 years ago

Is there any way I could find out what is the .xml which error is referring? I already set the logging.json to "MinimumLevel": "Debug". Not giving any extra information.

AlexandreBonneau commented 3 years ago

For info Jellyfin 10.7.0-1 also has this bug while the previous version 10.6.? did not.