From 46eb539e311b43c671568790321e75c032313c5f Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Sun, 8 Oct 2023 00:24:11 -0700 Subject: [PATCH] rename aired id function --- scripts/bot_sources.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bot_sources.sh b/scripts/bot_sources.sh index 6103a04..693c9f4 100644 --- a/scripts/bot_sources.sh +++ b/scripts/bot_sources.sh @@ -11,7 +11,7 @@ mal_sources_copy_vultr() { evry 5 minutes -mal_sources_copy_vultr && scp vultr:~/'code/mal-notify-bot/export.json' "${HOME}/.cache/source_cache.json" } -_mal_aired_anime_ids_raw() { +mal_aired_anime_ids_raw() { # just get the IDs of the anime that have aired, out of the load.json JSON mal_status 'Plan to Watch' | jq -r 'select(.airing_status != "Not Yet Aired") | .id' } @@ -20,7 +20,7 @@ mal_aired_anime_ids() { # find the intersection between my PTW and the aired anime # this way, I can update the XML file and things I drop from my PTW # will no longer appear in the output here - comm -1 -2 <(mal_xml_status_ids 'Plan to Watch' | sort) <(_mal_aired_anime_ids_raw | sort) + comm -1 -2 <(mal_xml_status_ids 'Plan to Watch' | sort) <(mal_aired_anime_ids_raw | sort) } # I use my PTW to track items that haven't aired yet