Giter Site home page Giter Site logo

peerflixrb's Introduction

Gem Version Build Status Dependency Status

Peerflixrb

Wrapper for webtorrent-cli with automatic search through Popcorn Time, YifySubtitles and Addic7ed.

Installation

Install the gem:

$ gem install peerflixrb

Usage

Pass a string with what you want to watch and it will search Extratorrent with your query and present you with the first 5 results for you to choose. The file selected will then be sent to webtorrent. For TV Shows use the format S01E01.

$ peerflixrb Suits s05e12
$ peerflixrb The Godfather II

If you prefer to autoplay the first matched result, use the -y flag:

$ peerflixrb -y Archer s07e02

You can play the video with subtitles with the -s option (Default: English). It will try and find the best match in YifySubtitles if it's a movie, and in Addic7ed if it's a TV Show.

$ peerflixrb -s Birdman
$ peerflixrb -s The Wire s04e05

You can choose from a list which subtitle file to use with TV Shows with the option -S.

Choose the language with -l LANGUAGE (Available Languages). Currently only for TV Shows (Choosing movie subtitles language will come soon!)

$ peerflixrb -sl es-es Breaking Bad s05e03

If you prefer to use your own subtitles file, you can do that with the -t SUBTITLE_FILE option.

$ peerflixrb Better Call Saul s02e04 -t subtitle_file.srt

You can autoplay in your favourite player with the corresponding option (Default: mpv).

$ peerflixrb --mpv The Big Bang Theory s09e16

It works with DLNA too with the -u option (subtitles too!).

If you prefer to let it download without autoplaying use the option -n or --no-player.

Cache

Webtorrent takes care of cache so you can resume your downloads or watch them again. peerflixrb will tell you where they are located so you can do as you like or leave them there till your OS takes care of it (it's stored in /tmp). When downloading with -n the output folder is the same peerflixrb was run.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/iovis9/peerflixrb.

License

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

peerflixrb's People

Contributors

iovis avatar iovis9 avatar

Watchers

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