Release: Subliminal Subtitles (Addic7ed, Podnapisi, OpenSubtitles)

Just started using this agent in place of the OpenSubs one and the results are far better for the couple of movies I’ve tried it with. Thanks for your work on this!

Hello,

I can’t get it to work with Movies, appears to work fine with TV shows… Anything else that I can try?

Also, will refreshing a lot of Shows/movies result in a temp ban like when using the podnapisi agent?

GREAT plugin, appreciate the work!

Update: works great, except that I had to “force refresh” to get all subs. Standard scheduled refresh didnt do it. How can we address this? I am not sure “force refresh” can be scheduled. Would it be possible to have subliminal react to standard refresh?

@andrewe1 said:
Hello,

I can’t get it to work with Movies, appears to work fine with TV shows… Anything else that I can try?

Also, will refreshing a lot of Shows/movies result in a temp ban like when using the podnapisi agent?

GREAT plugin, appreciate the work!

Any errors on the movie thing?
And: yes, extensive refreshing may result in temporary throttling by certain providers.

@BlueToxic said:
panni
I’m still having problems with subtitles being downloaded even if an embedded is available. Is there anything besides the setting I need to enable for this to work?

I’m running 1.1-rc1 on PMS 0.9.12.12 Debian.

I will look into that, please open a ticket.

@placobus said:
Quick question: how does retry works, I mean how often subliminal will retry until SRT is there? since in the beginning, sub wont be available yet. thanks

— update —
Is this agent compatible with UNC as library path? e.g. ’
as vshows’?

Currently it retries on manual refresh of a series or video, aswell as on initial adding to the library.

UNC paths: should work, please try and report.

Hey.

I couldn’t get built-in agent for opensubtitles.org to work, so I tried subliminal.
It works great for TV Shows, it didn’t want to work for movies.

In logs I could see that it’s failing:
Subliminal.bundle/Contents/Libraries/Shared/guessit/matcher.py", line 175, in build_guess
if clean_value[0] == node.value*:
IndexError: string index out of range

It looks like it’s a bug that has been fixed in guessit:

So I cloned the guessit repo, and copied the content of guessit subfolder in the repo over the one in Subliminal.
Now it works great!

@sjakub said:
Hey.

I couldn’t get built-in agent for opensubtitles.org to work, so I tried subliminal.
It works great for TV Shows, it didn’t want to work for movies.

In logs I could see that it’s failing:
Subliminal.bundle/Contents/Libraries/Shared/guessit/matcher.py", line 175, in build_guess
if clean_value[0] == node.value*:
IndexError: string index out of range

It looks like it’s a bug that has been fixed in guessit:
Fix invalid guess when crc32 contains a date. · guessit-io/guessit@1941e49 · GitHub

So I cloned the guessit repo, and copied the content of guessit subfolder in the repo over the one in Subliminal.
Now it works great!

Are you using my latest RC1 build? I’ve incorporated the newest guessit in there, so that bug shouldn’t be there anymore.

@panni said:
UNC paths: should work, please try and report.

I lowered the default movie score to 35 and it started working fine apparently.

Is there a way to make the plugin periodically get subtitles for movies that don’t have them? Even with new releases I have to go in and refresh for it to fetch.

Thanks for your support

Just installed this on my Windows 2012 server, as I couldn’t get Opensubtitles to work. Installed per the instructions, created an account on Addic7ed, entered the creds into the agent, set the Subliminal agent to first priority, and forced a refresh on my Movies library. None of the movies had their subs downloaded. Also tried on the TV library, but same problem.

Does the movie title have to be in a specific format? I just have them set to the name of the movie, which has allowed the other agents to pull other metadata fine. Do I need to include a year or something?

EDIT: My library is also using local storage, so all files are using local drive paths rather than UNC. Is this a problem at all? Do I need to assign permissions to the Movies directory or anything?

Which log file should I be looking at in C:\Users\UserName\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs?

My plugin just started failing today, it was working fine yesterday…not sure what is happening.

@Chutney said:
Just installed this on my Windows 2012 server, as I couldn’t get Opensubtitles to work. Installed per the instructions, created an account on Addic7ed, entered the creds into the agent, set the Subliminal agent to first priority, and forced a refresh on my Movies library. None of the movies had their subs downloaded. Also tried on the TV library, but same problem.

Does the movie title have to be in a specific format? I just have them set to the name of the movie, which has allowed the other agents to pull other metadata fine. Do I need to include a year or something?

EDIT: My library is also using local storage, so all files are using local drive paths rather than UNC. Is this a problem at all? Do I need to assign permissions to the Movies directory or anything?

Which log file should I be looking at in C:\Users\UserName\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs?

PMS Plugin Logs/plex.agents.subliminal.log

I accidentally set the default scores for TV and movies too high in RC1.
Please try setting movies to 20 and TV to 40. Will be fixed in next release (originally it was one score, default “0”)

Reset the score to 20 for movies and reran, no dice. Also downloaded the LocalMediaAssets Extended plugin in case it helps but still nothing. Are there any specific port requirements or do it work over 80? I can paste the log file, but didn’t want to dump like 3 pages of logs into one post.

EDIT: It looks like it did download subtitles for only 1 movie, but that’s it. Here are the last few log entries after it downloaded the 1 subtitle:

