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)



- soder - 2009-12-21

Amet Wrote:it was on Open Subtitles service, right? it's because the Open Subtitles sometimes has the whole season packed in one zip.

it is on my list of things to fix in a near future.

Zeljko

Yes it was. =)

Great. Thanks.

/Söder


- Chef - 2009-12-22

Is there a 'skin-hack' available for the Alaska skin? Or is somebody already putting any effort in this?


- amet - 2009-12-22

Chef Wrote:Is there a 'skin-hack' available for the Alaska skin? Or is somebody already putting any effort in this?

Not sure if Alaska developers will include it in the skin, maybe its best to ask on their forum thread. If not, maybe I can do something to add it in.

Zeljko


- dani77zg - 2009-12-27

Firt of all, thanks for a great script.
I dont know if it's just me but I can't get any search results from Podnapisi service.
Sublight and Opensubtitles are working just fine.
I'm using latest live Camelot relese with Aeon Phil65 skin and the script is latest version also.
I have an account on Podnapisi.net and searching for subs works ok on my mac.
So I was wondering if I have to do something or the problem is elswhere.


- amet - 2009-12-27

dani77zg Wrote:Firt of all, thanks for a great script.
I dont know if it's just me but I can't get any search results from Podnapisi service.
Sublight and Opensubtitles are working just fine.
I'm using latest live Camelot relese with Aeon Phil65 skin and the script is latest version also.
I have an account on Podnapisi.net and searching for subs works ok on my mac.
So I was wondering if I have to do something or the problem is elswhere.


enable script debug logging under script settings and post a debug log, my signature has how-to, and we can take it from there.

Zeljko


- xalaros - 2009-12-27

Amet Wrote:enable script debug logging under script settings and post a debug log, my signature has how-to, and we can take it from there.

Zeljko


Seems like the same problem i am having, i don't get any results on podnapisi.net either. i have already uploaded pastebin data a few pages back but haven't received an answer yet. Our friend here is saying that it works on his Mac, I have 2 win7 x64 machines and none works, maybe it has something to do with local settings, mine is in Greek. When i do the search i get from the log on the webpage from the site i get correct results by the way.


- dani77zg - 2009-12-27

http://pastebin.com/m3811527b

OK, above is the log after trying to get the subs for a movie Chicago.
I got results from both web sites (sublight giving back most) and none from Podnapisi.
Multiple errors regarding sources in the log are due the fact that the machine is a part of a bigger wireless network so not all machines with multimedia sources were up.


- stanger192 - 2009-12-28

Hey mate great work with the script, xbmc just gets better and better. Im just having a problem to get this working on my xbox running r25407 tech build and the latest version of your script. Heres what the debug log contained:

