Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eztv_api_x

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eztv_api_x - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

21

eztv_api.js

@@ -85,3 +85,8 @@ /*************************

var show_rows = $('tr.forum_header_border[name="hover"]').filter(function() {
return $(this).children('.forum_thread_post').length > 0;
episode_rows = $(this).children('.forum_thread_post');
if(episode_rows.length > 0) {
var title = $(this).children('td').eq(1).text();
if(title.toLowerCase().indexOf("x264") > -1) return true;
}
return false;
});

@@ -98,10 +103,10 @@

if(matcher) {
var season = matcher[1];
var episode = matcher[2];
var episodeStruct = {};
episodeStruct.url = magnet;
episodeStruct.seeds = 0;
episodeStruct.peers = 0;
var season = parseInt(matcher[1], 10);
var episode = parseInt(matcher[2], 10);
var torrent = {};
torrent.url = magnet;
torrent.seeds = 0;
torrent.peers = 0;
if(!episodes[season]) episodes[season] = {};
episodes[season][episode] = episodeStruct;
episodes[season][episode] = torrent;
}

@@ -108,0 +113,0 @@ });

{
"name" : "eztv_api_x",
"version" : "0.0.6",
"version" : "0.0.7",
"description" : "Web Scraper to provide methods to access EZTV easier",

@@ -5,0 +5,0 @@ "author" : "SlashmanX & phenomenz",

@@ -5,3 +5,3 @@ EZTV API

Currently supports 2 methods
Currently supports 3 methods

@@ -8,0 +8,0 @@ `getAllShows(cb)` Returns an object array of all TV Shows on eztv.it/showlist/ in the form `{show: showname, id: eztvId, slug: eztv-slug}`

var eztv = require('./eztv_api');
var episodes = eztv.getAllEpisodes({id: 36, slug: 'breaking-bad'}, function(err, data) {
var episodes = eztv.getAllEpisodes({id: 124, slug: 'house'}, function(err, data) {
if(err) return console.error(err);
console.log(data);
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc