GithubHelp home page GithubHelp logo

hhy5277 / subtitle-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manojmj92/subtitle-downloader

0.0 1.0 0.0 75 KB

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

License: GNU General Public License v3.0

Batchfile 1.27% Shell 11.05% Python 87.68%

subtitle-downloader's Introduction

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!

subtitle-downloader's People

Contributors

0xmh avatar arunshivaram avatar avsrivas avatar beli4l avatar deadcoder0904 avatar ferbncode avatar harishoss avatar ivandrofly avatar johanmcquillan avatar mandar12 avatar manojmj92 avatar marauderlabs avatar mendes-jose avatar mohanraj-r avatar naveenippili avatar nilesh3105 avatar niroyb avatar pazran avatar rahilsharma avatar ramolaweb avatar sjs7007 avatar sravi4701 avatar sunilthorat09 avatar thyrgle avatar tushalien avatar vishnu-priyan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.