[Script] Download subtitles on-the-fly

Discuss your Lua playlist, album art and interface scripts.
ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

[Script] Download subtitles on-the-fly

Postby ale5000 » 01 Feb 2010 03:24

Here: http://addons.videolan.org/content/show ... ent=141787

You must put the file in the folder:
- Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
- Windows (current user): %APPDATA%\VLC\lua\extensions\
- Linux (all users): /usr/share/vlc/lua/extensions/
- Linux (current user): ~/.local/share/vlc/lua/extensions/
- Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/

Code: Select all

Notes - Because of internal changes in VLC, the minimum version of VLC required is now: 1.1.0 git - 2010-03-21 - VLC support .rar files but only uncompressed ones - The current version of VLC for Mac OS X doesn't support lua extensions Know issues - The search fail if you click the button two times consecutively Changelog: 1.04 - Updated for the latest GIT build (now almost all lua bugs are fixed) - Bumped the minimum version required - Minor changes 1.03 - Fixed the duplicated names that were appearing in the search - Fixed the empty names that were appearing in the search - Now there is a message when it doesn't find anything - Minor optimizations - Minor fixes 1.02 - Fix for the latest GIT build 1.01 - Changed version schema - Now there isn't any dialog showed by default, you can still open them from the menu - Now it is more clear when the script is working - Added some dlg:flush() that were missing (this fix the elements in the dialog that weren't updated) - Now it catch the fail of vlc.stream - Minor fixes 0.1.8 - Now you can open a new dialog while the previous is still open - Fixed getting title in the new version of VLC - Now using dlg:flush() where appropriate - Workarounded some bugs in VLC IMPORTANT: Now it no longer work on old versions of VLC 0.1.7 - Removed the button "+"; it is useless since the title is updated automatically - The download dialog can now be hidden/showed - Added the "Load from url..." dialog - The code of parse_archive() is now a separate function called by both "Load from url..." and the normal subtitles download dialog. - Minor changes 0.1.6 - Some variables made local - Minor fixes - Added .rar archive support ("stream_filter_rar" is incomplete and can only use one file in the archive, need a fix in VLC) Note: VLC support only uncompressed .rar files
Last edited by ale5000 on 01 Jun 2011 17:00, edited 24 times in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC 1.1

Postby ale5000 » 02 Feb 2010 02:45

Feedback are appreciated :D
Last edited by ale5000 on 01 Mar 2010 02:22, edited 2 times in total.

hector2
Blank Cone
Blank Cone
Posts: 17
Joined: 26 Jan 2010 14:36

Re: [Beta] Script to download subtitles on-the-fly, need VLC 1.1

Postby hector2 » 06 Feb 2010 00:53

Hello,
I tried your extension. seems very kind ! :D
It works fine for me... (linux ubuntu 9.04 + vlc 1.1 beta)
just : i don't really understand the goal of the button "+".
it would maybe be clearer if we knew that no subtitle was found (in fact i was wondering if it worked or not)

that'is it !

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 06 Feb 2010 02:22

it would maybe be clearer if we knew that no subtitle was found (in fact i was wondering if it worked or not)
Fixed.
Last edited by ale5000 on 20 May 2011 05:59, edited 5 times in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 17 Feb 2010 01:25

Edit: post removed
Last edited by ale5000 on 22 Mar 2010 23:49, edited 1 time in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 04 Mar 2010 02:19

Edit: post removed
Last edited by ale5000 on 27 Jan 2011 03:28, edited 1 time in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 05 Mar 2010 02:59

Edit: post removed
Last edited by ale5000 on 27 Jan 2011 03:29, edited 1 time in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 22 Mar 2010 23:46

Updated for the latest GIT build (now almost all lua bugs are fixed)

xpan
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2010 14:42

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby xpan » 15 Jun 2010 14:46

hi,

I downloaded the script. I tried to save it and found out there is not \extensions\ folder in my \lua folder (there are meta, intf, and http folders however). What should I do?