11:27:32 M: 10399744 NOTICE: INFO: Search by Name Austin Powers - The Spy Who Shagged Me.avi
11:27:32 M: 10399744 NOTICE: INFO: Token:[m127sbr2th8df2n6plk7hg7uk3]
11:27:36 M: 10391552 NOTICE: INFO: 13 subtitles found
11:27:36 M: 10371072 NOTICE: INFO: Name Search: 13 subtitles found
11:28:07 M: 10280960 NOTICE: INFO: download_subtitles
11:28:07 M: 10280960 NOTICE: INFO: Link download http://www.opensubtitles.org/en/download/sub/37239
11:28:10 M: 10256384 NOTICE: INFO: extract_subtitles
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin Powers - The Spy Who Shagged Me (1999).ReVamP.ShareReactor.En.srt'
11:28:20 M: 10244096 NOTICE: INFO: Search by name_pod [Austin+Powers:+The+Spy+Who+Shagged+Me]
11:28:20 M: 10100736 NOTICE: INFO: http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=Austin+Powers:+The+Spy+Who+Shagged+Me&sJ=2&sY=1999&sTS=&sTE=&sXML=1
11:28:20 M: 10100736 NOTICE: INFO: Searching subtitles by name_pod [Austin+Powers:+The+Spy+Who+Shagged+Me]
11:28:22 M: 9826304 NOTICE: INFO: 13 subtitles found
11:28:22 M: 9805824 NOTICE: INFO: Name Search_pod: [13 subtitles found]
11:28:25 M: 9707520 NOTICE: INFO: download_subtitles
11:28:25 M: 9687040 NOTICE: INFO: Link download http://www.podnapisi.net/ppodnapisi/download/i/356542
11:28:29 M: 9703424 NOTICE: INFO: extract_subtitles
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9682944 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin.Powers.The.Spy.Who.Shagged.Me.1999.720p.BluRay.x264-CYBERMEN.ENG.srt'
11:28:34 M: 9146368 NOTICE: INFO: File Hash: [IOError]
11:28:34 M: 9670656 NOTICE: INFO: Search by Name Austin Powers - The Spy Who Shagged Me.avi
11:28:35 M: 9801728 NOTICE: INFO: Token:[4ppgg8gmbdovt36ksepr4b74c5]
11:28:38 M: 9801728 NOTICE: INFO: 13 subtitles found
11:28:38 M: 9789440 NOTICE: INFO: Name Search: 13 subtitles found
11:28:47 M: 9482240 NOTICE: 200 FTP SITE command called [command=help, args=]
11:28:47 M: 9457664 NOTICE: 200 FTP SITE command called [command=help, args=]
11:28:52 M: 9449472 NOTICE: INFO: download_subtitles
11:28:52 M: 9428992 NOTICE: INFO: Link download http://www.opensubtitles.org/en/download/sub/3380853
11:28:55 M: 9412608 NOTICE: INFO: extract_subtitles
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9408512 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9388032 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin.Powers.The.Spy.Who.Shagged.Me.1999.720p.BluRay.x264-CYBERMEN{ENG}.srt'


Thanks for your efforts with the script and to anyone who can help me!


- amet - 2009-12-28

stanger192 Wrote:Hey mate great work with the script, xbmc just gets better and better. Im just having a problem to get this working on my xbox running r25407 tech build and the latest version of your script. Heres what the debug log contained:

11:27:32 M: 10399744 NOTICE: INFO: Search by Name Austin Powers - The Spy Who Shagged Me.avi
11:27:32 M: 10399744 NOTICE: INFO: Token:[m127sbr2th8df2n6plk7hg7uk3]
11:27:36 M: 10391552 NOTICE: INFO: 13 subtitles found
11:27:36 M: 10371072 NOTICE: INFO: Name Search: 13 subtitles found
11:28:07 M: 10280960 NOTICE: INFO: download_subtitles
11:28:07 M: 10280960 NOTICE: INFO: Link download http://www.opensubtitles.org/en/download/sub/37239
11:28:10 M: 10256384 NOTICE: INFO: extract_subtitles
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:10 M: 10235904 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin Powers - The Spy Who Shagged Me (1999).ReVamP.ShareReactor.En.srt'
11:28:20 M: 10244096 NOTICE: INFO: Search by name_pod [Austin+Powers:+The+Spy+Who+Shagged+Me]
11:28:20 M: 10100736 NOTICE: INFO: http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=Austin+Powers:+The+Spy+Who+Shagged+Me&sJ=2&sY=1999&sTS=&sTE=&sXML=1
11:28:20 M: 10100736 NOTICE: INFO: Searching subtitles by name_pod [Austin+Powers:+The+Spy+Who+Shagged+Me]
11:28:22 M: 9826304 NOTICE: INFO: 13 subtitles found
11:28:22 M: 9805824 NOTICE: INFO: Name Search_pod: [13 subtitles found]
11:28:25 M: 9707520 NOTICE: INFO: download_subtitles
11:28:25 M: 9687040 NOTICE: INFO: Link download http://www.podnapisi.net/ppodnapisi/download/i/356542
11:28:29 M: 9703424 NOTICE: INFO: extract_subtitles
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9687040 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:29 M: 9682944 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin.Powers.The.Spy.Who.Shagged.Me.1999.720p.BluRay.x264-CYBERMEN.ENG.srt'
11:28:34 M: 9146368 NOTICE: INFO: File Hash: [IOError]
11:28:34 M: 9670656 NOTICE: INFO: Search by Name Austin Powers - The Spy Who Shagged Me.avi
11:28:35 M: 9801728 NOTICE: INFO: Token:[4ppgg8gmbdovt36ksepr4b74c5]
11:28:38 M: 9801728 NOTICE: INFO: 13 subtitles found
11:28:38 M: 9789440 NOTICE: INFO: Name Search: 13 subtitles found
11:28:47 M: 9482240 NOTICE: 200 FTP SITE command called [command=help, args=]
11:28:47 M: 9457664 NOTICE: 200 FTP SITE command called [command=help, args=]
11:28:52 M: 9449472 NOTICE: INFO: download_subtitles
11:28:52 M: 9428992 NOTICE: INFO: Link download http://www.opensubtitles.org/en/download/sub/3380853
11:28:55 M: 9412608 NOTICE: INFO: extract_subtitles
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9412608 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9408512 WARNING: msvcrt.dll: dll_lseeki64 called, TODO: add 'int64 -> long' type checking
11:28:55 M: 9388032 NOTICE: ERROR: Error! [Errno 2] No such file or directory: 'Z:\\Austin.Powers.The.Spy.Who.Shagged.Me.1999.720p.BluRay.x264-CYBERMEN{ENG}.srt'


