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