Add GENRE tag
This commit is contained in:
parent
19129c3bf1
commit
d2c3925455
|
@ -412,16 +412,16 @@ then
|
||||||
echo "----------------- REFRESH LOCAL KODI INDEX ----------------------"
|
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
|
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)
|
MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2)
|
||||||
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
||||||
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
|
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
|
||||||
MIME="txt/html"
|
MIME="txt/html"
|
||||||
TAGS="${CAT} astroport"
|
TAGS="${CAT} astroport $GENRE"
|
||||||
CANON=''
|
CANON=''
|
||||||
else
|
else
|
||||||
TEXT=''
|
TEXT=''
|
||||||
TAGS='$:/isAttachment $:/isIpfs astroport '${CAT}
|
TAGS='$:/isAttachment $:/isIpfs astroport '${CAT} $GENRE
|
||||||
CANON="/ipfs/"${IPFSID}
|
CANON="/ipfs/"${IPFSID}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue