Release - [service.subtitles.opensubtitles]

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
amet Offline
How do ya like them apples?
Posts: 3,952
Joined: Jul 2009
Reputation: 37
Location: Novi Sad / Dubai
Post: #1
here is a thread for any issues/bugs and improvements for service.subtitles.opensubtitles

all other non related issues will be removed.

please read http://forum.xbmc.org/showthread.php?tid=180265 and HOW-TO:Setup subtitle services for how-to setup new services on Gotham

cheers,
amet


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
zambo Offline
Junior Member
Posts: 24
Joined: Jan 2014
Reputation: 0
Post: #2
is subs will be fixed.since when it says it downloading and then it would not show up on the video?
gotham13
(This post was last modified: 2014-03-14 06:22 by zambo.)
find quote
amet Offline
How do ya like them apples?
Posts: 3,952
Joined: Jul 2009
Reputation: 37
Location: Novi Sad / Dubai
Post: #3
Debug Log, crystal ball ain't working


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
limdul Offline
Junior Member
Posts: 2
Joined: May 2011
Reputation: 0
Location: Denmark
Post: #4
Current error on service.subtitles.opensubtitles, been there for a few days:

on openelec gotham beta2 build

Code:
23:55:50 T:140428045977408   DEBUG: New Service [service.subtitles.opensubtitles]
23:55:50 T:140426322032384   DEBUG: StartScript - calling plugin OpenSubtitles.org('plugin://service.subtitles.opensubtitles/','37','?action=search&languages=Danish%2cEnglish')
23:55:50 T:140426322032384   DEBUG: WaitOnScriptResult - waiting on the OpenSubtitles.org (id=103) plugin...
23:55:50 T:140426200413952  NOTICE: Thread LanguageInvoker start, auto delete: false
23:55:50 T:140426200413952    INFO: initializing python engine.
23:55:50 T:140426200413952   DEBUG: CPythonInvoker(103, /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py): start processing
23:55:50 T:140426200413952  NOTICE: -->Python Interpreter Initialized<--
23:55:50 T:140426200413952   DEBUG: CPythonInvoker(103, /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py): the source file to load is /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py
23:55:50 T:140426200413952   DEBUG: CPythonInvoker(103, /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py): setting the Python path to /storage/.xbmc/addons/service.subtitles.opensubtitles:/storage/.xbmc/addons/script.module.bigpictures/lib:/storage/.xbmc/addons/script.module.chardet/lib:
/storage/.xbmc/addons/script.module.simplejson/lib:/storage/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:
/storage/.xbmc/addons/script.common.plugin.cache/lib:/storage/.xbmc/addons/script.module.unidecode/lib:/storage/.xbmc/addons/script.module.simple.downloader/lib:
/storage/.xbmc/addons/script.grab.fanart/default.py:/storage/.xbmc/addons/script.module.requests/lib:/storage/.xbmc/addons/script.module.buggalo/lib:
/storage/.xbmc/addons/script.module.mechanize/lib:/usr/share/xbmc/addons/xbmc.debug/:/storage/.xbmc/addons/script.module.parsedom/lib:
/storage/.xbmc/addons/script.module.xbmcswift2/lib:/storage/.xbmc/addons/script.module.elementtree/lib:/storage/.xbmc/addons/script.module.requests2/lib:
/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:
/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib/python2.7/site-packages/gtk-2.0
23:55:50 T:140426200413952   DEBUG: CPythonInvoker(103, /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py): entering source directory /storage/.xbmc/addons/service.subtitles.opensubtitles
23:55:50 T:140426200413952   DEBUG: CPythonInvoker(103, /storage/.xbmc/addons/service.subtitles.opensubtitles/service.py): instantiating addon using automatically obtained id of "service.subtitles.opensubtitles" dependent on version 2.1.0 of the xbmc.python api
23:55:50 T:140426200413952   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/service.subtitles.opensubtitles/service.py", line 25, in <module>
                                                shutil.rmtree(__temp__)
                                              File "/home/stephan/projects/openelec-4.0/build.OpenELEC-Generic.x86_64-3.95.2/Python-2.7.3/.install_pkg/usr/lib/python2.7/shutil.py", line 239, in rmtree
                                              File "/home/stephan/projects/openelec-4.0/build.OpenELEC-Generic.x86_64-3.95.2/Python-2.7.3/.install_pkg/usr/lib/python2.7/posixpath.py", line 71, in join
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
                                            -->End of Python script error report<--
23:55:50 T:140428045977408   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
23:55:50 T:140426200413952    INFO: Python script stopped
23:55:50 T:140426200413952   DEBUG: Thread LanguageInvoker 140426200413952 terminating
23:55:50 T:140426322032384   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
23:55:50 T:140426322032384   ERROR: GetDirectory - Error getting plugin://service.subtitles.opensubtitles/?action=search&languages=Danish%2cEnglish

Full log: http://xbmclogs.com/show.php?id=150016
(This post was last modified: 2014-03-16 01:19 by limdul.)
find quote
zambo Offline
Junior Member
Posts: 24
Joined: Jan 2014
Reputation: 0
Post: #5
well gotham 13 beta 2 has fixed all the problems with subtitle finally.using confluence skin.
thanks to amet for his hard work in fixing this issue .
open subtitle is working very good now.all subtitles is showing up.
i have nothing to complain about.but thanks for awonderful job
(This post was last modified: 2014-03-18 06:24 by zambo.)
find quote
Novin Offline
Senior Member
Posts: 222
Joined: Dec 2005
Reputation: 0
Location: Helsingborg, Sweden
Post: #6
When you search for subtitles, an abbreviation is used, cc = closed captions. I don't really understand what it means in this context though?

