From d2c3925455833533813879d8330cc53e6491788f Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 23 Apr 2022 03:55:50 +0200 Subject: [PATCH] Add GENRE tag --- zen/new_file_in_astroport.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 7b5ba67..7aa273f 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -412,16 +412,16 @@ then echo "----------------- REFRESH LOCAL KODI INDEX ----------------------" cat ~/.zen/ipfs/.${IPFSNODEID}/astroport/kodi/vstream/${PREFIX}ASTRXBIAN ~/.zen/ipfs_swarm/.12D*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | sort | uniq > ~/.zen/ipfs/.${IPFSNODEID}/${PREFIX}ASTRXBIAN - +GENRE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' ) MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2) if [[ $(echo "$MIME" | grep 'video') ]]; then TEXT="

"${TITLE}"

" MIME="txt/html" - TAGS="${CAT} astroport" + TAGS="${CAT} astroport $GENRE" CANON='' else TEXT='' - TAGS='$:/isAttachment $:/isIpfs astroport '${CAT} + TAGS='$:/isAttachment $:/isIpfs astroport '${CAT} $GENRE CANON="/ipfs/"${IPFSID} fi