Skip to content

Commit

Permalink
Merge pull request #34 from Arial-Z/main
Browse files Browse the repository at this point in the history
Fix tags
  • Loading branch information
Arial-Z authored Nov 19, 2023
2 parents b94c439 + 142c733 commit a7b735a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function get-mal-score () {
fi
}
function get-tags () {
(jq --arg anilist_tags_p "$ANILIST_TAGS_P" '.data.Media.genres | .[]' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json" && jq '.data.Media.tags | .[] | select( .rank >= "$anilist_tags_p" ) | .name' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json") | awk '{print $0}' | paste -sd ','
(jq '.data.Media.genres | .[]' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json" && jq --argjson anilist_tags_p "$ANILIST_TAGS_P" '.data.Media.tags | .[] | select( .rank >= $anilist_tags_p ) | .name' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json") | awk '{print $0}' | paste -sd ','
}
function get-studios() {
if awk -F"\t" '{print $2}' "$SCRIPT_FOLDER/config/$OVERRIDE" | grep -q -w "$anilist_id"
Expand Down

0 comments on commit a7b735a

Please sign in to comment.