From 70308f51747b5beeff99dec9f10490080f00b0c2 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Tue, 27 May 2014 11:22:59 +0100 Subject: Post-export hook tweaks Remove the Soundcloud username & password from the parameter substitutions passed to the post-export hook: having thought about this now, I can't actually think of a case where these are of any use at all. In compensation, add %s and %n parameters that expand to the session directory and name - maybe people will think of uses for these. --- libs/ardour/export_handler.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'libs/ardour/export_handler.cc') diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 89e4d96955..4368d54430 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -314,20 +314,19 @@ ExportHandler::finish_timespan () #if 0 // would be nicer with C++11 initialiser... std::map subs { { 'f', filename }, - { 'd', Glib::path_get_dirname(filename) }, + { 'd', Glib::path_get_dirname(filename) + G_DIR_SEPARATOR }, { 'b', PBD::basename_nosuffix(filename) }, - { 'u', upload_username }, - { 'p', upload_password} + ... }; #endif PBD::ScopedConnection command_connection; std::map subs; subs.insert (std::pair ('f', filename)); - subs.insert (std::pair ('d', Glib::path_get_dirname(filename))); - subs.insert (std::pair ('b', PBD::basename_nosuffix(filename))); - subs.insert (std::pair ('u', soundcloud_username)); - subs.insert (std::pair ('p', soundcloud_password)); + subs.insert (std::pair ('d', Glib::path_get_dirname (filename) + G_DIR_SEPARATOR)); + subs.insert (std::pair ('b', PBD::basename_nosuffix (filename))); + subs.insert (std::pair ('s', session.path ())); + subs.insert (std::pair ('n', session.name ())); std::cerr << "running command: " << fmt->command() << "..." << std::endl; -- cgit v1.2.3