Skip to content

Commit

Permalink
Fix animes season null
Browse files Browse the repository at this point in the history
  • Loading branch information
Arial-Z committed Feb 16, 2024
1 parent 164044e commit ab4079d
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 @@ -233,7 +233,7 @@ function get-studios() {
}
function get-animes-season-year () {
anime_season=$( (jq '.data.Media.season' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json" && jq '.data.Media.seasonYear' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json") | paste -sd ' ' | tr '[:upper:]' '[:lower:]' | sed "s/\( \|^\)\(.\)/\1\u\2/g")
if [ "$anime_season" == "Null null" ]
if [ "$anime_season" == "Null Null" ]
then
year_season=$(jq '.data.Media.startDate.year' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json")
month_season=$(jq '.data.Media.startDate.month' -r "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json")
Expand Down

0 comments on commit ab4079d

Please sign in to comment.