Support Sub-Zero

If you like this, why not buy me a beer:

or join my Patreon starting at 1 $ / month:

or use the OpenSubtitles Sub-Zero affiliate link to become VIP 10€/year, ad-free subs, 1000 subs/day, no-cache VIP server:(the affiliate system is not yet online, please message me with your OpenSubtitles username, if you decide to use the affiliate link)

Plugin Description

Subtitles are a problem? Yep, they definitely are. I myself use this plugin on a daily basis as my wife has a serious hearing condition where subtitles help us to be able to watch our favourite TV series and movies together. Subtitles pose a generic struggle: matching your media file perfectly. This is as hard as it gets. Thankfully there are a bunch of libraries and services out there, that help with that.

Sub-Zero is far from being perfect, but with recent development and planned features, we’re really getting there.

Partly correct - as you've said, it always downloads the one with the highest rating, so increasing minimum actually would NOT increase quality but would protect you from very wrong subtitles for the wrong movie for example.

It's my first time using LocalMediaExtended (since is now part of the bundle) and I do have a question and a request :)

First the question: How different is this new LocalMediaAssets compared to the original one. What if Plex make changes to the original? Would those changes be merged back to the Extended version?

Request: Brazilian Portuguese subtitles (pt-BR) are showing up as "Unknown" on the clients. This is an old bug with Plex that never got fixed. Is this something that can to be fixed within LocalMediaExtended? I am reporting an issue just in case :)

It's my first time using LocalMediaExtended (since is now part of the bundle) and I do have a question and a request :)

First the question: How different is this new LocalMediaAssets compared to the original one. What if Plex make changes to the original? Would those changes be merged back to the Extended version?

Request: Brazilian Portuguese subtitles (pt-BR) are showing up as "Unknown" on the clients. This is an old bug with Plex that never got fixed. Is this something that can to be fixed within LocalMediaExtended? I am reporting an issue just in case :)

Yep, that should be fixable by LocalMediaExtended. Please add a ticket on github for that.
Edit: Oh, you already did :)

Thanks for this!
I have a bug report:
I have this file: Limitless.S01E03.1080p.HDTV.X264-DIMENSION.mkv (file size is: 4 353 958 601 bytes)
The SZ log is attached to this post.
Screenshot of settings:

I have enabled both the LMA Extender and the Sub-zero agent for the TV Shows/Freebase (the Primary Metadata Agent that I use).
I refreshed the episode and it downloaded a subtitle, but it downloaded the hearing Impared version, even though one exists that has all the HI/SDH text removed.

Hi Panni. Thanks a lot for developing this agent, as a french person subtitles are always a mess to integrate to Plex.

I have a feature request that would really ease the job of a lot Plex users IMO.

The idea is to get the agent to automatically refresh every recent media to download subtitles if they haven't been found yet.

For example, let's say that a user wants to have french and english subs for its media. In my opinion, the perfect workflow would be:
1. "Big bang theory S09E04" is added to plex media server but Sub-Zero doesn't find any subtitles.
2. 3 hours later, sub-zero automatically scan the episode again and find the english subs. It downloads it automatically and add them.
3. 3 hours later, sub-zero automatically scan the episode again and find the english and french subs. As english subs already exist, sub zero only download the french subtitles and add them to the media.
4. The episode has now both french and english subtitles, sub-zero has done its job. It will not automatically scan the media ever again.

To fully optimise this workflow, the user would have to specify a maximum date added so that sub zero doesn't look for the subs automatically if the media is too old.
For example, if the user specify max date to 3 days, the agent would automatically refresh this media every 3 hours for 3 days. If the subtitles are still not found after this 3 days, sub-zero won't refresh it automatically ever again.

I don't know if a feature like this could ever exist in your agent but I think it would be awesome !

Thanks and if you ever decide to create something like this I would be happy to help you anyway I can :)

@ledge74 many have mentioned something like automatic subtitle maintenance in SZ's mother project, Subliminal.bundle. It would definitely come in handy, I'm just not too sure to what extent this is possible being a Plex agent.

Adding this as a simple cron job (or event in Windows), enabling the option "Scan: include external subtitles" in SZ, to skip the already existing subs, would do something like that.

Either I'll find a way to do that from inside the Plex sandbox, or by keeping some sort of state in an external database, which then can be accessed from the outside by a small daemon that does what you're asking.

@panni I already have a kind of cronjob setup for my subtitles using this bash command (I'm using hazel since I am on Mac and it is more practical than a crontab). It works really well for the moment.

I think the most efficient way for the automation would be a Plex Channel, since it could run on every OS that are supported by Plex. I have taken a look at what is already existing: the Plextools channel can download subtitles then refresh the media, and the trakt.tv channel can run jobs every 30 minutes. So I guess it would be possible to create a channel that refresh new media (for example that are part of /library/recentlyAdded/) every 3 hours or so until they have subtitles?