better shaping

This commit is contained in:
fred 2022-10-17 02:20:03 +02:00
parent 6b5aef215d
commit b099dcfaf6
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,8 @@ for channel in $(ls ~/.zen/bunkerbox/channels); do
[[ ! $howmuch ]] && continue
echo "Adding $channel ($howmuch videos)"
[ $howmuch -gt 220 ] && BIGCHAN="${channel}($howmuch) $BIGCHAN" && continue
[ $howmuch -gt 99 ] && BIGCHAN="${channel}($howmuch) $BIGCHAN" && howmuch=100
[ $howmuch -lt 5 ] && LOWCHAN="${channel}($howmuch) $LOWCHAN" && continue
cat ~/.zen/tmp/chan_cloud.json | jq '.data += [{"name": "'''$channel'''", "link": "/ipns/'''$IPNS'''/tw/'''$channel'''", "weight": "'''$howmuch'''" ,"tooltip": "'''$channel'''"}]' > ~/.zen/tmp/chan_cloud_plus.json
@ -21,3 +22,4 @@ done
## "data:" dans le template homepage.html
# ~/.zen/tmp/chan_cloud.json