Kodi Community Forum
[RELEASE] OpenSubtitles OSD (Script) - 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: [RELEASE] OpenSubtitles OSD (Script) (/showthread.php?tid=56083)



- amet - 2009-08-28

awarin Wrote:sadly their are a lot of subs missing in swedish. The site only has swedish subs.

Their is a script called undertexter.se for xbmc. http://xbmc-misc.googlecode.com/svn/branches/scripts/Undertexter-v1.1.zip
*search seems broken

Hopefully the author updates his script and i can use both.

Anyways thank you for a great plugin.

Sorry I can't help you more.

Glad you find the script useful Smile

Zeljko


- fidoboy - 2009-08-31

The script fails on OSX, this is the output:

Quote:File "/Users/Fidoboy/Library/Application Support/XBMC/Scripts/OpenSubtitles_OSD/default.py", line 238, in ?
ui = gui.GUI( "script-OpenSubtitles_OSD-main.xml", os.getcwd(), skin)
TypeError: XML File for Window is missing



- amet - 2009-08-31

fidoboy Wrote:The script fails on OSX, this is the output:


What skin are you using? I made it on OSX, its the only platform I can confirm that its working Smile

Please post the log

Zeljko


- fidoboy - 2009-08-31

I'm using MediaStream Redux Mod, what log? there is no more info in XBMC.log file... I've tested on my other Linux based machine (using the same skin) and it works fine...

regards,


- amet - 2009-08-31

fidoboy Wrote:I'm using MediaStream Redux Mod, what log? there is no more info in XBMC.log file... I've tested on my other Linux based machine (using the same skin) and it works fine...

regards,

the script checks for the name of the skin folder,something is wrong there.
are you using 1.28?


- fidoboy - 2009-08-31

Yes i'm using 1.28 version, i've found more info looking at the OSX console:

Quote:16:52:11 T:2688157472 M:1501179904 DEBUG: ExecuteXBMCAction : Translating RunScript(special://home/scripts/OpenSubtitles_OSD/default.py, [MOVIE]$INFO[VideoPlayer.Title][/MOVIE])
16:52:11 T:2688157472 M:1501179904 DEBUG: ExecuteXBMCAction : To RunScript(special://home/scripts/OpenSubtitles_OSD/default.py, [MOVIE]4 meses, 3 semanas y 2 días[/MOVIE])
16:52:12 T:2968862720 M:1500614656 DEBUG: Process - The source file to load is special://home/scripts/OpenSubtitles_OSD/default.py
16:52:12 T:2968862720 M:1500614656 DEBUG: Process - Setting the Python path to /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python24.zip:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
16:52:12 T:2968862720 M:1500614656 DEBUG: Process - Entering source directory /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD
16:52:16 T:2968862720 M:1499459584 INFO: Loading skin includes from /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/resources/skins/MediaStream_Redux/includes.xml
16:52:16 T:2968862720 M:1499467776 INFO: Error loading includes.xml file (/Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/resources/skins/MediaStream_Redux/includes.xml): Failed to open file (row=0, col=0)
16:52:16 T:2968862720 M:1499566080 NOTICE: File "/Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/default.py", line 238, in ?
16:52:17 T:2968862720 M:1499152384 NOTICE: ui = gui.GUI( "script-OpenSubtitles_OSD-main.xml", os.getcwd(), skin)
16:56:43 T:2968862720 M:1498365952 DEBUG: Process - The source file to load is special://home/scripts/OpenSubtitles_OSD/default.py
16:56:43 T:2968862720 M:1498365952 DEBUG: Process - Setting the Python path to /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python24.zip:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
16:56:43 T:2968862720 M:1498365952 DEBUG: Process - Entering source directory /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD
16:57:31 T:2688157472 M:1491181568 DEBUG: ExecuteXBMCAction : Translating RunScript(special://home/scripts/OpenSubtitles_OSD/default.py, [MOVIE]$INFO[VideoPlayer.Title][/MOVIE])
16:57:31 T:2688157472 M:1491181568 DEBUG: ExecuteXBMCAction : To RunScript(special://home/scripts/OpenSubtitles_OSD/default.py, [MOVIE]The Wrestler (El luchador)[/MOVIE])
16:57:32 T:2968862720 M:1490837504 DEBUG: Process - The source file to load is special://home/scripts/OpenSubtitles_OSD/default.py
16:57:32 T:2968862720 M:1490837504 DEBUG: Process - Setting the Python path to /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python24.zip:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
16:57:32 T:2968862720 M:1490837504 DEBUG: Process - Entering source directory /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD
16:58:02 T:2968862720 M:1488650240 INFO: Loading skin includes from /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/resources/skins/MediaStream_Redux/includes.xml
16:58:02 T:2968862720 M:1488666624 INFO: Error loading includes.xml file (/Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/resources/skins/MediaStream_Redux/includes.xml): Failed to open file (row=0, col=0)
16:58:02 T:2968862720 M:1488625664 NOTICE: File "/Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD/default.py", line 238, in ?
16:58:02 T:2968862720 M:1488625664 NOTICE: ui = gui.GUI( "script-OpenSubtitles_OSD-main.xml", os.getcwd(), skin)
16:58:20 T:2968862720 M:1490751488 DEBUG: Process - The source file to load is special://home/scripts/OpenSubtitles_OSD/default.py
16:58:20 T:2968862720 M:1490751488 DEBUG: Process - Setting the Python path to /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python24.zip:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
16:58:20 T:2968862720 M:1490751488 DEBUG: Process - Entering source directory /Users/Fidoboy/Library/Application Support/XBMC/scripts/OpenSubtitles_OSD



- amet - 2009-08-31

fidoboy Wrote:Yes i'm using 1.28 version, i've found more info looking at the OSX console:

Check your mail and let me know.

The reason I was asking for the whole log is that it shows the folder name of the skin. That is needed to load correct skin for the script.


Zeljko


- ronie - 2009-08-31

Amet Wrote:Check your mail and let me know.

The reason I was asking for the whole log is that it shows the folder name of the skin. That is needed to load correct skin for the script.


Zeljko

just wondering...can't you make the script fall back to the PM3.HD skin if it can't find a matching skin folder?


- amet - 2009-08-31

ronie Wrote:just wondering...can't you make the script fall back to the PM3.HD skin if it can't find a matching skin folder?

It will be done in the next version.I am working on it....


- fidoboy - 2009-08-31

The folder of my current skin is called 'MediaStream_Redux_Mod' in both Linux and OSX installations, but it's working fine on Linux version...

(i'm testing the version attached into the email)

regards,


- fidoboy - 2009-08-31

I've just tested the version that you emailed me, and results are the same. Using Linux, the script works fine but only if the movie title doesn't have special characters (like accented chars, etc..). And using OSX the script doesn't work at all... it let you configure the options but then it fails... I'll take a look at the logs in OSX version and i'll post it here...


- fidoboy - 2009-08-31

Well, looking at the log file in OSX version, it seems that the script fails to locate a file called 'includes.xml' into the MediaStream_redux folder (and i don't have that folder, mine is called MediaStream_Redux_mod...)


- tmc701 - 2009-08-31

I had the same issue. It has to do with the folder name that is within the opensubtitles_osd scripts folder (OpenSubtitles_OSD\resources\skins\) Rename the redux folder under there to whatever you have your skin folder named (MediaStream_Redux_mod in your case) and it will work.


- fidoboy - 2009-08-31

I've renamed that folder in OSX, but it still doesn't work... Sad


- revned - 2009-09-02

Could you add support for http://www.podnapisi.net/

They have a lot of subtitles in many languages, also for TV series.