From 863d5983a0f6b600f227ee7d3720dc6e74118ec4 Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Sat, 21 Jan 2023 21:28:38 +0100 Subject: [PATCH] Update animes-renamer.sh --- animes-renamer.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/animes-renamer.sh b/animes-renamer.sh index 8deeb83..2471813 100755 --- a/animes-renamer.sh +++ b/animes-renamer.sh @@ -282,6 +282,12 @@ do echo " studio: ${mal_studios}" >> $animes_titles printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tstudio : $mal_studios\n" >> $LOG get-mal-poster # check / download poster - echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $animes_titles - printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG + if [ "$PMM_INSTALL_TYPE" == "docker" ] + then + echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $animes_titles + printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG + else + echo " file_poster: $POSTERS_FOLDER/${mal_id}.jpg" >> $animes_titles + printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG + fi done < $SCRIPT_FOLDER/ID/animes.tsv \ No newline at end of file