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)



- herrflick - 2012-01-21

amet Wrote:short of us typing it for you, not sure what else we could do. Smile

That would solve it, for sure. Smile

Thanks for your answer. Just asked because Boxee somehow manages to find the subtitles automatically for the same Navi-x files. I'm not tech-savyy. So I was wondering if I was missing something in XBMC (btw, my favorite MC by far).


- amet - 2012-01-21

herrflick Wrote:That would solve it, for sure. Smile

Thanks for your answer. Just asked because Boxee somehow manages to find the subtitles automatically for the same Navi-x files. I'm not tech-savyy. So I was wondering if I was missing something in XBMC (btw, my favorite MC by far).

sorry, I dont use Navi-x so I cant say . if title is displayed properly in OSD we will pick it up. maybe ask in Navi-x thread?


- Ratix - 2012-01-22

Tried running it as administrator as well. No luck either...


- taxigps - 2012-01-22

Hi, Amet:

1. I have wrote a new service 'Shooter' for XBMC Subtitles.

Shooter.cn (Chinese and English subs only)

2. Need to modify line 306 in gui.py to check chinese filename:

from
Code:
if ((sub_ext == ".sub") and (os.path.exists(file[:-3]+"idx"))):
to
Code:
if ((sub_ext == ".sub") and (os.path.exists(unicode(file[:-3]+"idx", 'utf-8')))):

3. Happy Chinese New Year!!!Smile

taxigps


- macf1an - 2012-01-22

herrflick Wrote:Just asked because Boxee somehow manages to find the subtitles automatically for the same Navi-x files.

that's a feat of boxee navi-x only (so far)


- castortray - 2012-01-23

I have an error with Napiprojekt on ATV2:

using SMB path

Code:
17:06:15 T:152563712  NOTICE: -->Python Interpreter Initialized<--
17:06:16 T:152563712  NOTICE: []
17:06:16 T:126214144   ERROR: Exception in thread Thread-1:
                                            Traceback (most recent call last):
                                              File "/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 33, in run
                                                self.result = func(*args, **kwargs)
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 47, in set_filehash
                                                d.update(open(path,"rb").read(10485760))
                                            IOError: [Errno 2] No such file or directory: 'smb://READYSHARE/USB_Storage/Atv2_Eden/Black Swan (2010)/Black Swan CD1.avi'
17:06:24 T:109940736   ERROR: ClearBlock: Trying to clear non existent block /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles
17:06:42 T:155893760  NOTICE: -->Python Interpreter Initialized<--
17:06:43 T:155893760  NOTICE: []
17:06:43 T:123191296   ERROR: Exception in thread Thread-1:
                                            Traceback (most recent call last):
                                              File "/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 33, in run
                                                self.result = func(*args, **kwargs)
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 47, in set_filehash
                                                d.update(open(path,"rb").read(10485760))
                                            IOError: [Errno 2] No such file or directory: 'smb://READYSHARE/USB_Storage/Atv2_Eden/Black Swan (2010)/Black Swan CD1.avi'
17:06:48 T:109940736   ERROR: ClearBlock: Trying to clear non existent block /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles
17:06:52 T:123723776   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
17:06:52 T:123723776 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
17:06:59 T:155893760 WARNING: Previous line repeats 1 times.
17:06:59 T:155893760  NOTICE: -->Python Interpreter Initialized<--
17:07:00 T:155893760  NOTICE: []
17:07:00 T:156426240   ERROR: Exception in thread Thread-1:
                                            Traceback (most recent call last):
                                              File "/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 33, in run
                                                self.result = func(*args, **kwargs)
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 47, in set_filehash
                                                d.update(open(path,"rb").read(10485760))
                                            IOError: [Errno 2] No such file or directory: 'smb://READYSHARE/USB_Storage/Atv2_Eden/Black Swan (2010)/Black Swan CD1.avi'

using NFS path

Code:
17:34:32 T:135684096   ERROR: Exception in thread Thread-1:
                                            Traceback (most recent call last):
                                              File "/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 33, in run
                                                self.result = func(*args, **kwargs)
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.subtitles/resources/lib/services/Napiprojekt/service.py", line 47, in set_filehash
                                                d.update(open(path,"rb").read(10485760))
                                            IOError: [Errno 2] No such file or directory: 'nfs://192.168.2.11/DataVolume/Public/Shared Videos/Real Steel (2011)/Real Steel.avi'

should I install something additional ?
or what could be wrong ?

I test it on Eden beta 1 version

thanks for any tips


- Spatzy - 2012-01-24

Hello.

I have a problem with script.xbmc.subtitles.

http://pastebin.com/iasRsFNC
When I try to download a subtitle-file I get "script error".


- pedromarga - 2012-01-24

Im having a annoying problem using the add on!