IMHO closed captions = captions that you have to enable, as opposed to open captions that is always shown. But, in this scenario, all subtitles has to be enabled to be shown?

Since Gotham, I usually have to do the subtitle download several times before it succeeds.

A log where it took several attempts before suceeding

http://xbmclogs.com/show.php?id=162387

Also, at the end, it shows that it cannot be saved. This is also something new, haven't had this issue before. I can write to that directory in any way w/o problems.
(This post was last modified: 2014-03-30 20:58 by Novin.)
find quote
limdul Offline
Junior Member
Posts: 2
Joined: May 2011
Reputation: 0
Location: Denmark
Post: #7
(2014-03-30 20:47)Novin Wrote:  When you search for subtitles, an abbreviation is used, cc = closed captions. I don't really understand what it means in this context though?

I find that the CC subtitles normally include audio effects too, like *door slams* or *music plays*
find quote
Novin Offline
Senior Member
Posts: 222
Joined: Dec 2005
Reputation: 0
Location: Helsingborg, Sweden
Post: #8
(2014-03-30 21:15)limdul Wrote:  
(2014-03-30 20:47)Novin Wrote:  When you search for subtitles, an abbreviation is used, cc = closed captions. I don't really understand what it means in this context though?

I find that the CC subtitles normally include audio effects too, like *door slams* or *music plays*

Aha okey, thanks. Hope you noticed that I added additional stuff to my previous post.

Rgds
find quote
Novin Offline
Senior Member
Posts: 222
Joined: Dec 2005
Reputation: 0
Location: Helsingborg, Sweden
Post: #9
(2014-01-12 07:17)amet Wrote:  here is a thread for any issues/bugs and improvements for service.subtitles.opensubtitles

all other non related issues will be removed.

please read http://forum.xbmc.org/showthread.php?tid=180265 and HOW-TO:Setup subtitle services for how-to setup new services on Gotham

cheers,
amet

Hi, please check the second part of this post http://forum.xbmc.org/showthread.php?tid...pid1667819 for problem description + log. To verify that XBMC can actually write in the directory, I opened up this episode in the File Manager from within XBMC and renamed, deleted etc. without problems.
find quote
joorus Offline
Junior Member
Posts: 3
Joined: Apr 2014
Reputation: 0
Post: #10
First of all, thanks amet for your hard work all these years. Most (if not all) xbmc's international users (that is, no-native english speakers) owe you big time.

I've never posted any bug for the (i guess) soon to be deprecated XBMC subtitles Add-on. But right now I'm having the following issue with the opensubtitles service on Gotham Beta 3 (OpenElec 3.95.3)

Code:
14:44:56 T:2736780368  NOTICE: Thread LanguageInvoker start, auto delete: false
14:44:57 T:2736780368  NOTICE: -->Python Interpreter Initialized<--
14:44:59 T:2736780368   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the fol
lowing error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'ascii' codec can't decode byte 0xc3 in position 54: or
dinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/service.subtitles.opensubtitles/service.p
y", line 25, in <module>
                                                shutil.rmtree(__temp__)
                                              File "/home/stephan/projects/openelec-4.0/build.OpenELEC-RPi.arm-3.95
.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/shutil.py", line 239, in rmtree
                                              File "/home/stephan/projects/openelec-4.0/build.OpenELEC-RPi.arm-3.95
.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/posixpath.py", line 71, in join
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 54
: ordinal not in range(128)
                                            -->End of Python script error report<--
14:44:59 T:2828973136   ERROR: GetDirectory - Error getting plugin://service.subtitles.opensubtitles/?action=search
&languages=English%2cSpanish%20(Argentina)
14:45:03 T:2794251344  NOTICE: COMXPlayer::OnExit()
14:45:03 T:2794251344  NOTICE: OMXPlayer: closing audio stream
14:45:03 T:2794251344  NOTICE: Closing audio stream
14:45:03 T:2745168976  NOTICE: thread end: OMXPlayerAudio::OnExit()
14:45:03 T:2794251344  NOTICE: OMXPlayer: closing video stream

Seems to be an issue with my locally installed Python libraries. But I actually didn't have any time at hand to look into the code. So I don't know for sure Huh.

Could be the 'languages' string the problem, as it has non-alphabetical characters?

I'm willing to do some debugging if needed. Thanks Big Grin

PS: Sorry if I've posted this in the wrong thread.
find quote
Novin Offline
Senior Member
Posts: 222
Joined: Dec 2005
Reputation: 0
Location: Helsingborg, Sweden
Post: #11
Joorus, why soon deprecated?
find quote
unbrained Offline
Junior Member
Posts: 2
Joined: Apr 2014
Reputation: 0
Post: #12
Just change line 22 from:
__temp__ = xbmc.translatePath( os.path.join( __profile__, 'temp') ).decode("utf-8")
to:
__temp__ = xbmc.translatePath( os.path.join( __profile__, 'temp') )

Not sure if it's the correct solution, just tried and it worked Smile
(This post was last modified: 2014-04-07 15:19 by unbrained.)
find quote
joorus Offline
Junior Member
Posts: 3
Joined: Apr 2014
Reputation: 0
Post: #13
Thanks. I'll give it a try
find quote
unbrained Offline
Junior Member
Posts: 2
Joined: Apr 2014
Reputation: 0
Post: #14
and line 68:
subtitle = os.path.join(__temp__,filename.decode("utf-8"))
to:
subtitle = os.path.join(__temp__,filename)

It was failing when the name of the subtitle file had special characters
find quote
zambo Offline
Junior Member
Posts: 24
Joined: Jan 2014
Reputation: 0
Post: #15
I am getting error message on open subtitle on frodo 12.3.is there anyghing wrong eith the subtitle for opdn subtile on frodo 12.3
find quote
Post Reply