Kodi Community Forum
[DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: [DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) (/showthread.php?tid=75437)



- snyft - 2010-08-31

Anyway to have the program delete the subtitles or store them in another folder than same as the movie?


- mr_blobby - 2010-08-31

kraaa Wrote:Anyway to have the program delete the subtitles or store them in another folder than same as the movie?
Uncheck "Subtitle download folder same as movie" and a custom dowload path can be set.


- aptalca - 2010-09-01

aptalca Wrote:Hi Amet,
First of all, thanks for the great addon

I was wondering if there is a way to have this addon automatically close/hide the OSD menu when it's done downloading the subtitles?

Right now, I am accessing this addon not using a button on the remote, but through the OSD menu in Transparency. So when I select a subtitle to download, the OSD is also open. After download, the addon window automatically closes and the video starts playing, but I still have the OSD that I have to manually close.

I know I am just being lazy, but isn't it what we are all trying to achieve here with xbmc, ultimate practicality for the ultimate lazy? Smile

Thanks


For anyone who's wondering, I was able to achieve the above by editing the video osd xml in my skin (transparency). I just added this line

Code:
<onclick>Dialog.Close(videoosd)</onclick>

right underneath this line

Code:
<onclick>RunScript($INFO[Skin.String(SubsScript_Path)])</onclick>

(thanks to ronie for that)


- Veron - 2010-09-01

I made another change to the script. I have another mediaplayer which needs the subtitle to be named same as the video, so I made adding language name to downloaded subtitle filenames optional.

If anyone is interested in trying it, here's the changes needed.

gui.py
At "Download Subtitles" and "Extract, Rename & Activate Subtitles", about rows 265 and 292

Change this:
Code:
file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
To this:
Code:
if (__settings__.getSetting( "lang_to_end" ) == "true"):
   file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
else:
   file_name = "%s%s" % ( sub_name, sub_ext )

settings.xml
Add new row to "<category label="30106">" section
Code:
<setting id="lang_to_end" type="bool" label="30121" default="true" />

strings.xml in english or language used
Add new row to "Script Settings" section
Code:
<string id="30121">- Add Language To Filename </string>

If Amet you can implement these to the script for future releases, that would be great.


- snyft - 2010-09-01

mr_blobby Wrote:Uncheck "Subtitle download folder same as movie" and a custom dowload path can be set.

I did this but i cant view the subtitles now for some reason, seems like it have to be in the same directory as the movie/show?


- Veron - 2010-09-01

kraaa Wrote:I did this but i cant view the subtitles now for some reason, seems like it have to be in the same directory as the movie/show?
You need to set custom subtitle folder to XBMC or manually browse for the subtitle. Check here how: http://wiki.xbmc.org/index.php?title=Videos#Subtitles


- roby777 - 2010-09-02

I have a problem with downloading subtitles. I try to download the subtitle but then i get this message: You can`t save subtitle to the selected destinationTonguelease choose different subtitle folder under script settings. I tryied to change folders but I always get this message when trying to download subtitle.Any help?Blush


- snyft - 2010-09-02

Veron Wrote:You need to set custom subtitle folder to XBMC or manually browse for the subtitle. Check here how: http://wiki.xbmc.org/index.php?title=Videos#Subtitles

Yeah i did that, but it dident work for one movie. Works for all others now tho!


- amet - 2010-09-02

Veron Wrote:I made another change to the script. I have another mediaplayer which needs the subtitle to be named same as the video, so I made adding language name to downloaded subtitle filenames optional.

If anyone is interested in trying it, here's the changes needed.

gui.py
At "Download Subtitles" and "Extract, Rename & Activate Subtitles", about rows 265 and 292

Change this:
Code:
file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
To this:
Code:
if (__settings__.getSetting( "lang_to_end" ) == "true"):
   file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
else:
   file_name = "%s%s" % ( sub_name, sub_ext )

settings.xml
Add new row to "<category label="30106">" section
Code:
<setting id="lang_to_end" type="bool" label="30121" default="true" />

strings.xml in english or language used
Add new row to "Script Settings" section
Code:
<string id="30121">- Add Language To Filename </string>

If Amet you can implement these to the script for future releases, that would be great.

added in 1.8.1, thanks!


- snyft - 2010-09-04

Subscene search still not working or its just me?


- mr_blobby - 2010-09-04

kraaa Wrote:Subscene search still not working or its just me?
http://forum.xbmc.org/showthread.php?p=594461#post594461
With a bit of luck, I will have a new version ready this weekend.


You can`t save subtitle to the selected destination - thijse - 2010-09-04

I'm having the same issue as Rob777 (XBMC Dharma Beta 1, Mac OSX). I tried using the same folder as movie, and fixed directories. Anybody else seen this? Besides that, integration in XBMC looks very smooth!


roby777 Wrote:I have a problem with downloading subtitles. I try to download the subtitle but then i get this message: You can`t save subtitle to the selected destinationTonguelease choose different subtitle folder under script settings. I tryied to change folders but I always get this message when trying to download subtitle.Any help?Blush



- amet - 2010-09-05

thijse Wrote:I'm having the same issue as Rob777 (XBMC Dharma Beta 1, Mac OSX). I tried using the same folder as movie, and fixed directories. Anybody else seen this? Besides that, integration in XBMC looks very smooth!

try selecting a folder on the local HDD and not on the network. Also, please post your debug log , maybe we can fish something out of it


- snyft - 2010-09-05

I made a thread on the general xbmc help thread but think it would possible to implement my idea on checking local folders for subs from where the movies is?

http://forum.xbmc.org/showthread.php?tid=80479

check that please and if it would be able to have it autosearch for the subtitles and extract to the subfolder i would love you 100% more Big Grin


- matejdro - 2010-09-05

I have updated my version and podnapisi.net seems to work now.

Thanks!