2015-10-01 12:01:15,233 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Computing score for matches set([u’hearing_impaired’]) and <Movie [u’Prince of Persia’]>
2015-10-01 12:01:15,234 (5f0c) : DEBUG (logkit:13) - subliminal.subtitle: Final matches: set([u’hearing_impaired’])
2015-10-01 12:01:15,236 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Computed score 1
2015-10-01 12:01:15,236 (5f0c) : INFO (logkit:16) - subliminal_patch.patch_provider_pool: Downloading subtitle <OpenSubtitlesSubtitle ‘1952662348’ [en]> with score 63
2015-10-01 12:01:15,239 (5f0c) : INFO (logkit:16) - subliminal.api: Downloading subtitle <OpenSubtitlesSubtitle ‘1952662348’ [en]>
2015-10-01 12:01:15,240 (5f0c) : INFO (logkit:16) - subliminal.providers.opensubtitles: Downloading subtitle <OpenSubtitlesSubtitle ‘1952662348’ [en]>
2015-10-01 12:01:19,924 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Guessing encoding for language en
2015-10-01 12:01:19,926 (5f0c) : DEBUG (logkit:13) - subliminal.subtitle: Trying encodings [u’utf-8’, u’latin-1’]
2015-10-01 12:01:19,927 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Guessed encoding utf-8
2015-10-01 12:01:19,930 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Guessing encoding for language en
2015-10-01 12:01:19,931 (5f0c) : DEBUG (logkit:13) - subliminal.subtitle: Trying encodings [u’utf-8’, u’latin-1’]
2015-10-01 12:01:19,934 (5f0c) : INFO (logkit:16) - subliminal.subtitle: Guessed encoding utf-8
2015-10-01 12:01:20,088 (5f0c) : DEBUG (logkit:13) - subliminal_patch.patch_provider_pool: All languages downloaded
2015-10-01 12:01:20,089 (5f0c) : INFO (logkit:16) - subliminal.api: Downloaded 1 subtitle(s)
2015-10-01 12:01:20,092 (5f0c) : DEBUG (logkit:13) - subliminal.api: Terminating initialized providers
2015-10-01 12:01:20,092 (5f0c) : INFO (logkit:16) - subliminal.api: Terminating provider opensubtitles
2015-10-01 12:01:20,095 (5f0c) : INFO (logkit:16) - subliminal.providers.opensubtitles: Logging out
2015-10-01 12:01:20,391 (5f0c) : DEBUG (logkit:13) - subliminal.providers.opensubtitles: Logged out
2015-10-01 12:01:20,394 (5f0c) : INFO (logkit:16) - subliminal.api: Terminating provider thesubdb
2015-10-01 12:01:20,398 (5f0c) : INFO (logkit:16) - subliminal.api: Terminating provider podnapisi
2015-10-01 12:01:20,403 (5f0c) : DEBUG (logkit:13) - Saving subtitles as metadata
2015-10-01 12:01:20,460 (5f0c) : DEBUG (model:225) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\Movies\d\d1a975771ada20dc783da46fac931b76982cdfb.bundle\Contents\com.plexapp.agents.subliminal\Info.xml
2015-10-01 12:01:20,467 (5f0c) : DEBUG (runtime:106) - Sending packed state data (110 bytes)
2015-10-01 12:01:20,470 (5f0c) : DEBUG (runtime:918) - Response: [200] str, 16 bytes

Please paste more into something like pastebin.com. You can also paste the other logs with .0-9 appended.

Also, does it help to refresh single movies directly? Not force-refreshing the whole library?

I removed the title and subtitle of the one item that was working to see if it helped, but doesnt look like it. Here’s the newest log: http://pastebin.com/BnxGWg8L

I’ve tried refreshing single titles at a time but it doesn’t do anything that way either.

Also, here is the order of priority for the agent.

Please disable Local Media Assets when you’re using Local Media Assets Extended.
Also please post your subliminal config screen.

And move subliminal and local media above freebase.

Done, moved subliminal and the local media ones to the top. Here is the screenshot, I cutoff the un/pw screens since the vertical space was limited, but they are entered as needed:

Could you disable “restrict to one language” and try again? Any errors in the mail plex log?
Could you try enabling “store subtitles next to media files” and try again?

Just tried both, no go. Should Plex be restarted for any agent changes?

Looking at the Plex Media Server.log does not show any errors, just DEBUG and INFO comments. Here’s part of the paste of my last force refresh: http://pastebin.com/Yuq1jt5f

You could try restarting plex, but I currently don’t see anything out of the ordinary. It seems like subliminal simply doesn’t get called at all at times. Are the folder permissions of subliminal correct? Did you try an old/original version of @bramwalet for testing purposes?

Also could you provide more subliminal logs? Normally there is more than one logfile, appended with a number.

Yes, I did try that one earlier but without any luck, same issue as I’m seeing now. I’m on Win 2012 server, if that matters any. As for the folder permissions, I didn’t see anything in the install guide on Plex about special permissions needed: https://support.plex.tv/hc/en-us/articles/201187656-How-do-I-manually-install-a-channel-

If certain permissions are needed, I can def add them in.

I’ve pasted logs 1-5 here, with a bunch of empty lines separating each log file: http://pastebin.com/nMTv5u0f

Thank you for this plug-in by the way, and the support thus far! Hopefully I can get it to work.

EDIT: I added back in the the only movie that seems to work (Prince of Persia.mp4), refreshed, and the subtitle downloaded right away. Tried it with another movie, also an mp4 file, and no luck on that one.

I also tried moving a whole bunch of movies out, updating so they dissappear from Plex, then moved them back and updated. Even with this only Prince of Persia’s subs downloaded. Latest log file: pastebin.com/8rvM2MvY