forked from qo-op/bunkerbox
14 lines
419 B
Bash
14 lines
419 B
Bash
|
#!/bin/bash
|
||
|
[[ ! $1 ]] && echo "You must provide 'qo-op' IPNS key"&& exit 1
|
||
|
# echo create data set to include into tagcloud
|
||
|
DATA=""
|
||
|
|
||
|
for channel in $(ls ~/.zen/bunkerbox/channels); do
|
||
|
|
||
|
howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json)
|
||
|
DATA="$DATA { name: '"${channel}"', link: '"/ipns/$1/tw/${channel}"', weight: "${howmuch}", tooltip: '"${channel}"' },"
|
||
|
|
||
|
done
|
||
|
|
||
|
echo 'data: [ '$DATA' ]'
|