publish videocarrousel data from FASTRXBIAN

This commit is contained in:
fred 2022-04-23 17:15:36 +02:00
parent 1f693d621a
commit 18f551afcb
1 changed files with 13 additions and 0 deletions

13
tools/get_astrXbian_film.sh Executable file
View File

@ -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' ]'