From 27444ad9cc691fbec2345b39394c2db1c00bdbf4 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 14 Nov 2022 19:58:06 +0100 Subject: [PATCH] ## Adapt TMDB url --- tools/new_file_in_astroport.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index a1be121f..fc4da58f 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -423,6 +423,9 @@ then echo "----------------- PREPARING TIDDLER ----------------------" CAT=$(echo "$CAT" | sed -r 's/\<./\U&/g' | sed 's/ //g') # CapitalGluedWords + ## Adapt TMDB url + [[ $CAT == "Film" ]] && tdb="movie" + [[ $CAT == "Serie" ]] && tdb="tv" GENRE=$(cat ~/astroport/${TYPE}/${REFERENCE}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' | jq -r '@csv' | sed 's/ /_/g' | sed 's/,/ /g' | sed 's/\"//g' ) echo $GENRE @@ -444,7 +447,7 @@ then if [[ $(echo "$MIME" | grep 'video') ]]; then TEXT="

"${TITLE}"

+

"${TITLE}"

"$DESCRIPTION"

<\$button class='tc-tiddlylink'> <\$list filter='[tag[G1${CAT}]]'>