Status Conditional addition
|
|
With the current script, calls will be made to remove files that are currently uploading or downloading - something the official delete functionality on Rapidshare doesn't allow. While these files will not be removed, the call to the script will be counted towards the spam protection measures and could result in rapidshare blocking your access for 2 minutes which is a real annoyance. Also, the Delete All button should maybe be Delete Completed Jobs if this change is implemented? Code Changes:
$(".dtabelle a").each(function(i, a)
{
var self = $(this);
var href_split = $(this).attr('href').split("'");
var id = href_split[1];
var status = href_split[3];
// Only remove the jobs if the status code isn't 0, 1 or 4 (Downloading... Uploading to Rapidshare etc)
if (status != 0 && status != 1 && status != 4)
{
var param = "remotegets=1&killjobs=1&killjob-" + id + "=1";
$.ajax({
type: "POST",
data: param,
success: function(html)
{
// Let's parse the response!
self.parents('tr').empty();
}
});
}
});
|
|
|
Not a bad suggestion. Thanks Touching Virus.
:) |