cache restore

This commit is contained in:
fred 2023-05-15 20:57:47 +02:00
parent b9076d6cd1
commit 26ee21b165
2 changed files with 6 additions and 3 deletions

View File

@ -149,8 +149,11 @@ if [[ ! ${TIDDLER} ]]; then
echo "No FILE -- TRYING TO RESTORE CACHE FROM TW --"
tiddlywiki --load ${INDEX} \
--output ~/.zen/game/players/${PLAYER}/G1CopierYoutube \
--render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" \
&& rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" && ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json"
--render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}"
if [[ -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json ]]; then
rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" 2>/dev/null
ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json"
fi
continue
fi
echo

View File

@ -183,7 +183,7 @@ a {
function countdown() {
if (timeLeft == -1) {
clearTimeout(timerId);
elem.innerHTML = "<a href='"+redirectURL+"' target='aframe'>OK</a>";
elem.innerHTML = "<a target='aframe' href='"+redirectURL+"'>OK</a>";
window.open( redirectURL, "AstroTab");
} else {
elem.innerHTML = timeLeft + " s";