mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed small cosmetic bug with trakt trending shows page.
KAT torrent provider now gets and stores size and publishing date info. Fixed feedcache issue with KAT torrent provider Added timeout for trakt trending shows page
This commit is contained in:
parent
7f0dd9cbef
commit
2cd72ad4e8
@ -1,10 +1,20 @@
|
||||
$(document).ready(function() {
|
||||
function loadContent() {
|
||||
$('#trendingShows').html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32' + themeSpinner + '.gif" height="32" width="32" /> loading trending shows...');
|
||||
$.get(sbRoot+'/home/addShows/getTrendingShows/', function(data) {
|
||||
$('#trendingShows').html(data);
|
||||
});
|
||||
var trendingRequestXhr = null;
|
||||
|
||||
function loadContent() {
|
||||
if (trendingRequestXhr) trendingRequestXhr.abort();
|
||||
|
||||
$('#trendingShows').html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32' + themeSpinner + '.gif" height="32" width="32" /> loading trending shows...');
|
||||
trendingRequestXhr = $.ajax({
|
||||
url: sbRoot + '/home/addShows/getTrendingShows/',
|
||||
timeout: 60 * 1000,
|
||||
error: function () {
|
||||
$('#trendingShows').empty().html('Trakt timed out, refresh page to try again');
|
||||
},
|
||||
success: function (data) {
|
||||
$('#trendingShows').html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
loadContent();
|
||||
|
@ -2249,7 +2249,8 @@ class HomeAddShows(Home):
|
||||
trakt_api = TraktAPI(sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD)
|
||||
|
||||
try:
|
||||
for show in trakt_api.traktRequest("shows/trending.json/%APIKEY%") or []:
|
||||
shows = trakt_api.traktRequest("shows/trending.json/%APIKEY%") or []
|
||||
for show in shows:
|
||||
try:
|
||||
if not helpers.findCertainShow(sickbeard.showList,
|
||||
[int(show['tvdb_id']), int(show['tvrage_id'])]):
|
||||
|
Loading…
Reference in New Issue
Block a user