PinoyFilter

Build Status Build Status Code Climate

PinoyFilter is a wrapper for the website theAnime dot tv. The site previously went by the name PinoyAnime which is why the gem got this silly name. :|

Features

PinoyFilter::Site

  • Get a list of animes available on the site
  • Get a list of the latest episodes posted

PinoyFilter::Anime

  • Validate if a link leads to an theanime site.
  • Assign an unique ID to the series
  • Get a list of episodes
  • Link to the anime page on theanime.tv

PinoyFilter::Episode

  • Keep track of its status (aired/not_aired)
  • Keep track of which anime it is an episode of
  • Link to the episode on theanime.tv
  • Link to the streamed video

Installation

Add this line to your application's Gemfile:

gem 'PinoyFilter'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install PinoyFilter

Usage

PinoyFilter is a simple wrapper for ~~pinoyanime~~theanime.tv. By creating a new PinoyFilter::Site element, you can use the function element.animes to get a list of animes.

Each of the returned objects is a PinoyFilter::Anime class, which holds a list of episodes available using animeElement.episode_list

By default the current functions will work

@site = PinoyFilter::Site.new # if you want to use default pinoyanime link 
                              # arguments are not required.

# To get a list of animes
animes = @site.animes

# Episodes can be referenced from the anime class
episodes = animes[x].episodes

# To get the direct url to a video use 
url = animes[x].episodes[y].streamURL

Contributing

  1. Fork it ( https://github.com/Razesdark/PinoyFilter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request