XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Plugin/Script (Python) Help and Support

Plugin/Script (Python) Help and Support Python requests/suggestions, support, bugs, and everything python goes in here!
Please, add platform prefix to threads that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", and "[WINDOWS]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2009-04-27, 00:28   #1
Dan Dare
http://www.xbmc4xbox.org/
 
Dan Dare's Avatar
 
Join Date: Sep 2004
Posts: 1,012
Dan Dare has a spectacular aura aboutDan Dare has a spectacular aura about
Thumbs up [RELEASE] OpenSubtitles v1.1 (video) Plugin

"Video" plugin to download subtitles from OpenSubtitles.org.

Not a full replacement for OpenSubtitles script, as it doesn't support a lot of things, like searching for subtitles for a movie while playing and all that, I wanted to write this as a plugin as I found Leo's script locking sometimes on Xbox and man , I banged my head today against a slow OpenSubtitles.org, failing a lot, but I think I handled most of the cases where it cannot connect, login and all that...

I haven't decided whether to leave it as a "video" plugin, I was thinking it might be easier to access if it's close to video sources, but I'm just thinking now that maybe if it's a program plugin, that allows you to download a subtitles, go straight back to main menu leaving the plugin open, go to video sources, try it on and then if it doesn't work properly, get back into the still open plugin program and try another one without going through the whole process again... Anyways, waiting on feedback on that one...

Download:
Screenshots:
Changes
  • v1.3 (18 September 2009):
    - [xbox] if subtitle filename including language is too long, try again without language;

  • v1.2 (5 July 2009):
    - add "Search for playing movie";
    - add language to the subtitle file name;

  • v1.1 (31 May 2009):
    - allow to choose prefered subtitle language(s);
    - allow to choose subtitles destination (movie directory or XBMC custom directory);
    - rename subtitle(s) to match video file(s);
    - enhance results list view (number of downloads);
    - better resolution flags;

Last edited by Dan Dare; 2009-09-19 at 01:03.
Dan Dare is offline   Reply With Quote
Old 2009-04-27, 00:52   #2
Bram77
Skilled Python Coder
 
Join Date: Feb 2008
Location: Netherlands
Posts: 878
Bram77 is on a distinguished road
Default

Great, I will test it asap!
Are you aware of Sublight...which might offer another option which could be more reliable then opensubtitles.

