Sub-Zero.bundle icon indicating copy to clipboard operation
Sub-Zero.bundle copied to clipboard

issue with applying a color to a line that contains ":[a letter]"

Open KBlixt opened this issue 8 years ago • 38 comments

in my SZ configuration I have stated that I want all my texts to be forced into plain white text. and it works well for the most part. the exception is when there is a acronym of some agency or country followed by a ":s" that something weird happens. see the below examples:

from opensubtitles Salt (2010):

652
01:28:26,018 --> 01:28:29,174
Jag vill ha henne ensam i ett rum.
Ifall det finns fler KGB:are-

gets converted into:

652
01:28:26,018 --> 01:28:29,174
<font color="#FFFFFF">Jag vill ha henne ensam i ett rum.</font>
are-</font>

from opensubtitles Bridge of spies (2015)

622
00:43:42,246 --> 00:43:48,418
Jag tror att det ligger i USA:s intresse -

gets converted into:

622
00:43:42,246 --> 00:43:48,418
s intresse -</font>

the bridge of spies have plenty of examples since they refer to USA a few times. they also refer to the KGB once. interestingly the bridge of spies movie also have one instance where it isn't converted erroneously:


1747
02:10:34,828 --> 02:10:38,248
<i>Nyligen har USA:s regering</i> -

into

1747
02:10:34,828 --> 02:10:38,248
<i>Nyligen har USA:s regering</i> -  

but here SZ didn't put it into white because it was already in some kind of html tag.

I've spotted these issues across plenty of movies but haven't realized what the issue have been. I've though it have been random until I saw bridge of spies last night.

I'm not sure if it matters but this is in Swedish. I'm not sure if this is an issue in other languages. also there isn't an issue with following numbers. I'm certain of that ":a" and ":s" is converted wrongly, but there could be other combination that causes this behavior.

KBlixt avatar Dec 15 '17 00:12 KBlixt

Hmm, I think this may be related to hearing impaired stuff. Do you have the HI mod active?

pannal avatar Dec 15 '17 00:12 pannal

yupp.

KBlixt avatar Dec 15 '17 00:12 KBlixt

Can you give me the original, unmodified subtitle file so I can debug this? Just remove all mods using the modify menu, then attach the subtitle file here.

Edit: Which SZ version are you on?

pannal avatar Dec 15 '17 00:12 pannal

bridge of spies original.zip

here it is.

KBlixt avatar Dec 15 '17 00:12 KBlixt

I think I found the issue. Do you have the means to install develop-2.0?

Edit: I've just pushed a fix to develop-2.0.

pannal avatar Dec 15 '17 00:12 pannal

I think so, will I have to reconfigure SZ?

KBlixt avatar Dec 15 '17 01:12 KBlixt

Nope, just follow the instructions here: https://github.com/pannal/Sub-Zero.bundle/wiki/Developers-Corner#manualdevelopmenttesting-installation

Instead of downloading a release you download https://github.com/pannal/Sub-Zero.bundle/archive/develop-2.0.zip

The dev mode flag is already set.

Edit: Then re-apply the mods for one of the files where the problem exists (remove one mod, then re-add it, will re-apply all mods). If the problem is fixed, you can go to the advanced menu and re-apply all applied mods to your subtitles. Depending on your library size, this can take a couple of minutes.

pannal avatar Dec 15 '17 01:12 pannal

aright, done. what now?

KBlixt avatar Dec 15 '17 01:12 KBlixt

See my edit above.

pannal avatar Dec 15 '17 01:12 pannal

I can't find the sub-zero channel. I can access the settings through agents in the settings but nothing under channels.

KBlixt avatar Dec 15 '17 02:12 KBlixt

Woot, did you restart your PMS?

pannal avatar Dec 15 '17 02:12 pannal

yepp, service plexmediaserver stop and then start when i was finished

KBlixt avatar Dec 15 '17 02:12 KBlixt

and i just restarted again, still nothing.

KBlixt avatar Dec 15 '17 02:12 KBlixt

Humm. The folder is named as "Sub-Zero.bundle" and not "Sub-Zero.bundle-develop-2.0"?

pannal avatar Dec 15 '17 02:12 pannal

Sub-Zero.bundle with plex:plex 755 permissions

KBlixt avatar Dec 15 '17 02:12 KBlixt

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle

is the exact copy pasta

KBlixt avatar Dec 15 '17 02:12 KBlixt

Hmm. You can access the agent settings but not the channel itself? Can you attach the newest SZ log files?

pannal avatar Dec 15 '17 02:12 pannal

Sub-Zero Subtitles (Movies, 2.0.33.1871) inställning is the settings info i get.

KBlixt avatar Dec 15 '17 02:12 KBlixt

where do i find those specifically ?

KBlixt avatar Dec 15 '17 02:12 KBlixt

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.subzero.log and the .log.* files

pannal avatar Dec 15 '17 02:12 pannal