Skip to content

Commit

Permalink
rename aired id function
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbreckenridge committed Oct 8, 2023
1 parent 0578309 commit 46eb539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bot_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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
Expand Down

0 comments on commit 46eb539

Please sign in to comment.