🌍
English
Sorry I had missed the details of that change on the changelog.
Online
Working Script:
# Make a login in Piwigo named "cron" (or simialr) with Admin permissions and set a strong password, set up MFA, and generate an API.
#
# change the text REDACTED to the API User and Key
#
# Nightly CRON job (run as www): 1 0 * * * /path/to/your/script/piwigo-thumb-generate.sh
set -e
cd /path/to/your/script/
wget -nv --header='X-PIWIGO-API: REDACTED:REDACTED' -O missing.json "http://(Your Site's URL)/ws.php?format=json&method=pwg.getMissingDerivatives"
while [ `wc -c missing.json | awk '{print $1}'` -gt 50 ]
do
sed -e 's/[\\\"]//g' \
-e 's/{stat:ok,result:{next_page:[0-9]*,urls:\[//' \
-e 's/{stat:ok,result:{urls:\[//' \
-e 's/\]}}/\n/' \
-e 's/,/\n/g' \
-e 's/\&b=[0-9]*//g' missing.json | \
while read line ; do
wget -nv -O /dev/null $line
done
wget -nv --header='X-PIWIGO-API: REDACTED:REDACTED' -O missing.json "http://(Your Site's URL)/ws.php?format=json&method=pwg.getMissingDerivatives"
done
rm missing.jsonOffline