summaryrefslogtreecommitdiff
path: root/enqueue.pl
diff options
context:
space:
mode:
Diffstat (limited to 'enqueue.pl')
-rwxr-xr-xenqueue.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/enqueue.pl b/enqueue.pl
index 1e5d30d..7861073 100755
--- a/enqueue.pl
+++ b/enqueue.pl
@@ -16,7 +16,7 @@ my $category = $cat->name();
my ($size) = param('description') =~ m/<b>(.*)<\/b>/;
$size = 0;
-my $download = local::db::download->insert({owner=>$user->get_id(),name=>param('name'),category=>param('cat'),description=>param('title'),size=>$size});
+my $download = local::db::download->insert({owner=>$user->get_id(),name=>param('name'),category=>$cat->category_id(),description=>param('title'),size=>$size});
use LWP::Simple;
my $nzb = get(param('url'));
die "Couldn't get ".param('url') unless defined $nzb;