Git Product home page Git Product logo

layback's Introduction

Layback Automatic Subtitles Downloader RubyGem

Build Status Gem Version

Layback will watch a folder for movie downloads. After a movie is downloaded Layback will search and download its subtitles automatically.

If you like this, why not buy me a beer: Donate


Installation

The easiest way to install it as your user:

sudo apt install build-essential
sudo gem install layback

Download subtitles in English and Portuguese for all the movies

$ crawl4subs "folder-with-movies/" pob eng por

Example:

$ crawl4subs ~/Downloads/ pob eng por

Important add a '/' at the end of the path, otherwise it will not work!!!

In order to run layback after boot do the following steps:

run as your own user:

crontab -e
@reboot layback_loader ~/Downloads

Change ~/Downloads to the directory you use for your movie downloads.

In case you are using rbenv:

  1. Download layback_start_with_rbenv.sh that is at the github repository to ~/bin or any place you prefer.
  2. add to your crontab:
@reboot ~/bin/layback_start_with_rbenv.sh

Is has not been tested with RVM but it should work if you load RVM before you run layback_loader

see RVM installtion

Standalone Tools

There are 4 tools at the moment:

crawl4subs:

Will download the subtitles of the movies inside a parent folder recursively.

example:

crawl4subs ["foldername" + /] eng por 

watch4subs: Watches a folder for new movies and downloads the subtitles as soon as the movie finishes downloading.

lang4subs: Change the default language of all the movies in a parent folder recursively.

layback remote app: Android remote control. Download at:


LIMITATION: It is mandatory to keep your movies files in the directory "~/Downloads" otherwise the Android Remote won't work.

Usage

Download subtitles in English and Portuguese for all the movies

$ crawl4subs "folder-with-movies/" pob eng por

Important add a '/' at the end of the path, otherwise it will not work!!!

You can pass as many languages as you like as parameters. The first language available for the movie will be set as the default language for the movie.

Default languages are: eng por spa ger on this sequence of priority. Sub language ISO 639-2 code like pob (Brazilian Portuguese), fre or eng.

Change the languages of the subtitles

$ lang4subs "folder-with-movies" spa por

Bug reports and pull requests are welcome on GitHub at https://github.com/evandrojr/layback. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Thanks

Subtitles service powered by www.OpenSubtitles.org

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.