GithubHelp home page GithubHelp logo

seasonvar-api's Introduction

seasonvar-api

Node.js api for seasonvar.ru that uses public data, which means NO KEY REQUIRED!.

Prerequisites

  • Node.js >=8.x

Installation and Usage

Installation:

npm install seasonvar-api-nokey

Test:

npm run test

Usage:

const Seasonvar = require('seasonvar-api-nokey');
//const Search = require('seasonvar-api-nokey/lib/search');

const seasonvar = Seasonvar.create();
const movies = await seasonvar.autocomplete('lucifer');
// const movies = await seasonvar.top(Search.TOP_MONTH);
const episodes = await seasonvar.episodes(movies[0]);

For es5 compatibility you might use: require('seasonvar-api-nokey/es5')

For more examples see example/ folder

Roadmap

  • Add support for translation specific playlists alongside the standard

Support development

I really love open source, however i do need your help to keep the library up to date. There are several ways to do it: open issues, submit PRs, share the library w/ community or simply-

Donate ETH

seasonvar-api's People

Contributors

alexanderc avatar

Stargazers

Artur  Mkrtchyan avatar Neli Harbuzava avatar Vladislav avatar Aleks avatar Tsotne Nazarashvili avatar

Watchers

James Cloos avatar  avatar Tsotne Nazarashvili avatar  avatar

seasonvar-api's Issues

[bug] seasonvar.top() returns `id` for first season, not `id` for current season

Great work on this package, Alexander!

I noticed that seasonvar.top() returns Movies with an id for the first season of their show, rather than for the latest (i.e. Top) season.

For example, seasonvar.top(Search.TOP_WEEK) includes Симпсоны (31 сезон) / The Simpsons, but it has an id of 1031, which is actually Симпсоны / The Simpsons (1 сезон) (i.e. the first ever season).

The same is true of all Moviesreturned by top().

I know this package hasn't been updated for a couple years, but it'd be great if you could look at this.

Thanks!

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.