howmuch
This commit is contained in:
parent
8ad26c7aa1
commit
cccb06c1e0
|
@ -9,9 +9,10 @@ cat ~/.zen/tmp/chan_cloud.json | jq -nR '.data += [{name: "_CHANNEL_", link: "/
|
||||||
cp ~/.zen/tmp/chan_cloud_plus.json ~/.zen/tmp/chan_cloud.json
|
cp ~/.zen/tmp/chan_cloud_plus.json ~/.zen/tmp/chan_cloud.json
|
||||||
|
|
||||||
for channel in $(ls ~/.zen/bunkerbox/channels); do
|
for channel in $(ls ~/.zen/bunkerbox/channels); do
|
||||||
|
echo "Adding $channel"
|
||||||
howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json)
|
howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json)
|
||||||
[[ ! $howmuch ]] && continue
|
[[ ! $howmuch ]] && continue
|
||||||
|
echo "$howmuch posting"
|
||||||
|
|
||||||
sed -i "s~_CHANNEL_~$channel~g" ~/.zen/tmp/chan_cloud_plus.json
|
sed -i "s~_CHANNEL_~$channel~g" ~/.zen/tmp/chan_cloud_plus.json
|
||||||
sed -i "s~_HOWMUCH_~$howmuch~g" ~/.zen/tmp/chan_cloud_plus.json
|
sed -i "s~_HOWMUCH_~$howmuch~g" ~/.zen/tmp/chan_cloud_plus.json
|
||||||
|
|
Loading…
Reference in New Issue