Skip to content

Commit

Permalink
Re add log for airing info
Browse files Browse the repository at this point in the history
  • Loading branch information
Arial-Z committed Feb 26, 2024
1 parent 2abe0c7 commit 2078086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ function get-airing-status () {
:> "$SCRIPT_FOLDER/config/tmp/airing_sequel_tmp.json"
while IFS=$'\n' read -r anilist_id
do
printf "%s\t\t\t - Downloading airing info for Anilist : %s\n" "$(date +%H:%M:%S)" "$anilist_id" | tee -a "$LOG"
get-anilist-infos
cat "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json" >> "$SCRIPT_FOLDER/config/tmp/airing_sequel_tmp.json"
done < "$SCRIPT_FOLDER/config/tmp/airing_sequel_tmp.txt"
Expand Down Expand Up @@ -323,6 +324,7 @@ function get-airing-status () {
fi
fi
else
printf "%s\t\t\t - Downloading airing info for Anilist : %s\n" "$(date +%H:%M:%S)" "$anilist_id" | tee -a "$LOG"
get-anilist-infos
sequel_data=$(jq '.data.Media.relations.edges[] | select ( .relationType == "SEQUEL" ) | .node | select ( .format == "TV" or .format == "ONA" or .format == "MOVIE" or .format == "OVA" )' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json")
if [ -z "$sequel_data" ]
Expand Down

0 comments on commit 2078086

Please sign in to comment.