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

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
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,054
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,054
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
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #75
I trust you Smile just hope someone find Linux crash reason.
find quote
MarcosX Offline
Junior Member
Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #76
@Dan

I think the plugin have to work the same way of IMDB scrappers.

Reading the XBMCs document is suggested to use filaneme = MOVIE NAME (YEAR) or TVSHOW - SxxExx

The XBMC automatically retrieves the informantion from IMDB.

Why not use with the same way ? Get movie name and set MOVIE parm. Get Year and set Year parm.

In case not found , open the dialog to change the criteria.

In future, why not start the process automatic like the scrappers IMDB?
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #77
@MarcosX
That might work, thanks, I'll see if that logic can be accessed from Python - I wouldn't like to rewrite all that logic again in Python.
find quote
w3__ Offline
Senior Member
Posts: 146
Joined: Jul 2008
Reputation: 0
Post: #78
This works on Xbox or not?
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #79
@w3__
Do you want me to come over and try it on your xbox? Smile Works fine on mine...
find quote
Jaco2k Offline
Senior Member
Posts: 111
Joined: Mar 2009
Reputation: 0
Post: #80
What about the Linux fix? Wink Any plans/estimate for that?
find quote
Post Reply