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)



- turmere - 2010-03-23

I have the exakt same error. Didnt wanne post the fill log since it looks the same.

17:31:56 T:140151292426512 M:3147259904 INFO: Skin version is: 2.1
17:31:56 T:140151292426512 M:3147259904 INFO: Loading skin includes from /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/includes.xml
17:31:56 T:140151701317696 M:3147259904 DEBUG: ------ Window Init (/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml) ------
17:31:56 T:140151701317696 M:3147259904 INFO: Loading skin file: /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml
17:31:56 T:140151701317696 M:3147259904 DEBUG: Load /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml: 10.54ms
17:31:56 T:140151701317696 M:3147259904 DEBUG: Alloc resources: 11.22ms (11.11 ms skin load)
17:31:56 T:140151701317696 M:3147259904 DEBUG: CGUIMediaWindow::GetDirectory (?)
17:31:56 T:140151701317696 M:3147259904 DEBUG: ParentPath = []
17:31:56 T:140151701317696 M:3147259904 ERROR: GetDirectory - Error getting ?
17:31:56 T:140151701317696 M:3147259904 ERROR: CGUIMediaWindow::GetDirectory(?) failed
17:31:56 T:140151292426512 M:3147259904 NOTICE: ERROR: Error! search_subtitles:[Errno 2] No such file or directory: 'rar://smb://

Cheers.


- kakoura69 - 2010-03-23

are there perhaps plans / consideration of adding some more websites to the plugin list?
ie tvsubtitles.net, seriessub.com, subs4free.com


- amet - 2010-03-23

turmere Wrote:I have the exakt same error. Didnt wanne post the fill log since it looks the same.

17:31:56 T:140151292426512 M:3147259904 INFO: Skin version is: 2.1
17:31:56 T:140151292426512 M:3147259904 INFO: Loading skin includes from /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/includes.xml
17:31:56 T:140151701317696 M:3147259904 DEBUG: ------ Window Init (/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml) ------
17:31:56 T:140151701317696 M:3147259904 INFO: Loading skin file: /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml
17:31:56 T:140151701317696 M:3147259904 DEBUG: Load /home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/resources/skins/Default/720p/script-OpenSubtitles_OSD-confluence.xml: 10.54ms
17:31:56 T:140151701317696 M:3147259904 DEBUG: Alloc resources: 11.22ms (11.11 ms skin load)
17:31:56 T:140151701317696 M:3147259904 DEBUG: CGUIMediaWindow::GetDirectory (?)
17:31:56 T:140151701317696 M:3147259904 DEBUG: ParentPath = []
17:31:56 T:140151701317696 M:3147259904 ERROR: GetDirectory - Error getting ?
17:31:56 T:140151701317696 M:3147259904 ERROR: CGUIMediaWindow::GetDirectory(?) failed
17:31:56 T:140151292426512 M:3147259904 NOTICE: ERROR: Error! search_subtitles:[Errno 2] No such file or directory: 'rar://smb://

Cheers.

as I said, I think it has been fixed already


- turmere - 2010-03-23

Where do I get the updated version ?

Cheers


- amet - 2010-03-23

turmere Wrote:Where do I get the updated version ?

Cheers

the answer is on this page Rolleyes

http://forum.xbmc.org/showpost.php?p=508650&postcount=794


- uno - 2010-03-24

I did some testing, and it works if I enable Sublight.si and use it as primary provider instead of opensubtitles.


- andy83 - 2010-03-24

I installed it manually from here, then applied the skin hack, but the script crashes when searching opensubtitles.org. If it is my default engine it is an outright crash when I press the button from a playing movie and if it is not default engine the window comes up, but if I choose to search opensubtitles.org from it, xbmc crashes.
Here is the log.


- kakoura69 - 2010-03-24

doesnt work with opensubtitles as well here, got a message in the log the other day that the db has been moved but i cant find it in the log now


- amet - 2010-03-24

andy83 Wrote:I installed it manually from here, then applied the skin hack, but the script crashes when searching opensubtitles.org. If it is my default engine it is an outright crash when I press the button from a playing movie and if it is not default engine the window comes up, but if I choose to search opensubtitles.org from it, xbmc crashes.
Here is the log.

