summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-13 10:19:32 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-13 10:19:32 (GMT)
commit9320db8b5813d48c3555424603d0bc17e089a7c0 (patch)
tree6dc0a5fef07b60cd63dcdf249402c64976158900
parentde9ee6a61ef871f60217f958cf4c8fadf15aaa27 (diff)
clearing single carts as well (updates title at import)
-rwxr-xr-xrhimport2
1 files changed, 2 insertions, 0 deletions
diff --git a/rhimport b/rhimport
index f431035..b59ebfd 100755
--- a/rhimport
+++ b/rhimport
@@ -249,6 +249,7 @@ sub start_import_gui()
}
($ret, $log) = rhimport::import_playlist($file, $dropbox, $gui_progress_cb, $gui_error_cb);
} else {
+ rhimport::clear_carts($dbh, $group, $to_cart, $gui_progress_cb);
($ret, $log) = rhimport::import_single($file, $dropbox, $gui_progress_cb, $gui_error_cb);
}
@@ -397,6 +398,7 @@ if($POOL) {
($ret, $log) = rhimport::import_playlist($FILE, $DROPBOX, 0, $cl_error_cb);
} else {
+ rhimport::clear_carts($dbh, $group, $to_cart);
($ret, $log) = rhimport::import_single($FILE, $DROPBOX, 0);
}