eztv_api_x
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -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); | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6415
94