Changeset 3454 for trunk/tools/piwigo_remote.pl
- Timestamp:
- Jun 25, 2009, 1:01:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/piwigo_remote.pl
r3282 r3454 25 25 GetOptions( 26 26 \%opt, 27 qw/action=s file=s thumbnail=s high=s original=s categories=s chunk_size=i define=s%/ 27 qw/ 28 action=s 29 file=s 30 thumbnail=s 31 high=s 32 original=s 33 categories=s 34 chunk_size=i 35 base_url=s 36 username=s 37 password=s 38 define=s% 39 / 28 40 ); 29 41 … … 32 44 33 45 my %conf; 34 $conf{base_url} = 'http://localhost/piwigo/2.0';35 46 $conf{response_format} = 'json'; 36 $conf{username} = 'plg';37 $conf{password} = 'plg';38 47 $conf{limit} = 10; 39 $conf{chunk_size} = defined $opt{chunk_size} ? $opt{chunk_size} : 500_000; 48 49 my %conf_default = ( 50 base_url => 'http://localhost/piwigo/2.0', 51 username => 'plg', 52 password => 'plg', 53 chunk_size => 500_000, 54 ); 55 foreach my $conf_key (keys %conf_default) { 56 $conf{$conf_key} = defined $opt{$conf_key} ? $opt{$conf_key} : $conf_default{$conf_key} 57 } 40 58 41 59 my $result = undef; … … 217 235 } 218 236 219 if ($opt{action} eq 'pwg.images.setInfo' ) {237 if ($opt{action} eq 'pwg.images.setInfo' or $opt{action} eq 'pwg.categories.setInfo') { 220 238 $form = { 221 239 method => $opt{action},
Note: See TracChangeset
for help on using the changeset viewer.