and secondly, how can I see if the script was successfully loaded? How will I use it?

thanks,
Chris

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 15 Jun 2010 15:42

Edit: Post removed
Last edited by ale5000 on 20 May 2011 05:58, edited 1 time in total.

xpan
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2010 14:42

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby xpan » 15 Jun 2010 21:39

Thanks for your prompt reply.

I just checked and I have version 1.0.5 (goldeneye). It is the latest I can get.

I will find version 1.1 and try again.

Thanks again for your answer :)

chase.salva

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby chase.salva » 17 Jun 2010 09:28

I am VLC user since years. I have been looking for lyrics tool in it. Is there any update available to see the lyrics of the song that we play in it? It should not work like subtitles as I know about it already.

sub10
New Cone
New Cone
Posts: 1
Joined: 31 Aug 2010 14:40

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby sub10 » 31 Aug 2010 14:52

the feature is very interesting! thank you!
does the extension save the subs somewhere on computer? where?

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 02 Sep 2010 15:40

It doesn't save the subs, but if you want to download them you can use the links displayed on Tools => Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby Jean-Baptiste Kempf » 04 Sep 2010 11:37

Did it got updated recently?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 04 Sep 2010 21:17

I didn't have time to update it recently but it is still working well.
Last edited by ale5000 on 20 May 2011 06:02, edited 2 times in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby Jean-Baptiste Kempf » 05 Sep 2010 01:48

OK.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kbaggen
New Cone
New Cone
Posts: 1
Joined: 21 Nov 2010 10:08

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby kbaggen » 21 Nov 2010 10:11

Thanks!

This is a nice plugin! Hope you will update and evolve this plugin!

Only negative is it seems I get " a link to "Allscine (France)" and also have to activate the plugin! Would be nice if it was just activated!

My humble feedback for this killer plugin!

Kbaggen

ventus13
New Cone
New Cone
Posts: 1
Joined: 01 Jan 2011 23:52

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ventus13 » 02 Jan 2011 00:11

I've changed some lines of this extension for improve results of the searches of a specific language. Also i have added the number of subtitles that includes the file, in the case that you need a version of two files.

You may get the file in this url:

http://alumnos.elo.utfsm.cl/~msegura/subtitles-mod.lua

Thanks to ale5000

cheers :wink:

thepanz
New Cone
New Cone
Posts: 2
Joined: 02 Jan 2011 21:39

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby thepanz » 02 Jan 2011 21:45

Hi, I've further enhanced the script allowing a *real* subtitle download (it's placed in the same folder of the movie that is being played).
Read and try my script on my blog: http://thepanz.netsons.org/post/vlc-and ... downloader

Regards! :)

skz
New Cone
New Cone
Posts: 1
Joined: 26 Jan 2011 16:18

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby skz » 26 Jan 2011 16:20

Here: http://anonym.to/?http://ale5000.alterv ... es-mod.lua

You must put the file in the folder:
- Linux: ~/.local/share/vlc/lua/extensions/
- Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
- Windows (current user): %APPDATA%\VLC\lua\extensions\
[/code]
Hi, what about Mac Osx? I can't find the dir

thanks!

DawnLight
New Cone
New Cone
Posts: 1
Joined: 26 Jan 2011 15:38

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby DawnLight » 26 Jan 2011 16:56

Dear ones,

Please,

Will this ever be included in main?

Which version should I use?

Blessings,
Shahar

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 27 Jan 2011 03:25

Edit: Post removed
Last edited by ale5000 on 20 May 2011 06:05, edited 1 time in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 27 Jan 2011 03:27

Edit: Post removed
Last edited by ale5000 on 20 May 2011 06:05, edited 1 time in total.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: [Beta] Script to download subtitles on-the-fly, need VLC

Postby ale5000 » 27 Jan 2011 03:28

Hi, what about Mac Osx? I can't find the dir!
I have added the folder on the first post.
Last edited by ale5000 on 20 May 2011 06:06, edited 1 time in total.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 12 guests