diff --git a/lib/sites/parser.pm b/lib/sites/parser.pm index a3b8b1d31b18204ffa40814e554c7b974a375965..59e6fb44a644475efde6c8a76f9fb97d87417958 100644 --- a/lib/sites/parser.pm +++ b/lib/sites/parser.pm @@ -57,11 +57,12 @@ sub parse { else { # insertion de la vidéo dans la bdd my $sth = $dbh->prepare_cached(' - INSERT INTO playbot (type, url, sender, title) - VALUES (?,?,?,?)'); + INSERT INTO playbot (type, url, sender, title, duration) + VALUES (?,?,?,?,?)'); $log->error("Couldn't prepare querie; aborting") unless (defined $sth); - $sth->execute($content{'site'}, $content{'url'}, $content{'author'}, $content{'title'}) + $sth->execute($content{'site'}, $content{'url'}, + $content{'author'}, $content{'title'}, $content{'duration'}) or $log->error("Couldn't finish transaction: " . $dbh->errstr); }