@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.
[RELEASE] Sublight ("video") plugin - Download subtitles from Sublight website
MarcosX
Junior Member Posts: 6 Joined: Jun 2009 Reputation: 0 |
|
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-06-09 23:26
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... Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
MarcosX
Junior Member Posts: 6 Joined: Jun 2009 Reputation: 0 |
2009-06-10 20:22
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
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-06-10 20:32
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? Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
queeup
Fan Joined: Feb 2009 Reputation: 15 |
2009-06-10 23:42
Post: #75
I trust you
just hope someone find Linux crash reason.
|
| find quote |
MarcosX
Junior Member Posts: 6 Joined: Jun 2009 Reputation: 0 |
2009-06-11 03:57
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
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-06-11 12:49
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. Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
w3__
Senior Member Posts: 146 Joined: Jul 2008 Reputation: 0 |
2009-06-16 04:00
Post: #78
This works on Xbox or not?
|
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-06-16 19:07
Post: #79
@w3__
Do you want me to come over and try it on your xbox? Works fine on mine...
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
Jaco2k
Senior Member Posts: 111 Joined: Mar 2009 Reputation: 0 |
2009-06-16 19:57
Post: #80
What about the Linux fix?
Any plans/estimate for that?
|
| find quote |

just hope someone find Linux crash reason.
Any plans/estimate for that?
Search
Help