[RELEASE] Sublight ("video") plugin - Download subtitles from Sublight website
Sora
Junior Member Posts: 35 Joined: Dec 2008 Reputation: 0 |
2009-05-18 20:46
Post: #11
Very cool Dan Dare. I'm going to check it out when I have time.
|
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-19 02:18
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... 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... Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-19 02:48
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...
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
macofaco
Sublight Admin Posts: 27 Joined: Jan 2009 Reputation: 4 |
2009-05-19 18:44
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. |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-19 20:18
Post: #15
Thanks macofaco! pretty detailed, and quick I must say :-)
Shouldn't though the MD5 only be 16 chars long?! Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
macofaco
Sublight Admin Posts: 27 Joined: Jan 2009 Reputation: 4 |
2009-05-19 20:38
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). |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-20 02:08
Post: #17
Thanks macofaco, works much better now!
@all Just uploaded version 1.1, please let me know how does it work for you. Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
Sora
Junior Member Posts: 35 Joined: Dec 2008 Reputation: 0 |
2009-05-20 10:22
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
Skilled Python Coder Posts: 1,327 Joined: Feb 2008 Reputation: 27 Location: Netherlands |
2009-05-20 11:35
Post: #19
I get a "Scripts Error" with every try. If I have some time I'll enable error logging and post the result.
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
Fan Joined: Feb 2009 Reputation: 15 |
2009-05-20 12:59
Post: #20
Ver. 1.1 also crash and restart XBMC all the time on Linux
debug log: http://xbmc.pastebin.com/m4d7c5cbc |
| find quote |


Search
Help