Skip to content

Python script to automatically download subtitles for any movie/tv series episode.

License

Notifications You must be signed in to change notification settings

manojmj92/subtitle-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subtitle Downloader

Python script to download english & Arabic subtitles of any movie/tv series episode.

Get the latest version of Python at http://www.python.org/getit/.

Usage:

If you have python in your path, simply drag and drop files and folders you wish to get subtitles from on subtitle-downloader.py

Windows:

  • Install Python Follow the steps at http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7 to set the python path.

  • install click, requests, bs4 libraries

        pip install click requests bs4
    
  • Place subtitle-downloader.py file in C:\

  • Place the Subtitle.cmd in sendto folder in windows (can be accessed by typing shell:sendto in address bar)

  • Right click the movie file (not the movie folder). You can also select multiple files. and click sendto -> Subtitle.cmd

  • If you want to download subtitles for all movies in a folder, you can use a folder as parameter to subtitle-downloader.py.

Mac:

  • Install python and make sure it is in your path

  • install click, requests, bs4 libraries

        pip install click requests bs4
    
  • Open Automator and create a new document of type "Service"

  • Add an action called "Run Shell Script"

  • On the top, under 'Service receives selected' drop-down, select 'files or folder' and in the next drop-down, for 'in' select 'Finder'

  • On the right top of the Run Shell Script action, make sure you selected "as arguments" for "Pass Input"

  • Copy the contents of subtitle.sh in the action

  • Edit the path to "subtitle-downloader.py" to wherever you have downloaded

  • Press Command + S to save it and give some name like "Download Subtitle"

  • Now, Right click the movie file (not the movie folder). You can also select multiple files. Click Services -> Download Subtitle

gif

Linux with Nautilus file manager(Tested on Debian Based with nautilus as file manager):
  • Install python

  • install click, requests, bs4 libraries

        pip install click requests bs4
    
  • Go to ~/.local/share/nautilus/scripts/ (Ubuntu 13.04 or above) OR ~/.gnome2/nautilus-scripts/ (Ubuntu 12.10 and below) folder and add Subtitles_in_english.sh in the folder.

  • The path for subtitle-downloader.py is hardcoded to Desktop ...U can change it accordingly.

  • Now Right Click on the movie file (not the movie folder). You can also select multiple files. Click Services -> Subtitles_in_english.

ScreenShot

Voila. the .srt subtitle file will be created right next to your movie file.

Enjoy the show!

More details can be found here : http://qr.ae/GxOcx A how to video can be found here: http://www.youtube.com/watch?v=Q5YWEqgw9X8

Linux with NEMO file manager(Tested on Debian Based with NEMO as file manager):
  • Install python

  • Go to ~/.gnome2/nemo-scripts folder and add Subtitles_In_English_for_nemo.sh in the folder.

  • The path for subtitle-downloader.py is hardcoded to Desktop ...You can change it accordingly.

  • Open terminal and execute following command :

chmod +x ~/.gnome2/nemo-scripts/Subtitles_In_English_for_nemo.sh
  • Now Right Click on the movie file (not the movie folder). You can also select multiple files. Click Services -> Subtitles_In_English_for_nemo.

Voila. the .srt subtitle file will be created right next to your movie file.

Development

We would love if you can contribute to make this project better. Here's how you can do it:

  1. Fork the project.
  2. Commit changes or bugfixes to your repo.
  3. Submit a pull request
  4. Sit back and relax while our maintainers checkout your changes and approve them!

About

Python script to automatically download subtitles for any movie/tv series episode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published