Posts: 1
Joined: Feb 2008
Reputation:
0
hi all,
sorry for jumping in late.
i'm not an experienced python developer, i just like messing around with things to make my life easier. one of the most painful parts of my media experience is subtitle downloading for movies and tv shows - hence i thought this script is highly needed.
i'm currently running on linux, so i guess some of the current problems with running the script are related to the switch from linux to xbox. regrettably my xbox has passed away so i can not check the script on it.
i'll describe a little how the script works and i hope someone will be able to fix the xbox related problems.
for the base of the script i used the lyrics script (i looked at undertexter but could not found much help in it) and implemented the osdb xmlrpc interface into it. the idea is the searches are being made through file hashes and not file names. this is a much stronger way of searching for subtitles as the returned subtitles will exactly much the video file you have.
when the script runs it logs into the osdb server (anonymously at first but please register at the site opensubtitles.org/newuser) if a video file is currently being played in the background it will hash it and search the osdb for its subtitles (in order to hash it i access the file so i'm not sure this would work over smb and certainly not sure re split rar files as they are not supported on linux). if no video is playing you can search to select a video file and search for subtitles for it. when you select the subtitle file you want to download it will be downloaded to the subtitle folder set in the settings (might need to change this one as i have some stupid mapping on my system) and then unzipped to it and (if set to true) to the folder where the video file itseld is located in.
thats about it. feel free to ask questions and i might be able to help. feel more than free to make anychanges you see fit to the script as this is a tool which should make our lifes easier (and please, some support from someone running xbox would be highly appreciated).
cheers for now,
leo
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
The now playing file would not matter where it was located, if you just use title.
You can search samba with the browse dialog, so that should not be an issue either.
I included your instructions in the first post. I also changed the script to use the onclick() so it works as expected.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Tuneld, that's enough. If you didn't ask about such things, then obviously it wasn't you i was answering. But either way, stop.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
smuto i committed your additions
leo, please put /flags/ outside the skins folder, so different skins can share.
Thanks guys
Posts: 1,363
Joined: Feb 2008
Reputation:
33
Bram77
Skilled Python Coder
Posts: 1,363
Why is it, that the plugin seems to work for everyone but me.
I'm using the latest T3CH build.
I've tried the script in several directories ("plugins/video", "plugins/programs", "scripts")
I'm using the PMIII skin
All I'm getting is a misplaced screen. Only half of it is showing in the richt lower corner of the screen. A dialog keeps stating "0 items received". When I push the green button I can select a movie. But whichever movie I choose, "hash" fault returns.
What m I doing wrong? The same thing happens, no matter how I run the script.
Posts: 1,363
Joined: Feb 2008
Reputation:
33
Bram77
Skilled Python Coder
Posts: 1,363
I'm running Linux. There is a Linux app to, for OpenSubtitles. But I'd rather use the XBMC plugin! I've been using MediaPortal for a few years and that's something I've really missed. My girlfriend will love the plugin especially because she has a hearing disability.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
it's a script not a plugin
Posts: 1,363
Joined: Feb 2008
Reputation:
33
Bram77
Skilled Python Coder
Posts: 1,363
I've had it running as a script (thrue "scripts", from the "scripts" directory).