Announcement

#1 2015-03-23 13:55:13

netizen
Member
2015-03-23
3

Automation

Hi

I'm trying to use piwigo as a local CMS/Image repository.
It's doing very well with a quite big collection:

448589 photos (first photo added on Tuesday 2 December 2014)
1953 albums included 1952 physical and 1 virtual (448118 associations)
16041 keywords (771209 associations)

Now I'm quite stuck, as we need to programatically add a sub-album every day, with 200/300 images.
What I've tryed so far is "almost" valid, I've scripted a mkdir (physical disk tree is somewhat like /path/basegallery/year/month/day/images) that creates the new daily sub-album correctly, copy the new images there, and add them via piwigo_remote.pl --action pwg.images.add ...

CONS:
I've to reset automatic album order manually.
Some files give a 500 response (file exists, filename conflict?).

The initial seed was done in batches (usually a month in one) by selecting from tools->Syncronise

Are there any chances to add the needed API calls (Sync/Sort)?

Piwigo version: 2.7.4
PHP version: 5.5.21
MySQL version: MariaDB 10.0.16
Piwigo URL: http://(internaldomain)

Offline

 

#2 2015-03-23 15:59:16

netizen
Member
2015-03-23
3

Re: Automation

Nevermind. Found the solution in this post
I'm not good in PHP but I do often speak perl :)
I modified that script to fully fit my needs and it works (well, it always gives me a 500 timeout, nothing that I can't manage with some job control magic).

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2021 · Contact