diff options
author | plegall <plg@piwigo.org> | 2008-09-11 22:19:04 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2008-09-11 22:19:04 +0000 |
commit | 272113c4175992de5dee7fed77fa2ab9fdef2850 (patch) | |
tree | d489b2dd91e22f827ff744a19a9743849d875e9f /tools | |
parent | 197d4a92e7a68e9e0455239c17fb19462795e609 (diff) |
feature added: ability to set rank from webservice upload.
git-svn-id: http://piwigo.org/svn/trunk@2520 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools')
-rw-r--r-- | tools/piwigo_remote.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/piwigo_remote.pl b/tools/piwigo_remote.pl index 90dc528ac..582aca294 100644 --- a/tools/piwigo_remote.pl +++ b/tools/piwigo_remote.pl @@ -10,7 +10,7 @@ use Getopt::Long; my %opt = (); GetOptions( \%opt, - qw/action=s file=s thumbnail=s category_id=i name=s/ + qw/action=s file=s thumbnail=s category_id=i name=s rank=i/ ); our $ua = LWP::UserAgent->new; @@ -61,6 +61,7 @@ if ($opt{action} eq 'pwg.images.add') { thumbnail_content => $thumbnail_content, category_id => $opt{category_id}, name => $opt{name}, + rank => defined($opt{rank}) ? $opt{rank} : 1, }; my $response = $ua->post( |