Skip to content
David Emanuel Santiago edited this page Aug 27, 2013 · 2 revisions

Perl

You'll need to install a perl interpreter in your machine. You can find perl for windows here. If you have any problem or issue when installing perl, please report them to provider.

Perl dependencies

It's probable that you may need to install some perl libraries. The perl libraries that you need to install are:

  • LWP

All the other required modules are provided in the core.

#Installation

  1. Copy the subdl.pl file to any folder you want.
  2. Create a text file and give it the name "upload_subtitles.bat"
  3. Edit the file you just create and add the following content:

dir /b /s "%CD%*.srt" | perl -e "print 'perl <CHANGE_THIS>\subdb.pl'; while(<>){chomp; print '"'.$_.'" '; }" > upload_subtitles_temp.bat

%CD%\upload_subtitles_temp.bat

del %CD%\upload_subtitles_temp.bat

Change the tag <CHANGE_THIS> to the folder where you put the subdl.pl file (step 1)

  1. Create a text file and give it the name "download_subtitles.bat"
  2. Edit the file you just create and add the following content:

dir /b /s "%CD%*.avi" | perl -e "print 'perl <CHANGE_THIS>\subdb.pl'; while(<>){chomp; print '"'.$_.'" '; }" > download_subtitles_temp.bat

%CD%\download_subtitles_temp.bat

del %CD%\download_subtitles_temp.bat

Change the tag <CHANGE_THIS> to the folder where you put the subdl.pl file (step 1)

  1. Put the download_subtitles.bat and the upload_subtitles.bat files in the path on the environment variables.

  2. Now everytime you want to upload a srt file or download a subtitle for your avi file, just right click + Shift key and choose "Open Command Window Here". Now you can run the commands download_subtitles.bat or upload_subtitles.bat

Disclaimer

I don't have a windows machine at home, so this instruction probably it will not be 100% right. For any question/complain just e-mail me or edit this wiki. ;-)

Clone this wiki locally