Skip to content

Commit 05ffb78

Browse files
authored
Switch to minified anime-list JSON (#913)
1 parent 3100e85 commit 05ffb78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ afterAll(async () => {
2424
})
2525

2626
it("handles bad values", async () => {
27-
server.get("/Fribb/anime-lists/master/anime-list-full.json", {
27+
server.get("/Fribb/anime-lists/master/anime-list-mini.json", {
2828
status: 200,
2929
body: [
3030
{ anidb_id: 1337, themoviedb_id: "unknown" },
@@ -82,7 +82,7 @@ it("handles duplicates", async () => {
8282
mocker.unmockGlobal()
8383

8484
const entries: Relation[] = await fetch(
85-
"https://raw.githubusercontent.com/Fribb/anime-lists/master/anime-list-full.json",
85+
"https://raw.githubusercontent.com/Fribb/anime-lists/master/anime-list-mini.json",
8686
)
8787
.then(async (r) => r.json())
8888
.then((e) => (e as any[]).map(formatEntry))

src/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type AnimeListsSchema = Array<{
2828
const fetchDatabase = async (): Promise<AnimeListsSchema | null> => {
2929
const response = await http
3030
.get<AnimeListsSchema>(
31-
"https://raw.githubusercontent.com/Fribb/anime-lists/master/anime-list-full.json",
31+
"https://raw.githubusercontent.com/Fribb/anime-lists/master/anime-list-mini.json",
3232
)
3333
.catch((error: XiorError) => error)
3434

0 commit comments

Comments
 (0)