http://www.subtitles-on.net/Home.aspx
__________________
XBMControl - topic :: A compact remote XBMC controller for Windows
XBMControl-Evo
- topic :: A mono/glad based remote XBMC controller
XBMCweb :: A Javascript library for use with the new JSON-RPC api (wip)
Xbmc XBOX Skins - topic :: A collection of 'modded for speed' and XBOX capable skins (I'm only maintaining the repo!, credits go to the skins modders and developers)
Bram77 is offline   Reply With Quote
Old 2009-04-27, 02:01   #3
Dan Dare
http://www.xbmc4xbox.org/
 
Dan Dare's Avatar
 
Join Date: Sep 2004
Posts: 1,012
Dan Dare has a spectacular aura aboutDan Dare has a spectacular aura about
Default

@Bram77
I might look into that, thanks.
Dan Dare is offline   Reply With Quote
Old 2009-04-27, 10:38   #4
Sora
Member
 
Join Date: Dec 2008
Posts: 33
Sora is on a distinguished road
Default

It works really well for me, unlike the OpenSubtitles script. I like the fact that it's a plugin. However I do have a few suggestions.

The plugin only sees avi files. It would be nice if it saw mkv files (amongst others, for example ogm) to.

Not really that important and I'm guessing the flag icons are a placeholder anyway but could you replace them with a higher res version? They look extremely blurry and pixelated.

That's it really. You did a great job.
I like the idea of being able to limit the search results based on preferred subtitle language. I hope this will be one of the first things you'll add to the plugin.
I agree there needs to be an easier way to get to the plugin. It would be cool if you could access it form the video OSD but I don't think that's possible.
Last, I couldn't care less for automatic subtitle downloading.

Many thanks.
Sora is offline   Reply With Quote
Old 2009-04-27, 10:59   #5
Talle
Member
 
Join Date: Oct 2008
Location: Stockholm, Sweden
Posts: 75
Talle is on a distinguished road
Default

Quote:
Originally Posted by Sora View Post
The plugin only sees avi files. It would be nice if it saw mkv files (amongst others, for example ogm) to.
Havenīt tried it yet but this will be an issue for me to...

//talle
Talle is offline   Reply With Quote
Old 2009-04-27, 13:18   #6
Dan Dare
http://www.xbmc4xbox.org/
 
Dan Dare's Avatar
 
Join Date: Sep 2004
Posts: 1,012
Dan Dare has a spectacular aura aboutDan Dare has a spectacular aura about
Default

@Sora
Thanks, man, you're welcome.

I only tested with .avis, but that's a good suggestion, I'll see if I can get a full list of video extensions, maybe even get the list from OpenSubtitles, I'll make the change today.

No, I don't think plugins allow that - I think the solution is to ask XBMC Team for a enhancement request to allow to integrate subtitle providers in the movie contextual menu. It would be nice an integrated upload feature in XBMC as well, what the guys from OpenSubtitles suggest, that if you already have a subtitle and you play that for something like 80%, when finished maybe ask the user or automatically upload the subtitle on their website.

For now, the only thing I can do to make it easier is do like OpenSubtitles script does, start the movie, leave it playing in the background then run the plugin and maybe have another plugin menu option or even detect that a video is running, search for subtitles, download one, go back to the movie in full screen, browse for the subtitle & try it one and then repeat the process until you get one right.

I got the flags from OpenSubtitles.org website, they are fairly small indeed and when enlarged they look blurry, I'll see if I can find better ones - if anyone has a web resource, please let me know.
Dan Dare is offline   Reply With Quote
Old 2009-04-27, 14:47   #7
idioteque
Senior Member
 
idioteque's Avatar
 
Join Date: Aug 2008
Posts: 178
idioteque is on a distinguished road
Default

any thought as to do the TV Series subtitels as well:

http://www.tvsubtitles.net/
__________________
MBP late 2009 - TimeCapsule 2TB - Harmony One - WD Green 1TB - 2x 750GB Seagate - AppleTV 320Gb v3.0
idioteque is offline   Reply With Quote
Old 2009-04-27, 15:50   #8
Sora
Member
 
Join Date: Dec 2008
Posts: 33
Sora is on a distinguished road
Default

Maybe this can help.

- XBMC Wiki: Supported container formats

- Flags, Encarta
- Flags by countrie, FOTW
- EU and US flags from Blogpatato

All seem to be free to use.

Last edited by Sora; 2009-04-27 at 15:57.
Sora is offline   Reply With Quote
Old 2009-04-27, 17:03   #9
Dan Dare
http://www.xbmc4xbox.org/
 
Dan Dare's Avatar
 
Join Date: Sep 2004
Posts: 1,012
Dan Dare has a spectacular aura aboutDan Dare has a spectacular aura about
Default

@Sora,
Thanks, helpful links. Encarta flags look good, I found this as well, http://www.33ff.com/flags/world-flags0001.html, plenty to choose from :-)

@idioteque
Pffff, that looks like a bit more work, as I don't see any XML-RPC service like OpenSubtitles.org have, that means there'll be some HTML parsing involved, it looks possible, but I won't commit, sorry...
Dan Dare is offline   Reply With Quote
Old 2009-04-28, 00:10   #10
Talle
Member
 
Join Date: Oct 2008
Location: Stockholm, Sweden
Posts: 75
Talle is on a distinguished road
Default

Hi now Iīve tested it, it says: "unable to login. check your network connection and try again".

Do I need to add my username somewhere?

sincery

//Talle
Talle is offline   Reply With Quote
Reply

Bookmarks

Tags
opensubtitles.org, plugin, plugins, subs, subtitle, subtitles


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:17.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2010, XBMC Project