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)



- amet - 2010-09-30

gfjardim Wrote:I'm having problems with the "rem_files" function in Windows Vista 32bits. When a file or a folder have non-ascii characters, shutil.rmtree fail to remove them.

It's probably a issue with the Python version that comes with XBMC, so I see no easy workaround. Sad

1.8.8 doesn't fix this issue?


- gfjardim - 2010-09-30

Amet Wrote:1.8.8 doesn't fix this issue?

Not here. If I remove the "try" clause, this error appear:

Code:
14:24:45 T:5924 M:1241722880    INFO: -->Python script returned the following error<--
14:24:45 T:5924 M:1241722880   ERROR: Error Type: exceptions.OSError
14:24:45 T:5924 M:1241722880   ERROR: Error Contents: (2, 'No such file or directory', 'C:\\Users\\Guilherme\\AppData\\Roaming\\XBMC\\cache\\sub_tmp\\Glee.S02E02.HDTV.XviD-LOL\\M\xc3\xbasicas Ingl\xc3\xaas\\Glee.S02E02.720p.HDTV.X264-DIMENSION.srt')



- amet - 2010-09-30

gfjardim Wrote:Not here. If I remove the "try" clause, this error appear:

Code:
14:24:45 T:5924 M:1241722880    INFO: -->Python script returned the following error<--
14:24:45 T:5924 M:1241722880   ERROR: Error Type: exceptions.OSError
14:24:45 T:5924 M:1241722880   ERROR: Error Contents: (2, 'No such file or directory', 'C:\\Users\\Guilherme\\AppData\\Roaming\\XBMC\\cache\\sub_tmp\\Glee.S02E02.HDTV.XviD-LOL\\M\xc3\xbasicas Ingl\xc3\xaas\\Glee.S02E02.720p.HDTV.X264-DIMENSION.srt')

thats what I meant, 1.8.8 has try/except so that script wont fail. indeed its not a proper fix.

"C:\\Users\\Guilherme\\AppData\\Roaming\\XBMC\\cache\\sub_tmp\\Glee.S02E02.HDTV.XviD-LOL\\M\xc3\xbasicas Ingl\xc3\xaas\\Glee.S02E02.720p.HDTV.X264-DIMENSION.srt"

what is the exact folder name so that I can try and reproduce?


- gfjardim - 2010-09-30

"Músicas Inglês" and "Músicas Português".


- deraaij - 2010-09-30

mr_blobby Wrote:Thanks.
So it looks like the copy action of the file from the temporary location to the final location goes wrong. Since you state that the destination is writeable, there must be something else that is causing the problem.
I'll see if we can add some more error handling so we know exactly why the file copy fails.
As a fail-back we can always use the subtitle from the temporary location, but then it will be gone when you start the episode again or when you download another subtitle.

Looks like it has something to do with the NAS, when i put the same folder on my HTPC hdd it works...

drwxrwxrwx 2 root root 4096 Sep 27 04:41 Family Guy S09
drwxrwxrwx 2 root root 4096 Sep 27 02:41 Family Guy S09

although the rights are the same. Maybe it has something to do with samba?


- mr_blobby - 2010-09-30

deraaij Wrote:Looks like it has something to do with the NAS, when i put the same folder on my HTPC hdd it works...

drwxrwxrwx 2 root root 4096 Sep 27 04:41 Family Guy S09
drwxrwxrwx 2 root root 4096 Sep 27 02:41 Family Guy S09

although the rights are the same. Maybe it has something to do with samba?
Maybe the samba permissions are set too tight?
Look for the difference and interaction between samba and filesystem permissions: http://www.cyberciti.biz/tips/how-do-i-set-permissions-to-samba-shares.html


- deraaij - 2010-09-30

mr_blobby Wrote:Maybe the samba permissions are set too tight?
Look for the difference and interaction between samba and filesystem permissions: http://www.cyberciti.biz/tips/how-do-i-set-permissions-to-samba-shares.html

It's like this: (default synology)

[Series]
invalid users=nobody,nobody
valid users=nobody,@Collegue,@Admin,XBMC,nobody
comment=""
path=/volume1/Series
guest ok=no
browseable=yes
ftp disable list=no
ftp disable modify=no
ftp disable download=no
read list=nobody,@Collegue,nobody
write list=nobody,@Admin,XBMC,nobody
writeable=no


- deraaij - 2010-10-01

BTW:

If I connect to the same samba share with CIFS it does work, any idea?


- mr_blobby - 2010-10-01

deraaij Wrote:BTW:

If I connect to the same samba share with CIFS it does work, any idea?
I'm confused.
From what I understand of this wikipedia article: SMB = CIFS and Samba is SMB on Unix.
So what do you mean exactly?


- deraaij - 2010-10-01

mr_blobby Wrote:I'm confused.
From what I understand of this wikipedia article: SMB = CIFS and Samba is SMB on Unix.
So what do you mean exactly?

The difference is adding a source via samba in xbmc or including a line like cifs | //deraaijnas/Series | /storage/tvshows | username=XBMC,password=XXXX in netmount.conf. (it is mounted)

IF i use the first one the plugin isn't working if i test it using the second one it does work.


- deraaij - 2010-10-01

BTW the solution subscribed above only works for bierdopje,

with sublight.si and ondertitel i get an error regardless of the way i browse my movies / series. xbmc.log: http://pastebin.com/xZMMsebn

most important part:
Code:
[Ondertitel subtitle service]: Saving subtitles to 'special://temp/sub_tmp/zipsubs.zip'
[Ondertitel subtitle service]: Failed to save subtitles to 'special://temp/sub_tmp/zipsubs.zip'
[Ondertitel subtitle service]: Subtitles saved to 'special://temp/sub_tmp/zipsubs.zip'

ERROR: Error Contents: (2, 'No such file or directory', 'special://temp/sub_tmp/zipsubs.zip')
INFO: -->End of Python script error report<--

the actual file in temp/sub_tmp is called for instance: tmp_su.b64

Sorry for all my posts but this plugin is so cool if it works Smile


- amet - 2010-10-01

deraaij Wrote:BTW the solution subscribed above only works for bierdopje,

with sublight.si and ondertitel i get an error regardless of the way i browse my movies / series. xbmc.log: http://pastebin.com/xZMMsebn

most important part:
Code:
[Ondertitel subtitle service]: Saving subtitles to 'special://temp/sub_tmp/zipsubs.zip'
[Ondertitel subtitle service]: Failed to save subtitles to 'special://temp/sub_tmp/zipsubs.zip'
[Ondertitel subtitle service]: Subtitles saved to 'special://temp/sub_tmp/zipsubs.zip'

ERROR: Error Contents: (2, 'No such file or directory', 'special://temp/sub_tmp/zipsubs.zip')
INFO: -->End of Python script error report<--

the actual file in temp/sub_tmp is called for instance: tmp_su.b64

Sorry for all my posts but this plugin is so cool if it works Smile


you are using external python2.6... scripts/addons have some issues with it


- deraaij - 2010-10-01

Amet Wrote:you are using external python2.6... scripts/addons have some issues with it

Thnx!

Sorry for asking but is it possible to make it compliant with 2.6?

Regards,

Mark


- StefanM - 2010-10-02

Anyone else also got bug with Subtitles XBMC? When choosing subtitles XBMC in OSD it returns to add ons settings in skin menu. I am using Night skin!


- amet - 2010-10-02

deraaij Wrote:Thnx!

Sorry for asking but is it possible to make it compliant with 2.6?

Regards,

Mark

Once xbmc is on 2.6 it will be made compatible