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)



- govegan - 2009-11-05

Amet Wrote:maybe try selecting a custom subtitle folder under script settings...

Under the xbmc settings->video->subtitles -> "custum subtitle folder"

I have set q:/subtitles


- amet - 2009-11-05

govegan Wrote:Under the xbmc settings->video->subtitles -> "custum subtitle folder"

I have set q:/subtitles

no, under the script settings.

look on the first page of this post on how to access the settings.

Zeljko


- govegan - 2009-11-05

Amet Wrote:no, under the script settings.

look on the first page of this post on how to access the settings.

Zeljko

Oke, you mean this line:

Quote:XBOX: Highlight OpenSubtitles_OSD and select 'Title' button on IR, then select script settings

I need to use my remote controle? is it also posible with a xbox controller?


- amet - 2009-11-05

govegan Wrote:Oke, you mean this line:



I need to use my remote controle? is it also posible with a xbox controller?

not too familiar with XBOX, but it is equivalent of a right click on a mouse.

you need to hold it until the submenu pops up , it will say script settings .


- illiac4 - 2009-11-05

On XBOX controller just press white button.


- amet - 2009-11-05

illiac4 Wrote:On XBOX controller just press white button.

Thanks Smile


- wild_oscar - 2009-11-06

Amet Wrote:sure, this is what I added in joystickappleremote.xml under <FullscreenVideo> since I am on ATV. it activates script by holding menu on a remote.



if you are using a keyboard, find "keyboard.xml" under keymaps folder and copy it to /user/{your_name}/.xbmc/userdata/keymaps/ (you might need to create keymaps folder). rename it to keyboard_own.xml and add following under <FullscreenVideo>
<keyboard>:



restart XBMC and "s" should start script while in fullscreen only.

Cheers
Zeljko


Way to go, thanks!

Now more on a "review" comment/question, I am comparing this script with Boxee's one and have two remarks:

1) Do you know why the search seems slower than in boxee? You seem to be filtering the search to the languages in the settings. Could this cause a slower query than if all results are shown? Have you tried benchmarking the script's query against boxee's query?

2) On a personal taste, I prefer boxee's search box size and location (seems less obtrusive). Is this a simple thing to change in the script (position, size and perhaps font size)? I haven't fiddled around with the source yet, what file(s) is that information located in?


- amet - 2009-11-06

wild_oscar Wrote:Now more on a "review" comment/question, I am comparing this script with Boxee's one and have two remarks:

1) Do you know why the search seems slower than in boxee? You seem to be filtering the search to the languages in the settings. Could this cause a slower query than if all results are shown? Have you tried benchmarking the script's query against boxee's query?

I have used Boxee for about 15 minutes and i gave up on it. this script has some roots in he Boxee Subtitle script but the search function for OpenSubtitles has been rewritten according to Brano's(OpenSubtitle.org Administrator) instructions. Language preferences are sent with the search query so there is no filtering results. we only get the wanted languages.

wild_oscar Wrote:2) On a personal taste, I prefer boxee's search box size and location (seems less obtrusive). Is this a simple thing to change in the script (position, size and perhaps font size)? I haven't fiddled around with the source yet, what file(s) is that information located in?

It depends on which skin are you, you can look under OpenSubtitles_OSD/media/skins/Default/720p/, different xml files for different skins.

Zeljko


- wild_oscar - 2009-11-06

Amet Wrote:Language preferences are sent with the search query so there is no filtering results. we only get the wanted languages.

Perhaps this can be due to the subtitle database then. Have you tried testing the query execution time with and without specifying the languages?


- amet - 2009-11-06

wild_oscar Wrote:Perhaps this can be due to the subtitle database then. Have you tried testing the query execution time with and without specifying the languages?

you have to specify the Language settings, if you dont the script will use defaults, English and Serbian.


- govegan - 2009-11-06

hmm stil no go
played the serie straight from the xbox, not from smb.
changed the subfolder in the opensubtitle-osd settings to "E:\Apps\XBMC\subtitles\"

but still it hangs on z:\\

