Giter VIP home page Giter VIP logo

subtitle-grabber's Introduction

Subtitle-grabber

Gets the subtitles for the video file or multiple videos in a specified directory.


Features :-

  • Relatively faster when compared to some of the other subtitle retreiving codes out there.
  • Gets the subtitle based on the Hash value of the video file. So the subtitles are very accurate.
  • Users can specify the path of the video file as an argument while running from the console.
  • Can also take direcotories as path and gets the subtitles for all the video files if found , inside any subfolder or folder within the given path.
  • After successful retrieval of the subtitle , the subtitle file is automatically renamed to the same name as that of the corresponding video file.

Supported languages :-

  • English 'en'
  • Portuguese 'pt'
  • Spanish 'es'
  • French 'fr'
  • Italian 'it'
  • Dutch 'nl'
  • Polish 'pl'
  • Romanian 'ro'
  • Swedish 'sv'
  • Turkish 'tr'

Limitation :-

  • Since the video file is checked using its hash , for some of the video files , the subtitles won't be available if the video file hash is not present in the Subtitle server's list.

Usage :-

import Subtitle_grabber
Subtitle_grabber.get_subtitle(filepath , lan="en") ; 

#The argument lan refers to the two character language code for the corresponding languages as shown above.

#If the subtitle exists , then it automatically downloads it and renames it to that of the videofile.


#If a directory containing multiple files has to be specified, use the get_batch_sub( ) method.

Subtitle_grabber.get_batch_sub(directorypath , lan="en") ;

subtitle-grabber's People

Contributors

nateshmbhat avatar

Stargazers

 avatar

Watchers

James Cloos 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.