Thanks for your efforts with the script and to anyone who can help me!

for some reason it fails while unziping. Maybe a different XBMC version would solve this problem.


- stanger192 - 2009-12-29

It could have something to do with the nameing of the subtitle file? I searched for subs for astroboy.mp4 and that worked fine. i remeber copying sometihing to the xbox ages ago and having issues with te naming of the files. It worked flawlessly on my pc.

Anyway, another reason to get one of those dual core atoms +ion boxes ive seen around.

Thanks for a great addon!


- Chef - 2009-12-30

Amet Wrote:Not sure if Alaska developers will include it in the skin, maybe its best to ask on their forum thread. If not, maybe I can do something to add it in.

Zeljko
Not sure if it will be included as a feature in the Alaska skin. It is on the to-do list...but maybe making a 'hack' is possible as a temporary solution?


- undeclinable22 - 2009-12-30

Not being able to get this script to work, I decided to try my luck here with a debug log:

I hope someone can give me some clues to what I'm doing wrong. Confluence skin hack has been installed, but pressing the subtitles button gives me "script failed!"

Log:

http://pastebin.com/m7030aa1b


- moonshadow - 2009-12-30

hello i have problem with transprency 2.11 + OSD

15:41:58 T:4972 M:2360717312 NOTICE: SVN Latest Version :[ 1.44]
15:41:59 T:4972 M:2359758848 NOTICE: 10% complete
15:41:59 T:4972 M:2359775232 NOTICE: 20% complete
15:41:59 T:4972 M:2359803904 NOTICE: 30% complete
15:41:59 T:4972 M:2360778752 NOTICE: 40% complete
15:41:59 T:4972 M:2360807424 NOTICE: 50% complete
15:42:00 T:4972 M:2360836096 NOTICE: 60% complete
15:42:00 T:4972 M:2360811520 NOTICE: 70% complete
15:42:00 T:4972 M:2360733696 NOTICE: 80% complete
15:42:00 T:4972 M:2360655872 NOTICE: 90% complete
15:42:00 T:4972 M:2360991744 NOTICE: 100% complete
15:42:01 T:4972 M:2360832000 NOTICE: True
15:42:01 T:4972 M:2359734272 NOTICE: Traceback (most recent call last):
15:42:01 T:4972 M:2359734272 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\default.py", line 195, in ?
15:42:01 T:4972 M:2359742464 NOTICE: service_present = ui.set_allparam ( movieFullPath,search_string,temp,sub_folder, year, debug )
15:42:01 T:4972 M:2359742464 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\resources\lib\gui.py", line 70, in set_allparam
15:42:01 T:4972 M:2359742464 NOTICE: self.lang2 = toOpenSubtitlesId( lang2 ) # 2 letter language 2
15:42:01 T:4972 M:2359742464 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\resources\lib\utilities.py", line 400, in toOpenSubtitlesId
15:42:01 T:4972 M:2359742464 NOTICE: return languages[ id ]
15:42:01 T:4972 M:2359742464 NOTICE: KeyError
15:42:01 T:4972 M:2359742464 NOTICE: :
15:42:01 T:4972 M:2359742464 NOTICE: 'BosnianLatin'
15:42:01 T:4972 M:2359742464 ERROR: Scriptresult: Error
15:42:02 T:4972 M:2359721984 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD
15:42:04 T:4736 M:2363940864 ERROR: Failed to download fanart to special://masterprofile/Thumbnails/Music/Fanart/0c67e278.tbn
15:42:09 T:4736 M:2367188992 ERROR: Failed to download fanart to special://masterprofile/Thumbnails/Music/Fanart/1eae11ad.tbn
15:42:11 T:4648 M:2371514368 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
15:42:16 T:4472 M:2369159168 NOTICE: CDVDPlayer::CloseFile()
15:42:16 T:4472 M:2369159168 NOTICE: DVDPlayer: waiting for threads to exit