Code:
21:31:30 M: 27115520  NOTICE: -->Python Initialized<--
21:31:31 M: 24514560  NOTICE: SVN Latest Version :[ 1.40]
21:31:31 M: 24514560  NOTICE: OpenSubtitles_OSD version [1.40]
21:31:31 M: 24514560  NOTICE: Skin Folder: [ project mayhem iii ]
21:31:31 M: 24514560  NOTICE: OpenSubtitles_OSD skin XML: [ main ]
21:31:31 M: 24514560  NOTICE: False
21:31:32 M: 22073344  NOTICE: INFO: Manual Search : [False]
21:31:32 M: 22073344  NOTICE: INFO: Service : [OpenSubtitles]
21:31:32 M: 22073344  NOTICE: INFO: SL Service : [True]
21:31:32 M: 22073344  NOTICE: INFO: PN Service : [True]
21:31:32 M: 22073344  NOTICE: INFO: OS Service : [True]
21:31:32 M: 22073344  NOTICE: INFO: Search String: [that+70s+show+s02e26]
21:31:32 M: 22073344  NOTICE: INFO: Temp?: [False]
21:31:32 M: 22073344  NOTICE: INFO: File Path: [E:\Videos\that.70s.show.s02e26.dvdrip.xvid-ffndv.avi]
21:31:32 M: 22073344  NOTICE: INFO: Year: [0]
21:31:32 M: 22073344  NOTICE: INFO: Subtitle Folder: [Q:\subtitles\]
21:31:32 M: 22073344  NOTICE: INFO: Language 1: [dut]
21:31:32 M: 22073344  NOTICE: INFO: Language 2: [eng]
21:31:33 M: 21970944   ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting ?
21:31:33 M: 21970944   ERROR: CGUIMediaWindow::GetDirectory(?) failed
21:31:33 M: 21970944  NOTICE: INFO: onInit
21:31:33 M: 19722240  NOTICE: INFO: XBOX System: [Busy]
21:31:35 M: 17960960  NOTICE: INFO: File Hash: [0d4f3f827537e040]
21:31:35 M: 18485248  NOTICE: INFO: Search by Name that.70s.show.s02e26.dvdrip.xvid-ffndv.avi
21:31:35 M: 18440192  NOTICE: INFO: Token:[pkprv61ut242kemh8ivsrc4cc4]
21:31:35 M: 18415616  NOTICE: INFO: 1 subtitles found
21:31:35 M: 18415616  NOTICE: INFO: Name Search: 1 subtitles found
21:31:36 M: 19288064  NOTICE: HDD: SMART is supported.
21:31:36 M: 19288064  NOTICE: HDD: SMART is enabled.
21:31:37 M: 19820544  NOTICE: INFO: download_subtitles
21:31:37 M: 19820544  NOTICE: INFO: Link download http://www.opensubtitles.org/en/download/sub/3283037
21:31:37 M: 19820544  NOTICE: INFO: extract_subtitles
21:31:38 M: 19820544 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
21:31:38 M: 19820544 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
21:31:38 M: 19820544 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
21:31:38 M: 19820544 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
21:31:38 M: 19820544  NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\that.70s.show.s02e26.dvdrip.xvid-ffndvd.srt'



- amet - 2009-11-06

govegan Wrote:hmm stil no go
played the serie straight from the xbox, not from smb.
changed the subfolder in the opensubtitle-osd settings to "E:\Apps\XBMC\subtitles\"

but still it hangs on z:\\

what happens when you use other services, sublight or podnapisi? does it fail just with this sub or any sub?

do you see "that.70s.show.s02e26.dvdrip.xvid-ffndvd.srt" in Z:\\? any zip files there?

I cant see why you are having problems, a lot of people are using it on XBOX Huh

Could it be the version that you are using? any chance of trying a different XBMC version?

EDIT: Pleae post the whole log as per the instructions in my signature.


- govegan - 2009-11-06

Amet Wrote:what happens when you use other services, sublight or podnapisi? does it fail just with this sub or any sub?

do you see "that.70s.show.s02e26.dvdrip.xvid-ffndvd.srt" in Z:\\? any zip files there?

I cant see why you are having problems, a lot of people are using it on XBOX Huh

Could it be the version that you are using? any chance of trying a different XBMC version?

EDIT: Pleae post the whole log as per the instructions in my signature.


Thats It, when I only use sublight.si there is no problem. when I use opensubtitles it stucks on the z://

I thougt there was no Z on my xbox, but here is :

22:19:06 M: 56885248 NOTICE: special://temp/ is mapped to: Z:\
..................
22:19:06 M: 56860672 NOTICE: Unmapped drive Z
22:19:06 M: 56860672 NOTICE: Mapping drive Z to Harddisk0\Partition5



her is my entire log with first a search at sublight and the I change the settings to opensubtitles en searched again

http://pastebin.com/m59a0ac8a


- amet - 2009-11-06

govegan Wrote:Thats It, when I only use sublight.si there is no problem. when I use opensubtitles it stucks on the z://

I thougt there was no Z on my xbox, but here is :

22:19:06 M: 56885248 NOTICE: special://temp/ is mapped to: Z:\
..................
22:19:06 M: 56860672 NOTICE: Unmapped drive Z
22:19:06 M: 56860672 NOTICE: Mapping drive Z to Harddisk0\Partition5



her is my entire log with first a search at sublight and the I change the settings to opensubtitles en searched again

http://pastebin.com/m59a0ac8a

anything in Z:\\?? any zips or srt files?

I have to be honest, I have no idea why it doesnt work. Maybe someone on XBOX can tell us what XBMC version are they using.

Any chance you can try a different version of XBMC?


- govegan - 2009-11-07

Amet Wrote:anything in Z:\\?? any zips or srt files?

I have to be honest, I have no idea why it doesnt work. Maybe someone on XBOX can tell us what XBMC version are they using.

Any chance you can try a different version of XBMC?


I tryed
- XBMC_XBOX_24211 (from http://www.sshcs.com/xbmc/)
and
- XBMC-SVN_2009-09-27_rev23183-T3CH


Both the same thing with x://
and on the file manager and on ftp, I cant find X