From 8da3c261bac698139777e223fdbb67f4a85f2662 Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Sat, 21 Jan 2023 21:26:03 +0100 Subject: [PATCH 1/3] Update animes-renamer.sh --- animes-renamer.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/animes-renamer.sh b/animes-renamer.sh index 847d1f6..8deeb83 100755 --- a/animes-renamer.sh +++ b/animes-renamer.sh @@ -282,11 +282,6 @@ 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 - if [ "$PMM_INSTALL_TYPE" == "docker" ] - then - echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $animes_titles - else - echo " file_poster: $POSTERS_FOLDER/${mal_id}.jpg" >> $animes_titles - fi + echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $animes_titles printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG done < $SCRIPT_FOLDER/ID/animes.tsv \ No newline at end of file From 863d5983a0f6b600f227ee7d3720dc6e74118ec4 Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Sat, 21 Jan 2023 21:28:38 +0100 Subject: [PATCH 2/3] 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 From d39c7d1ea16e1ed0cf547871381bfe32123e1960 Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Sat, 21 Jan 2023 21:41:32 +0100 Subject: [PATCH 3/3] fix movies posters --- movies-renamer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/movies-renamer.sh b/movies-renamer.sh index e33a7e8..53c1320 100755 --- a/movies-renamer.sh +++ b/movies-renamer.sh @@ -226,8 +226,10 @@ do get-mal-poster # check / download poster if [ "$PMM_INSTALL_TYPE" == "docker" ] then - echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $animes_titles + echo " file_poster: $POSTERS_PMM_FOLDER/${mal_id}.jpg" >> $movies_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 + echo " file_poster: $POSTERS_FOLDER/${mal_id}.jpg" >> $movies_titles + printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG fi done < $SCRIPT_FOLDER/ID/movies.tsv \ No newline at end of file