plz help Smile thnx in advanced


- amet - 2009-12-30

moonshadow Wrote:hello i have problem with transprency 2.11 + OSD

15:41:58 T:4972 M:2360717312 NOTICE: SVN Latest Version :[ 1.44]
15:41:59 T:4972 M:2359758848 NOTICE: 10% complete
15:41:59 T:4972 M:2359775232 NOTICE: 20% complete
15:41:59 T:4972 M:2359803904 NOTICE: 30% complete
15:41:59 T:4972 M:2360778752 NOTICE: 40% complete
15:41:59 T:4972 M:2360807424 NOTICE: 50% complete
15:42:00 T:4972 M:2360836096 NOTICE: 60% complete
15:42:00 T:4972 M:2360811520 NOTICE: 70% complete
15:42:00 T:4972 M:2360733696 NOTICE: 80% complete
15:42:00 T:4972 M:2360655872 NOTICE: 90% complete
15:42:00 T:4972 M:2360991744 NOTICE: 100% complete
15:42:01 T:4972 M:2360832000 NOTICE: True
15:42:01 T:4972 M:2359734272 NOTICE: Traceback (most recent call last):
15:42:01 T:4972 M:2359734272 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\default.py", line 195, in ?
15:42:01 T:4972 M:2359742464 NOTICE: service_present = ui.set_allparam ( movieFullPath,search_string,temp,sub_folder, year, debug )
15:42:01 T:4972 M:2359742464 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\resources\lib\gui.py", line 70, in set_allparam
15:42:01 T:4972 M:2359742464 NOTICE: self.lang2 = toOpenSubtitlesId( lang2 ) # 2 letter language 2
15:42:01 T:4972 M:2359742464 NOTICE: File "C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD\resources\lib\utilities.py", line 400, in toOpenSubtitlesId
15:42:01 T:4972 M:2359742464 NOTICE: return languages[ id ]
15:42:01 T:4972 M:2359742464 NOTICE: KeyError
15:42:01 T:4972 M:2359742464 NOTICE: :
15:42:01 T:4972 M:2359742464 NOTICE: 'BosnianLatin'
15:42:01 T:4972 M:2359742464 ERROR: Scriptresult: Error
15:42:02 T:4972 M:2359721984 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\BORIS\AppData\Roaming\XBMC\scripts\OpenSubtitles_OSD
15:42:04 T:4736 M:2363940864 ERROR: Failed to download fanart to special://masterprofile/Thumbnails/Music/Fanart/0c67e278.tbn
15:42:09 T:4736 M:2367188992 ERROR: Failed to download fanart to special://masterprofile/Thumbnails/Music/Fanart/1eae11ad.tbn
15:42:11 T:4648 M:2371514368 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
15:42:16 T:4472 M:2369159168 NOTICE: CDVDPlayer::CloseFile()
15:42:16 T:4472 M:2369159168 NOTICE: DVDPlayer: waiting for threads to exit

plz help Smile thnx in advanced

probaj da stavis Srpski ili Hrvatski kao jezik umesto Bosanskog.

Posle ovih praznika cu da pregledam i to Smile

Zeljko


- moonshadow - 2009-12-30

da ali mi je problem sto napise script failed...nece mi uopce ucitat Opensubtitles