[[ "$tags" != "null" ]]
This commit is contained in:
parent
cbb69b92da
commit
ba9ae372e3
|
@ -86,6 +86,7 @@ Service de streaming public/privé diffusé par IPFS grâce à Astroport...<br>
|
||||||
|
|
||||||
if [[ "$source" == "YOUTUBE" ]]
|
if [[ "$source" == "YOUTUBE" ]]
|
||||||
then
|
then
|
||||||
|
echo "$source"
|
||||||
# mutiTUBE - activate .views.counter
|
# 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
|
# 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...)
|
# 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...)
|
||||||
|
|
|
@ -50,7 +50,7 @@ do
|
||||||
|
|
||||||
mynodename=$(cat ~/.zen/ipfs_swarm/.$IPFSNODEID/G1SSB/_nodename)
|
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)}')"
|
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=$(cat ~/.zen/ipfs_swarm/.$ipfnodesource/KEY/$mediakey/$g1pubsource/video.json | jq -cr .description)
|
||||||
[[ $description ]] && description=$(echo "${description//$'\n'/<br>}") || description="SAUVEGARDE VIDEO ASTROPORT"
|
[[ $description ]] && description=$(echo "${description//$'\n'/<br>}") || description="SAUVEGARDE VIDEO ASTROPORT"
|
||||||
|
|
Loading…
Reference in New Issue