1.0.0 • Published 9 years ago

eztv-query v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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 munter@fumle.dk

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.

1.0.0

9 years ago

0.2.0

10 years ago

0.1.0

10 years ago