publish videocarrousel data from FASTRXBIAN
This commit is contained in:
parent
1f693d621a
commit
18f551afcb
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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' ]'
|
Loading…
Reference in New Issue