When I initialize XBMC I can select a video and download the subtitles, but, after downloading the first subtitles, I cant download anymore... I can select the server (legendas.tv), then it downloads the subtitles list, but when I choose one subtitle and press enter key nothing happens.

The log of me downloading a subtitle then having problems to download the second:
http://pastebin.com/p6QHPu4h

Thanks in advance!


Sratim ans Subcenter issue - SupeReuven - 2012-01-25

Hi,

I started to face new problems with Sratim and Subcenter:

with Sratim I can't find any sub Sad but i know this sub exist there, the issue with sratim is only related to TV show, movies are working great

with Subcenter It can find the sub, but when I'm trying to download it nothing happens

PHP Code:
DEBUG### [XBMC Subtitles-services.Subscenter.service] -  Fetching subtitles using url http://www.subscenter.org/subtit
00:03:17 T:140094400861952   DEBUG### [XBMC Subtitles-services.Subscenter.service] - Getting url: http://www.subscenter.org/subtitle/download/he/25
00:03:17 T:140095026022208   DEBUGLIRCUpdate - NEW at 270580:160 0 KEY_OK_UP devinput (KEY_OK_UP)
00:03:17 T:140094400861952   DEBUG### [XBMC Subtitles-services.Subscenter.service] - Failed to get url: http://www.subscenter.org/subtitle/download
00:03:17 T:140094400861952   DEBUG### [XBMC Subtitles-services.Subscenter.service] - Getting url: http://www.subscenter.org/subtitle/download/he/25
00:03:24 T:140094400861952   DEBUG### [XBMC Subtitles-services.Subscenter.service] - Failed to get url: http://www.subscenter.org/subtitle/download
00:03:24 T:140094400861952   DEBUG### [XBMC Subtitles-utilities] - vfs module copy  -> /storage/Share_Server/.../Chuck/Chuck.S05E02.72
00:03:24 T:140094400861952  NOTICE: []
00:03:24 T:140094560257792  NOTICEOpening Subtitle stream0 source1024
00
:03:24 T:140094560257792   ERROROpenStream Unable to create subtitle parser
00
:03:24 T:140094560257792 WARNINGOpenSubtitleStream Unsupported stream 0. Stream disabled


I'm using NFS and I checked permission of the folder that I can create files from xbmc pc to the NFS HDD and it working, is someone has an idea?

I'm using sub version 2.9.31, with openelec PVR eden versionr9616

Thanks,
Robbie


- RobinBolscher - 2012-01-26

Hello,

I have a question, i've been searching around the internet but i can't find an answer..
I have set up my XBMC Subtitle, but it won't download any subs, doenst matter what provider. When I click on a certain sub it says 'Ondertitels downloaden' in dutch. And than nothing happens.. it just remains saying 'Ondertitels downloaden'. What can i do?

I'd really appreciate some help!


- amet - 2012-01-26

RobinBolscher Wrote:Hello,

I have a question, i've been searching around the internet but i can't find an answer..
I have set up my XBMC Subtitle, but it won't download any subs, doenst matter what provider. When I click on a certain sub it says 'Ondertitels downloaden' in dutch. And than nothing happens.. it just remains saying 'Ondertitels downloaden'. What can i do?

I'd really appreciate some help!

We need the debug log please, my signature has how to


Update on Sratim and subscenter issues - voguemaster - 2012-01-27

Well, mostly subscenter :-)

I found out that for some reason, the key is not added to the download URL in subscenter's service.py in function download_subtitles.

The subscenter site requires this key (which the addon successfully parses) in order to DL the zip file. I patched it to test if it helps but I regret to report that there is still a problem, this time I think with the target file name.

(the target filename if I can understand the code correctly is the movieFullPath variable that is initialized in the addon's gui.py script).

Here is an attached log with the key patch. The subtitle is downloaded and extracted correctly:

PHP Code:
**** log removed, use pastebin**** 

(i've added the ===== debug prints...)

I think the movie path we get from the player is invalid for use with the add-on when we stream from icefilms.


- amet - 2012-01-27

voguemaster Wrote:Well, mostly subscenter :-)

I found out that for some reason, the key is not added to the download URL in subscenter's service.py in function download_subtitles.

The subscenter site requires this key (which the addon successfully parses) in order to DL the zip file. I patched it to test if it helps but I regret to report that there is still a problem, this time I think with the target file name.

(the target filename if I can understand the code correctly is the movieFullPath variable that is initialized in the addon's gui.py script).

Here is an attached log with the key patch. The subtitle is downloaded and extracted correctly:

PHP Code:
**** log removed, use pastebin**** 

(i've added the ===== debug prints...)

I think the movie path we get from the player is invalid for use with the add-on when we stream from icefilms.

You say icefilms, I stop listening Smile


- voguemaster - 2012-01-27

hmm, why ? Are you against icefilms ?


- amet - 2012-01-27

voguemaster Wrote:hmm, why ? Are you against icefilms ?

yes, very much so.