forked from axiom-team/astrXbian
NO _canonical_uri if empty
This commit is contained in:
parent
f72f4269bb
commit
b0b9247592
|
@ -437,18 +437,24 @@ then
|
|||
"type": "'${MIME}'",
|
||||
"mime": "'${REAL}'",
|
||||
"cat": "'${CAT}'",
|
||||
"poster": "'${SCREENDIR}/screen.png'",
|
||||
"screenshot": "'${SCREENDIR}/screen.png'",
|
||||
"ipfsroot": "'${IPFSREPFILEID}'",
|
||||
"file": "'${file}'",
|
||||
"mediakey": "'${MEDIAKEY}'",
|
||||
"ipns": "'${IPNS}'",
|
||||
"tmdb": "'${REFERENCE}'",
|
||||
"tags": "'${TAGS}'",
|
||||
"tags": "'${TAGS}'" '
|
||||
[[ ${CANON} != "" ]] && echo ',
|
||||
"_canonical_uri": "'${CANON}'"
|
||||
}
|
||||
]
|
||||
' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json
|
||||
|
||||
# Will be used by caroussel.html template
|
||||
# CAROUSSEL=$(ipfs add -wq ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json | head-n 1)
|
||||
|
||||
|
||||
|
||||
# COPY TIDDLER JSON TO DESKTOP Journal/${TYPE}
|
||||
[[ "$USER" != "xbian" && -d ~/Bureau ]] && mkdir -p ~/Bureau/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Bureau/Journal/${TYPE}/${TITLE}.dragdrop.json
|
||||
[[ "$USER" != "xbian" && -d ~/Desktop ]] && mkdir -p ~/Desktop/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Desktop/Journal/${TYPE}/${TITLE}.dragdrop.json
|
||||
|
|
Loading…
Reference in New Issue