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

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Sora Offline
Junior Member
Posts: 35
Joined: Dec 2008
Reputation: 0
Post: #11
Very cool Dan Dare. I'm going to check it out when I have time.
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #12
You're welcome, Sora, but it's very likely it will lock-up for you as well.

Just tried it on Xbox and Windows and it locks most of the time when it plays the video to get the total time... Blush

I'm afraid we'll need to wait for macofaco's enhancement - until then I'll try to replicate it an maybe file a bug report or something...
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #13
Hmmm, seems to only lock when the Player() object is called from the imported sublight_utils.py, if I move that directly in the sublight_search.py script, it almost doens't lock up at all...
find quote
macofaco Offline
Sublight Admin
Posts: 27
Joined: Jan 2009
Reputation: 4
Post: #14
I already managed to implement method GetFullVideoHash. It receives session and partial video hash (MD5 hash, it must be 32 characters long, more details http://www.subtitles-on.net/?id=6).

Method returns true on success, otherwise false (parameter GetFullVideoHashResult). Method also returns full hash which you can use in Search method (parameter bestMatchVideoHash). If method fails you also receive error description (parameter error).

Note: if there is no hash yet in database method returns true and bestMatchVideoHash is empty! False is returned only on errors!

Web service url: http://www.subtitles-on.net/SublightUtility.asmx
Method "GetFullVideoHash" details: http://www.subtitles-on.net/SublightUtil...lVideoHash
WSDL: http://www.subtitles-on.net/SublightUtility.asmx?WSDL

If you have additional questions please ask.

Sublight - subtitle search utility
http://www.subtitles-on.net
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #15
Thanks macofaco! pretty detailed, and quick I must say :-)

Shouldn't though the MD5 only be 16 chars long?!
find quote
macofaco Offline
Sublight Admin
Posts: 27
Joined: Jan 2009
Reputation: 4
Post: #16
MD5 hash is 16 bytes long but because it is binary I convert it to hexadecimal string (every byte is converted to two hexadecimal characters).

For example:

Byte 0Xd5 is converted to string "d5" (two bytes), 0xff is converted to string "ff", and so on. This is also demonstrated in http://www.subtitles-on.net/?id=6 where you can see that 16 byte MD5 hash is represented as "18d5d8c1747b005aaa2800a18e81de97" (32 human readable characters).

Sublight - subtitle search utility
http://www.subtitles-on.net
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #17
Thanks macofaco, works much better now!

@all
Just uploaded version 1.1, please let me know how does it work for you.
find quote
Sora Offline
Junior Member
Posts: 35
Joined: Dec 2008
Reputation: 0
Post: #18
I just have it a try with a bunch of well know movies and it always gets zero results. Any idea?
find quote
Bram77 Offline
Skilled Python Coder
Posts: 1,327
Joined: Feb 2008
Reputation: 27
Location: Netherlands
Post: #19
I get a "Scripts Error" with every try. If I have some time I'll enable error logging and post the result.

[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
queeup Online
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #20
Ver. 1.1 also crash and restart XBMC all the time on Linux Sad
debug log:
http://xbmc.pastebin.com/m4d7c5cbc
find quote
Post Reply