Skip to content

Commit

Permalink
prefer english title
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnVN committed Dec 9, 2024
1 parent 6f12754 commit 0dde74b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/fetchanilist.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ async function fetchData() {
medium
}
title {
userPreferred
english
romaji
}
siteUrl
}
Expand All @@ -49,7 +50,7 @@ async function fetchData() {
i.media.siteUrl,
i.media.coverImage.medium,
`${i.status} ${i.progress}`.charAt(0).toUpperCase() + `${i.status} ${i.progress}`.slice(1),
i.media.title.userPreferred,
i.media.title.english || i.media.title.romaji,
i.createdAt
]));
}
Expand Down

0 comments on commit 0dde74b

Please sign in to comment.