Skip to content

Commit

Permalink
Merge pull request #11 from Arial-Z/main
Browse files Browse the repository at this point in the history
Fix movies poster going into animes metadata file
  • Loading branch information
Arial-Z authored Jan 21, 2023
2 parents b4a0940 + d39c7d1 commit f82b642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion animes-renamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ do
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
printf "$(date +%Y.%m.%d" - "%H:%M:%S)\t\tPoster added\n" >> $LOG
done < $SCRIPT_FOLDER/ID/animes.tsv
6 changes: 4 additions & 2 deletions movies-renamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f82b642

Please sign in to comment.