[[ "$tags" != "null" ]]

This commit is contained in:
qo-op 2021-04-08 04:22:31 +02:00
parent cbb69b92da
commit ba9ae372e3
2 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ Service de streaming public/privé diffusé par IPFS grâce à Astroport...<br>
if [[ "$source" == "YOUTUBE" ]]
then
echo "$source"
# mutiTUBE - activate .views.counter
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=https://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/go\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
# TODO go/index.php from nginx proxy acting act as gateway (= Easy Round robin DNS tube.copylaradio.com is dynamic IP swap swarm nodes from node performance...)

View File

@ -50,7 +50,7 @@ do
mynodename=$(cat ~/.zen/ipfs_swarm/.$IPFSNODEID/G1SSB/_nodename)
genres="$(cat ~/.zen/ipfs_swarm/.$ipfnodesource/KEY/$mediakey/$g1pubsource/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/,/g' | awk '{print tolower($0)}')"
tags="$genres,$tags"
[[ "$tags" != "null" ]] && tags="$genres,$tags" || tags="$genres"
description=$(cat ~/.zen/ipfs_swarm/.$ipfnodesource/KEY/$mediakey/$g1pubsource/video.json | jq -cr .description)
[[ $description ]] && description=$(echo "${description//$'\n'/<br>}") || description="SAUVEGARDE VIDEO ASTROPORT"