Subtitle Agent Doesn't download subtitles

Server Version#: 1.20.2.3402

Hello,

My server used to download subtitles automatically for every movie using the opensubtitles agent. Sometimes I would need to refresh the metadata for a movie to get the subtitles to download. Now even that doesn’t work. I double-checked my opensubtitles username and password stored in the agent settings page.

What other settings could have disabled this feature?

OpenSubtitles is down and has been up and down a lot over the past couple weeks. Wish there was a secondary subtitle agent that would point to SubScene or others.

I tried using the OpenSubtitles agent to find English and Russian subtitles like I always do. It didn’t download either. Then I went and manually downloaded the Russian subtitle and added the srt next to the video file. Refreshing metadata worked great to bring in the local media srt. But nothing from OpenSubtitles. There are locally embedded subtitles (just none in Russian). I would still expect the OpenSubtitles agent to go out and search and find the one I downloaded manually.

Hi,

I think there might a general issue with the OpenSubtitles plugin/agent. I am having some difficulties with it as well.
If I download subtitles on demand, by selecting the “Search” option before playing e.g. an episode of a show, it can find and download subtitles just fine.
But the automatic download when refreshing meta data, will result in a critical error on the plugin, like the below example.

2021-01-07 18:17:46,947 (6f68) :  DEBUG (model:229) - Serializing to C:\Users\HTPC\AppData\Local\Plex Media Server\Metadata\TV Shows\3\18702cf085d9331844312fa57fc9f8d2c5965b6.bundle\Contents\com.plexapp.agents.opensubtitles\Info.xml
2021-01-07 18:17:46,951 (6f68) :  DEBUG (runtime:88) - Sending packed state data (113 bytes)
2021-01-07 18:17:46,951 (6f68) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2021-01-07 18:20:00,828 (6e34) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.opensubtitles/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTUKczYKMTA0MTc4czgKcGFyZW50SURzNDcKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yODYxOTMvMS8xP2xhbmc9ZW5zNApndWlkYjFzNQpmb3JjZXMyNgpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYnMxMwpwcmltYXJ5X2FnZW50czYKMTA0MTgwczIKaWRyMAo_
2021-01-07 18:20:00,831 (6e34) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-01-07 18:20:00,831 (6e34) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.opensubtitles/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTUKczYKMTA0MTc4czgKcGFyZW50SURzNDcKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yODYxOTMvMS8xP2xhbmc9ZW5zNApndWlkYjFzNQpmb3JjZXMyNgpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYnMxMwpwcmltYXJ5X2FnZW50czYKMTA0MTgwczIKaWRyMAo_
2021-01-07 18:20:00,831 (6e34) :  INFO (agentkit:961) - Searching for matches for {'id': '104180', 'guid': 'com.plexapp.agents.thetvdb://286193/1/1?lang=en', 'force': True, 'primary_agent': 'com.plexapp.agents.thetvdb', 'parentID': '104178'}
2021-01-07 18:20:00,832 (6e34) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/104180/tree'
2021-01-07 18:20:00,838 (6e34) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://286193/1/1?lang=en
2021-01-07 18:20:00,838 (6e34) :  DEBUG (model:234) - Deserializing from C:\Users\HTPC\AppData\Local\Plex Media Server\Metadata\TV Shows\c\3cfe8c1c147529ee0b671a8adc0d2248e1cb45e.bundle\Contents\com.plexapp.agents.thetvdb\Info.xml
2021-01-07 18:20:00,845 (6e34) :  DEBUG (runtime:88) - Sending packed state data (113 bytes)
2021-01-07 18:20:00,845 (6e34) :  DEBUG (runtime:924) - Response: [200] str, 600 bytes
2021-01-07 18:20:00,861 (6eb4) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.opensubtitles/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxMDQxODBzNApkYmlkaTAKczcKdmVyc2lvbnM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI4NjE5My8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM2CjEwNDE3OHM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ3CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjg2MTkzLzEvMT9sYW5nPWVuczQKZ3VpZHM0Cm51bGxzMgppZHIwCg__
2021-01-07 18:20:00,861 (6eb4) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-01-07 18:20:00,861 (6eb4) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.opensubtitles/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxMDQxODBzNApkYmlkaTAKczcKdmVyc2lvbnM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI4NjE5My8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM2CjEwNDE3OHM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ3CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjg2MTkzLzEvMT9sYW5nPWVuczQKZ3VpZHM0Cm51bGxzMgppZHIwCg__
2021-01-07 18:20:00,862 (6eb4) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://286193/1/1?lang=en
2021-01-07 18:20:00,864 (6eb4) :  DEBUG (model:234) - Deserializing from C:\Users\HTPC\AppData\Local\Plex Media Server\Metadata\TV Shows\c\3cfe8c1c147529ee0b671a8adc0d2248e1cb45e.bundle\Contents\com.plexapp.agents.opensubtitles\Info.xml
2021-01-07 18:20:00,865 (6eb4) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/104180/tree'
2021-01-07 18:20:00,871 (6eb4) :  INFO (logkit:16) - Existing token found. Revalidating.
2021-01-07 18:20:01,040 (6eb4) :  INFO (logkit:16) - Error occured when checking token.
2021-01-07 18:20:01,049 (6eb4) :  CRITICAL (core:574) - Exception in the update function of agent named 'OpenSubtitles.org', called with guid 'com.plexapp.agents.thetvdb://286193/1/1?lang=en' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-3c3adfcb4\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-3c3adfcb4\OpenSubtitles.bundle\Contents\Code\__init__.py", line 280, in update
    (proxy, token) = opensubtitlesProxy()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-3c3adfcb4\OpenSubtitles.bundle\Contents\Code\__init__.py", line 49, in opensubtitlesProxy
    (success, token) = proxyLogin(proxy, username, password)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-3c3adfcb4\OpenSubtitles.bundle\Contents\Code\__init__.py", line 60, in proxyLogin
    token = proxy.LogIn(username, password, 'en', OS_PLEX_USERAGENT)['token']
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\xmlrpclib.py", line 1602, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\xmlrpclib.py", line 1283, in request
    return self.single_request(host, handler, request_body, verbose)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\xmlrpclib.py", line 1331, in single_request
    response.msg,
ProtocolError: <ProtocolError for plexapp.api.opensubtitles.org/xml-rpc: 404 Not Found>

The info.xml downloaded by the automatic downloader is just an empty xml file, which might be where the error happens, as there is a null value.

<?xml version='1.0' encoding='utf-8'?>
<TV_Show id="null">
  <rating/>
  <title_sort/>
  <art/>
  <themes/>
  <posters/>
  <duration/>
  <genres/>
  <title/>
  <rating_count/>
  <collections/>
  <tags/>
  <audience_rating_image/>
  <rating_image/>
  <audience_rating/>
  <studio/>
  <seasons/>
  <originally_available_at/>
  <roles/>
  <countries/>
  <content_rating/>
  <original_title/>
  <summary/>
  <reviews/>
  <banners/>
  <similar/>
</TV_Show>

Hopefully someone smart can shine a light on this. It is the very same show I try to download subtitles for, but in 2 different ways. The on-demand does not log anything in the open subtitles log; it only logs in the Plex Media Server log file.

Regards,
Rasmus4J

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.