Kodi Community Forum
OpenSubtitles.org downloader script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: OpenSubtitles.org downloader script (/showthread.php?tid=31499)

Pages: 1 2 3 4 5 6 7 8


- abusharif - 2009-04-01

abusharif Wrote:Great, thanks a lot Smile
Hmm, unfortunately it didn't help.
Script is now terminating with another error so I guess its one step ahead from last time.

Here is pastebin if anyone has a clue Smile

http://xbmc.pastebin.com/m3794bae6


- abusharif - 2009-04-01

abusharif Wrote:Hmm, unfortunately it didn't help.
Script is now terminating with another error so I guess its one step ahead from last time.

Here is pastebin if anyone has a clue Smile

http://xbmc.pastebin.com/m3794bae6

I used xbmc.translatePath instead and it works now. Don't know anything about python so this was easy way out Smile

Change to lines 15 and 16 in resources/lib/utilities.py

Code:
BASE_DATA_PATH = xbmc.translatePath(os.path.join( "T:/script_data", __scriptname__ ))
BASE_SETTINGS_PATH = xbmc.translatePath(os.path.join( "P:/script_data", __scriptname__ ))

...and my favorite plugin is up and running again yaay


- abusharif - 2009-04-01

Unpacking of subtitles into Video Directory is also broken in newer builds.
It downloads the subtitles into "sub dir" you choose under settings, but doesnt unpack into Video directory.

For me it worked to edit line 127 in resources\lib\gui.py

and change

Code:
un.extract( os.path.join( local_path, filename ), local_path )

to
Code:
un.extract( xbmc.translatePath(os.path.join( local_path, filename )), local_path )

Now it extracts to correct video folder as well.


- tikkiew - 2009-04-20

can there also be seach by typing the name of movie/tv serie instead of only search by file.


- greatant1337 - 2009-04-21

Image

I'm half-done making a skin for this that will work for everyone.

I envisaged the script possibly behaving like XBMC Lyrics does in MC360 (not sure about PM3); opening from the in-video OSD like you would the playlist or video settings. It would find subtitles for the video you're currently watching.

EDIT: Just tried this out with a video open, and it did automatically try find the subtitles.
But, for some reason I don't think the correct file name got passed to the search. It displayed the letter 'i' wherever the file name should have been and didn't work.


- Bram77 - 2009-04-21

Yeah! That sounds great!


- tikkiew - 2009-04-21

i actually mean something different.
why i want typing search engine instead of file search.
For example you are watching a online stream of a movie on xbmc.
If you want the subs for that with opensubtile script isn't possible now.
Cuase it will search for file(size and name).
instead i want to type the movie title or somehow else that display the subtitles.
can this be possible?


- Talle - 2009-04-24

greatant1337 Wrote:Image

I'm half-done making a skin for this that will work for everyone.

I envisaged the script possibly behaving like XBMC Lyrics does in MC360 (not sure about PM3); opening from the in-video OSD like you would the playlist or video settings. It would find subtitles for the video you're currently watching.

EDIT: Just tried this out with a video open, and it did automatically try find the subtitles.
But, for some reason I don't think the correct file name got passed to the search. It displayed the letter 'i' wherever the file name should have been and didn't work.

THIS WOULD BE VERY NICE TO HAVE!!!!!!!!!!

Is there an test build I could try? (full build)
Will it work for Windows? (XP)
Will it work with networkdevices?
Will it work with Aeon Auriga?

Sincerly

//Talle


- greatant1337 - 2009-04-24

It's just a skin for the already available OpenSubtitles script.

- Yes, it will work with Windows and all other platforms that can use OpenSubtitles.
- network devices - Not anymore than the script already does.
- No, it is based on MC360 and thus references image files that Aeon won't have.


- greatant1337 - 2009-04-24

http://www.turboupload.com/2a9sy6mazj75/OpenSubtitles_MC360_Skin.zip.html

And there it is. Not sure how it'll go with widescreen or 720/1080.
Put these in your /Skins/MC360/ directory.


- wattazoum - 2009-04-24

Thanks a lot greatant1337 for this work.
I'll test is also.

By the way, where do you host the source code? It migth be useful that you do it on XBMC-addons so that users can get it and give you some feedback.

Can someone upload it to a site that provides links on port 80 ? eg. http://www.mediafire.com/


- Bram77 - 2009-04-24

If someone with some insight in how the skinning engine works could try and figure out a way to make this work for Aeon, that would result in a lot of gratitude from my side Smile


- greatant1337 - 2009-04-24

http://www.mediafire.com/?sharekey=8bfe260fd5957ee06787958b30ba2140e04e75f6e8ebb871

Bram77, if I had an HD display of some kind, or even a widescreen display I'd be able to give it a go, but unfortunately I don't.


- Talle - 2009-04-24

Bram77 Wrote:If someone with some insight in how the skinning engine works could try and figure out a way to make this work for Aeon, that would result in a lot of gratitude from my side Smile

me to!!!!


- Bram77 - 2009-04-24

greatant1337 Wrote:http://www.mediafire.com/?sharekey=8bfe260fd5957ee06787958b30ba2140e04e75f6e8ebb871

Bram77, if I had an HD display of some kind, or even a widescreen display I'd be able to give it a go, but unfortunately I don't.

I'm running Aeon on a 16:9 widescreen PAL television, thus no HD.
You could simply run XBMC on your computer (Windows or Linux) in 720p configuration (windowed) Smile. I've been hoping for Opensubtitles supprt integration in XBMC for a long time. A lot of people have requested it. It would be fantastic if it could be integrated in XBMC without the need for a script. But you're offering an exelent alternative!