Jump to content

OpenSubtitles downloads failing on MacOS


Go to solution Solved by Luke,

Recommended Posts

elldub
Posted (edited)

I am getting errors when trying to download Opensubtitles, my wife needs them as she has hearing problems. 

I’m using MacOS Sequoia (15.3.2) on an M4 MacMini. This is a new installation of Emby as the last one was messed up so I wanted to start afresh. 

Emby:  Version 4.8.11.0, OpenSubtitles 1.0.63 Installed on xxxxx 01/03/2025, 14:33

I have defined a number of libraries with movie + tv content, which are on an external disk (the old one died and that was the start of the problems resulting in a reinstall)

This is internal network use only. 

There are no funky settings, it is very simple. Here is the system.xml

<?xml version="1.0"?>
<ServerConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EnableDebugLevelLogging>false</EnableDebugLevelLogging>
  <EnableAutoUpdate>true</EnableAutoUpdate>
  <LogFileRetentionDays>3</LogFileRetentionDays>
  <RunAtStartup>true</RunAtStartup>
  <IsStartupWizardCompleted>true</IsStartupWizardCompleted>
  <EnableUPnP>true</EnableUPnP>
  <PublicPort>8096</PublicPort>
  <PublicHttpsPort>8920</PublicHttpsPort>
  <HttpServerPortNumber>8096</HttpServerPortNumber>
  <HttpsPortNumber>8920</HttpsPortNumber>
  <EnableHttps>false</EnableHttps>
  <IsPortAuthorized>true</IsPortAuthorized>
  <AutoRunWebApp>true</AutoRunWebApp>
  <EnableRemoteAccess>false</EnableRemoteAccess>
  <LogAllQueryTimes>false</LogAllQueryTimes>
  <EnableCaseSensitiveItemIds>true</EnableCaseSensitiveItemIds>
  <PreferredMetadataLanguage>en</PreferredMetadataLanguage>
  <MetadataCountryCode>US</MetadataCountryCode>
  <SortRemoveWords>
    <string>the</string>
    <string>a</string>
    <string>an</string>
    <string>das</string>
    <string>der</string>
    <string>el</string>
    <string>la</string>
  </SortRemoveWords>
  <LibraryMonitorDelaySeconds>90</LibraryMonitorDelaySeconds>
  <EnableDashboardResponseCaching>true</EnableDashboardResponseCaching>
  <ImageSavingConvention>Compatible</ImageSavingConvention>
  <EnableAutomaticRestart>true</EnableAutomaticRestart>
  <PreferredDetectedRemoteAddressFamily>InterNetwork</PreferredDetectedRemoteAddressFamily>
  <WanDdns />
  <UICulture>en-GB</UICulture>
  <RemoteClientBitrateLimit>0</RemoteClientBitrateLimit>
  <LocalNetworkSubnets />
  <LocalNetworkAddresses />
  <EnableExternalContentInSuggestions>true</EnableExternalContentInSuggestions>
  <RequireHttps>false</RequireHttps>
  <IsBehindProxy>false</IsBehindProxy>
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
  <ImageExtractionTimeoutMs>0</ImageExtractionTimeoutMs>
  <PathSubstitutions />
  <UninstalledPlugins />
  <CollapseVideoFolders>false</CollapseVideoFolders>
  <EnableOriginalTrackTitles>false</EnableOriginalTrackTitles>
  <VacuumDatabaseOnStartup>false</VacuumDatabaseOnStartup>
  <SimultaneousStreamLimit>0</SimultaneousStreamLimit>
  <DatabaseCacheSizeMB>128</DatabaseCacheSizeMB>
  <EnableSqLiteMmio>false</EnableSqLiteMmio>
  <PlaylistsUpgradedToM3U>true</PlaylistsUpgradedToM3U>
  <ImageExtractorUpgraded1>true</ImageExtractorUpgraded1>
  <EnablePeopleLetterSubFolders>true</EnablePeopleLetterSubFolders>
  <OptimizeDatabaseOnShutdown>true</OptimizeDatabaseOnShutdown>
  <DatabaseAnalysisLimit>400</DatabaseAnalysisLimit>
  <DisableAsyncIO>false</DisableAsyncIO>
  <MigratedToUserItemShares8>true</MigratedToUserItemShares8>
  <MigratedLibraryOptionsToDb>true</MigratedLibraryOptionsToDb>
  <AllowLegacyLocalNetworkPassword>false</AllowLegacyLocalNetworkPassword>
  <EnableSavedMetadataForPeople>false</EnableSavedMetadataForPeople>
  <TvChannelsRefreshed>true</TvChannelsRefreshed>
  <ProxyHeaderMode>AllAddresses</ProxyHeaderMode>
