Project

legendario

0.0
No commit activity in last 3 years
No release in over 3 years
The script downloads subtitles when a new movie is put to a defined folder.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

~> 2.0
~> 0.2
 Project Readme

Please use that one.

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

Legendario RubyGem

Build Status Gem Version

After dectecting a movie has been downloaded Legendario will search and download its subtitles automatically.

Installation

I don't know the reason for it, but installing the gem using sudo it not working. So I recommend you install RVM or rbenv in advance and then install legendario with a non privileved user like yourself.

see RVM installtion

or rbenv

Then install Legendario yourself as:

$ gem install legendario

Tools

There are 3 tools at the moment:

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

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.

In case you are a polyglot 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.

Usage

Download subtitles in English and Portuguese for all the movies

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

for example.

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.

Lay back and let watch4subs do all the work for you. As soon a new movie arrives it will download the subtitles for it.

Edit your rc.local file to start watch4subs after boot

su (username) -lc "watch4subs folder-with-movies subs-langs"  

Example su evandro -lc "watch4subs ~/Downloads pob por spa"

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/legendario. 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