you are using quite an old version, try something more up to date.Camelot or one of the nightlies with 1.50 should be fine


- amet - 2010-03-24

kakoura69 Wrote:doesnt work with opensubtitles as well here, got a message in the log the other day that the db has been moved but i cant find it in the log now

it works for me, used it few times tonight.


- andy83 - 2010-03-25

Amet Wrote:you are using quite an old version, try something more up to date.Camelot or one of the nightlies with 1.50 should be fine

Sorry, I didn't imagine the precompiled packages would be so old. I compiled xbmc from svn /trunk and now I get some python error when trying to run opensubtitles_osd from the scripts menu (i.e. the configuration):

Code:
11:53:31 T:140061469448464 M:1649885184    INFO: -->Python script returned the following error<--
11:53:31 T:140061469448464 M:1649885184   ERROR: Error Type: exceptions.TypeError
11:53:31 T:140061469448464 M:1649885184   ERROR: Error Contents: function takes exactly 1 argument (0 given)
11:53:31 T:140061469448464 M:1649885184   ERROR: Traceback (most recent call last):
                                              File "/home/user/.xbmc/scripts/OpenSubtitles_OSD/default.py", line 22, in ?
                                                __settings__ = xbmc.Settings( path=os.getcwd() )
                                            TypeError: function takes exactly 1 argument (0 given)
11:53:31 T:140061469448464 M:1649885184    INFO: -->End of Python script error report<--

Here is the full log

PS. I also can't get SVN Repo Installer to work, when I put it in .xbmc/plugins/programs in xbmc it just shows as a folder. Does the default xbmc configuration not include plugin/script support?
Please bear with me, I'm not used to compiling stuff Smile


- amet - 2010-03-25

andy83 Wrote:Sorry, I didn't imagine the precompiled packages would be so old. I compiled xbmc from svn /trunk and now I get some python error when trying to run opensubtitles_osd from the scripts menu (i.e. the configuration):

Code:
11:53:31 T:140061469448464 M:1649885184    INFO: -->Python script returned the following error<--
11:53:31 T:140061469448464 M:1649885184   ERROR: Error Type: exceptions.TypeError
11:53:31 T:140061469448464 M:1649885184   ERROR: Error Contents: function takes exactly 1 argument (0 given)
11:53:31 T:140061469448464 M:1649885184   ERROR: Traceback (most recent call last):
                                              File "/home/user/.xbmc/scripts/OpenSubtitles_OSD/default.py", line 22, in ?
                                                __settings__ = xbmc.Settings( path=os.getcwd() )
                                            TypeError: function takes exactly 1 argument (0 given)
11:53:31 T:140061469448464 M:1649885184    INFO: -->End of Python script error report<--

Here is the full log

PS. I also can't get SVN Repo Installer to work, when I put it in .xbmc/plugins/programs in xbmc it just shows as a folder. Does the default xbmc configuration not include plugin/script support?

1.50 is not compatible with XBMC trunk, either use OpenSubtitles_OSD from googlecode SVN or use Camelot


- andy83 - 2010-03-25

Thanks, everything works fine now!
In case somebody finds this by search, this did the trick:
Code:
svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/9.11_Camelot/ xbmc
cd xbmc/
./bootstrap
./configure
make -j4
make install
It is the latest official linux xbmc source for now and works with current scripts and plugins.


- ehrnst - 2010-03-25

mine never worked with opensub. sublight worked better tough

Now, after i updated xbmc (dsplayer) the script just fail. i guess its because of the xbmc update, and it will be sorted


- gaah - 2010-03-26

Brilliant script Amet! However I also noticed that opensubtitles.org stopped working when sublight and podnapisi still works. Getting the same kind of errors as previous posters in my log (running 9.11 stable under Windows).

From the opensubtitles.org developer page:
"API server domain changed: XML-RPC requests send to http://api.opensubtitles.org/xml-rpc, old URL will still work at http://www.opensubtitles.org/xml-rpc until end of 2009, so upgrade it in your clients! "

Are you sure the url is up to date?

Excuse me.. I just looked myself in the source..
BASE_URL_XMLRPC = u"http://api.opensubtitles.org/xml-rpc"