A client library for TVRage.com's API.
A Node.js client library for TVRage's API.
npm install tvrager
Example of searching for shows matching "Person of Interest":
tvragerfind'Person of Interest'console.loglist;;
Example of getting an episode list for "Person of Interest":
The two examples above use the default, cleaned, output format. All functions can take an optional parameter (at the end) to specify the output format as either 'xml' or 'xml2js'. 'xml' is simply what tvrage returns (an XML string), while 'xml2js' is that XML made into an object using xml2js.
Example of getting show information, for "Person of Interest", in XML (string) format:
Example of getting a list, in 'xml2js' format, of all shows:
NOTE: The "cleaned" format might miss out on some information. However, the functions mapping the data from 'xml2js' to the cleaned format can easily be modified.
See test.js for more examples.
- Implement the cleaners for findFull, getEpisodeInfo, getFull and listShows. At the moment, they're simply the same as the 'xml2js' format.
- Proper testing.
Hannes Landstedt a.k.a. zarac
NULL (No Unnecessary License - License)