push
This commit is contained in:
parent
d728bc7264
commit
3e5582763e
|
@ -4,14 +4,12 @@
|
|||
# HERE YOU CAN MODIFY HOMEPAGE TAGCLOUD PROPERTIES
|
||||
IPNS="$1"
|
||||
|
||||
echo "{data:[]}" > ~/.zen/tmp/chan_cloud.json
|
||||
echo '{"data":[]}' > ~/.zen/tmp/chan_cloud.json
|
||||
|
||||
for channel in $(ls ~/.zen/bunkerbox/channels); do
|
||||
howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json)
|
||||
[[ ! $howmuch ]] && continue
|
||||
echo "Adding $channel"
|
||||
|
||||
echo "$howmuch posting"
|
||||
echo "Adding $channel ($howmuch videos)"
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue