diff options
Diffstat (limited to 'tools/piwigo_remote.pl')
-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( |