Release - Subscene.com with Black Background or Opaque Box

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ewwink Offline
Junior Member
Posts: 20
Joined: Apr 2017
Reputation: 0
Post: #1
For Hiding foreign Hardsub. Addon Subscene.com with Black Background or Opaque Box is modified version of http://forum.kodi.tv/showthread.php?tid=184854

source code and zip: from https://github.com/ewwink/kodi-addon-sub...background

Demo:


(This post was last modified: 2017-05-09 06:18 by ewwink.)
find quote
ElGabo Offline
Junior Member
Posts: 2
Joined: Feb 2016
Reputation: 0
Post: #2
Thanks this work really good.

Any way to increase font size?

Enviado desde mi SM-N920G mediante Tapatalk
find quote
ewwink Offline
Junior Member
Posts: 20
Joined: Apr 2017
Reputation: 0
Post: #3
(2017-05-09 20:28)ElGabo Wrote:  Thanks this work really good.

Any way to increase font size?

Enviado desde mi SM-N920G mediante Tapatalk

edit ..../service.subtitles.subtitleBackground/resources/lib/srt2ass.py line 40

Code:
Style: SubStyle,Arial,20,&H0300FFFF,.......10,1
20 is font size and 10 is vertical margin
find quote
ElGabo Offline
Junior Member
Posts: 2
Joined: Feb 2016
Reputation: 0
Post: #4
Tks I will

Enviado mediante Tapatalk
find quote
chatan Offline
Junior Member
Posts: 4
Joined: Sep 2015
Reputation: 0
Post: #5
Does exactly what I need, so Thank you!
Instead of the usual .srt file; this add-on introduced me to .ass files; which are easily editable on linux with aegisub.
Cheers
find quote
FuZira Offline
Junior Member
Posts: 8
Joined: May 2017
Reputation: 0
Post: #6
Thank you for an amazing feature!

Question, is it possible to make a service out of it? meaning, that you can apply it to any subtitle service?
find quote
ewwink Offline
Junior Member
Posts: 20
Joined: Apr 2017
Reputation: 0
Post: #7
yes, you apply it to any subtitle service, just find the code where .srt will be appended to playlist then convert it.
example:
Code:
from resources.lib.srt2ass import srt2ass
......
for sub in subs:
    sub = srt2ass(sub) # convert .srt to .ass
    listitem = xbmcgui.ListItem(label=sub)
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sub, listitem=listitem, isFolder=False)
find quote
misa Offline
Fan
Posts: 333
Joined: Mar 2012
Reputation: 8
Post: #8
I would really appreciate it when this can be done in Opensubtitles addon
find quote
FuZira Offline
Junior Member
Posts: 8
Joined: May 2017
Reputation: 0
Post: #9
(2017-06-08 16:23)ewwink Wrote:  yes, you apply it to any subtitle service, just find the code where .srt will be appended to playlist then convert it.
example:
Code:
from resources.lib.srt2ass import srt2ass
......
for sub in subs:
    sub = srt2ass(sub) # convert .srt to .ass
    listitem = xbmcgui.ListItem(label=sub)
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sub, listitem=listitem, isFolder=False)

Thanks a lot, mate. It works well!
Another question I have, Is the color code is ASCII? What code should I use for white subtitle color? and what is the right parameter I need to change to in order to set the subtitles to be at the bottom of the screen instead of the video?
(This post was last modified: Today 13:40 by FuZira.)
find quote