[RELEASE] Sublight ("video") plugin - Download subtitles from Sublight website

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #61
@Jaco2k
It should work on Linux as it is, try it on and see how does it work for you.

There is a known issue, logged a XBMC Trac bug ticket as well, see below for more details

http://code.google.com/p/dandar3-xbmc-ad...etail?id=4
find quote
Jaco2k Offline
Senior Member
Posts: 112
Joined: Mar 2009
Reputation: 0
Post: #62
Dan Dare Wrote:@Jaco2k
It should work on Linux as it is, try it on and see how does it work for you.

There is a known issue, logged a XBMC Trac bug ticket as well, see below for more details

http://code.google.com/p/dandar3-xbmc-ad...etail?id=4

Yeps that's about what I am experiencing with a similar setup Sad
So... will follow the trac report and this thread in the hope it gets fixed.

Plugin starts but crashes XBMC when trying to fetch subtitles.
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #63
@Dan

Im having a similar problem of Dora , my xmbc is running on Win XP , last version of XBMC e Sublight Plugin (1.3).

But every time that I search a film a have 2 problem :

1 - I Never find a subtitles
2 - After returns no subtitles freezes XBMC (Looking the code I saw every time that you try to create the OK dialog freezes. I comment and it works without alert that not exist subtitles )

thank in advance
find quote
idioteque Offline
Fan
Posts: 407
Joined: Aug 2008
Reputation: 0
Post: #64
MarcosX Wrote:@Dan

Im having a similar problem of Dora , my XBMC is running on Win XP , last version of XBMC e Sublight Plugin (1.3).

But every time that I search a film a have 2 problem :

1 - I Never find a subtitles
2 - After returns no subtitles freezes XBMC (Looking the code I saw every time that you try to create the OK dialog freezes. I comment and it works without alert that not exist subtitles )

thank in advance

I have the same thing

XBMC freezes and never finds any subtitles (since version 1.1)

MBP late 2009 - TimeCapsule 2TB - Harmony One+ - Readynas NV+ 8TB RAID5 - Mac Mini late 2009 with 10.9.0 and VDA - Panasonic TX-PG420ES -
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #65
@MarcosX
Interesting find, thanks for that. Can you please try with v1.35 - although it might still lock it might be able to find some subtitles though.

Also, can both of you please confirm the XBMC version you're using?
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #66
@Dan

My Installed Version is XBMC_for_Windows-9.04.1-repack

Im travelling now. But I will try the new version tomorrow morning.
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #67
That's I've been using as well on XP SP3, I don't know what to say. Try the version 1.35 as well, produce a debug log (http://wiki.xbmc.org/?title=HOW-TO_submi...Bug_Report), maybe I can work something with that, thanks.
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #68
Same thing with version 1.35 (no subtitles and freezes). Im using XP SP3 too.

At sublight_search.py

#
# No subtitles found...
#
if len(subtitles) == 0 :
#dialog = xbmcgui.Dialog() - Locks here !!
#dialog.ok("Sublight", xbmc.getLocalizedString(30304))

# End of directory...
xbmcplugin.endOfDirectory( handle=int( sys.argv[ 1 ] ), succeeded=False )

I will send the log as soon as possible. My PC´s power supply blows up after test.Sad
find quote
Bram77 Offline
Skilled Python Coder
Posts: 1,373
Joined: Feb 2008
Reputation: 32
Location: Netherlands
Post: #69
Any news on the samba shares problem?

[Image: widget]

Please add to my reputation if you find my posts usefull (+/- button below posts)
Ubuntu 12.10 minimal XBMC auto-install script :: XBMControl :: Xbmc XBOX Skins :: XBMControl for Android :: Owner of Sudo Systems
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #70
@MarcosX
Can you please confirm something for me please? Can you move the xbmcplugin .endOfDirectory() line before the dialog lines and enable those back and see if it locks again? I'm just hoping that might solve the problem. Tip: duck when running the test Smile

@Bram77
No news on that, sorry.
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Star   
Post: #71
@Dan

Worked OK , thanks.

But I cant find a subtitle ? Exist some kind of expression ?

All of my videos are using filename = movie (year).mkv .
Example: Quantum of Solace (2008).mkv

Att.
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #72
Thanks MarcosX, I'll make a change sometime this week, hopefully it will fix the problem on Linux as well...

Check with the Sublight application, if that is able to find your subtitles, might be some sort of a bug in my code, otherwise I can't do much sorry...
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #73
@Dan

I changed code here and now its working ....

in sublight_utils.py

[INDENT]def SearchSubtitles(self, sessionId, videoHash, language1, language2, language3):
# Build request XML...
requestXML = """<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<SearchSubtitles3 xmlns="http://www.subtitles-on.net/">
<session>%s</session>
<videoHash>%s</videoHash>
<title>%s</title>
<year xsi:nil="true" />
<season xsi:nil="true" />
<episode xsi:nil="true" />
<languages>
%s
%s
%s
</languages>
<genres>
<Genre>Movie</Genre>
<Genre>Cartoon</Genre>
<Genre>Serial</Genre>
<Genre>Documentary</Genre>
<Genre>Other</Genre>
<Genre>Unknown</Genre>
</genres>
<rateGreaterThan xsi:nil="true" />
</SearchSubtitles3>
</soap:Body>
</soap:Envelope>""" % (sessionId,
videoHash,
"The Dark Knight",
"<SubtitleLanguage>%s</SubtitleLanguage>" % language1,
( "<SubtitleLanguage>%s</SubtitleLanguage>" % language2, "" ) [ language2 == "None" ],
( "<SubtitleLanguage>%s</SubtitleLanguage>" % language3, "" ) [ language3 == "None" ] )[/INDENT]
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,039
Joined: Sep 2004
Reputation: 146
Post: #74
@MarcosX
You passed in the movie title, but usually the filename is not a clean movie title, try putting as title The Dark Knignt (2008) and you might not get any replies.

The original intention was to add a new entry in the main menu called "search by movie name", where it basically presents you with a keyboard control and asks for the movie title, does the search by name and then asks you where to save the subtitles or save them directly into XBMC custom subtitle not sure.

Now I'm just thiking is that since you've already selected the movie name, maybe when is cannot find a movie using the video hash data, maybe ask you whether you want to search by title and present you with the keyboard with the movie name already in there, you can clean it up or type it again, whichever you prefer (ok, maybe I could do some cleaning up as in replacing dots with spaces and things like that)...

What you guys think?
find quote
queeup Offline
Posting Freak
Posts: 763
Joined: Feb 2009
Reputation: 16
Post: #75
I trust you Smile just hope someone find Linux crash reason.
find quote
Post Reply