Coder Social home page Coder Social logo

eztv-query's Introduction

Eztv-query

NPM version Dependency Status

Query the eztv website for information about a specific TV-series episode.

Takes a free text query string, tries to pull out any specific season and episode search an queries the eztv website using eztv.

If there are multiple results from the queries on a series name or season/episode it will prompt the user in the console to select only one of the options.

Returns a single episode object.

Usage

var eztvQuery = require('eztv-query');

eztvQuery('house of cards season 2 episode 5', function (err, episode) {
    console.log(episode);
});

// Console output:
{
  url: '/ep/52222/house-of-cards-2013-s02e05-webrip-x264-2hd/',
  id: 52222,
  title: 'House of Cards 2013 S02E05 WEBRip x264-2HD',
  show: 'House of Cards 2013',
  seasonNumber: 2,
  episodeNumber: 5,
  episodeNumber2: NaN,
  extra: 'WEBRip x264-2HD',
  proper: false,
  repack: false,
  magnet: 'magnet:?xt=urn:btih:GR7EZAADH6BJG43TLSN2O4YCTDFCKURW&dn=House.of.Cards.2013.S02E05.WEBRip.x264-2HD&tr=udp://tracker.openbittorrent.com:80&tr=udp://tracker.publicbt.com:80&tr=udp://tracker.istole.it:80&tr=udp://open.demonii.com:80&tr=udp://tracker.coppersurfer.tk:80',
  torrentURL: '//re.zoink.it/52fff796'
}

For an example on creating a command line search interface, see the eztv executable.

Query syntax

Eztv-query tries to give you a human friendly free text query syntax.

Etv-query will try to figure out what specific season and episode you are looking for by matching any episode syntax in your query string. In addition, having latest anywhere in your query will automatically default to the latest aired episode.

The rest of the query string is passed on to find the series in question.

License

(The MIT License)

Copyright (c) 2014 Peter Müller [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

eztv-query's People

Contributors

glavin001 avatar munter avatar

Watchers

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