</ServerConfiguration>%

I had an opensubtitles.org VIP subscription, which I migrated to opensubtitles.com. I reset the password on opensubtitles.com, and can successfully log in. I’m a VIP member.

I updated the opensubtitles login page and saved it using the username + password not the email address. (Enhancement request - could there be a "test this works" button?)

I then ran the scheduled task "Download subtitles"

In the emby server logs I get this:

2025-03-23 10:27:40.650 Info OpenSubtitles: Logging into OpenSubtitles-Emby-f
2025-03-23 10:27:41.524 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2025-03-23 10:27:41.660 Error OpenSubtitles: 401 Unauthorized Response from https://api.opensubtitles.com/api/v1/login
2025-03-23 10:27:41.661 Error OpenSubtitles: 401 Unauthorized Response from https://api.opensubtitles.com/api/v1/login
2025-03-23 10:27:41.662 Error SubtitleManager: Error searching for subtitles on Open Subtitles
*** Error Report ***
Version: 4.8.11.0
Command line: /Applications/EmbyServer.app/Contents/MacOS/EmbyServer.dll -noautorunwebapp
Operating system: Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:23:36 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8112
Framework: .NET 6.0.36
OS/Process: arm64/arm64
Runtime: Applications/EmbyServer.app/Contents/MacOS/System.Private.CoreLib.dll
Processor count: 8
Data path: /Users/allmusic/.config/emby-server
Application path: /Applications/EmbyServer.app/Contents/MacOS
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: {"message":"Error, invalid username/password ","status":401}
at OpenSubtitles.OpenSubtitleComDownloader.GetResponse(HttpRequestOptions requestOptions, String httpMethod, Int32 allowedRequestFrequencyMs)
at OpenSubtitles.OpenSubtitleComDownloader.Login(OpenSubtitleOptions options, CancellationToken cancellationToken)
at OpenSubtitles.OpenSubtitleComDownloader.SearchInternal(SubtitleSearchRequest request, Boolean useFilename, OpenSubtitleOptions options, CancellationToken cancellationToken)
at OpenSubtitles.OpenSubtitleComDownloader.Search(SubtitleSearchRequest request, OpenSubtitleOptions options, CancellationToken cancellationToken)
at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
Source: OpenSubtitles
TargetSite: Void MoveNext()

Can you help me debug?

Edited by elldub
typo in title
Posted

 

elldub
Posted

@Luke - Any help on the opensubtitles login error?

 

Posted

Hi, did you read through the thread that I linked you to?

elldub
Posted

@LukeI don't see a link to a thread.

I only see a comment against the suggestion I posted here:

 

I attach a screen shot of the thread.

What am I missing?

Screenshot 2025-03-26 at 09.21.41.png

  • Solution
Posted

I would try reconfiguring your open subtitles username and password. When we try to use the values you entered, they are sending back the response that you can see in your log snippet. Make sure neither the username nor password have any leading or trailing spaces.

elldub
Posted

@Luke Thanks for the pointer. 

Steps to fix:

  • Login to opensubtitles.com
  • Edit Profile
    • Change username
  • Log out and log back in 
  • Edit profile
    • Change password.
  • Log out and log back in 

In Emby:

  • Change the opensubtitles entries
  • Scheduled tasks > Download subtitles
  • Logs > embyserver.txt > go to bottom

See the login

2025-03-27 11:12:22.995 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2025-03-27 11:12:23.526 Info OpenSubtitles: Login result: {"user":{"allowed_translations":10,"allowed_downloads":1000,"level":"VIP Member","user_id":156747,"ext_installed":true,"vip":true},"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJXcDBSS0xpTFZ5NnlGNVN2OU0yVHNTbGlOeUpyRFhEeCIsImV4cCI6MTc0MzE2MDA2OH0.wfGjdUKX2B7YYD5eYMHfEJaTF0SBN6Apcxfy-qRs4rc","status":200,"base_url":"vip-api.opensubtitles.com"}

 

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...