feat(lists): add anilist support (#1949)

* fix(lists): clear selected list

* chore(web): improve onChange set values for select_wide

* feat(web): add anilist lists

* feat(web): Filter is required on ListForm

* fix(web): ListForm reset url when change type

* feat(lists): add anilist support

* feat(lists): filter duplicates for anilist

* feat(anilist): handle special characters

* fix(lists): better title matching
fix(lists): add alternatives to apostrophe replacement

* test(title): add some anime cases

* feat(anilist): replace unicodes with regex

* feat(lists): move additional anilist processing to autobrr instead of brr api

* feat(lists): clean Unicode Block “Latin Extended-A” chars

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
Fabricio Silva 2025-01-31 18:17:23 +00:00 committed by GitHub
parent 5e2769639f
commit b724429b97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 257 additions and 55 deletions

View file

@ -450,6 +450,10 @@ export const ListTypeOptions: OptionBasicTyped<ListType>[] = [
label: "Metacritic",
value: "METACRITIC"
},
{
label: "AniList",
value: "ANILIST"
},
];
export const ListTypeNameMap: Record<ListType, string> = {
@ -463,6 +467,7 @@ export const ListTypeNameMap: Record<ListType, string> = {
"METACRITIC": "Metacritic",
"STEAM": "Steam",
"PLAINTEXT": "Plaintext",
"ANILIST": "AniList",
};
export const NotificationTypeOptions: OptionBasicTyped<NotificationType>[] = [
@ -708,3 +713,18 @@ export const ListsMDBListOptions: OptionBasic[] = [
value: "https://mdblist.com/lists/garycrawfordgc/latest-tv-shows/json"
},
];
export const ListsAniListOptions: OptionBasic[] = [
{
label: "Current anime season",
value: "https://api.autobrr.com/lists/anilist/seasonal"
},
{
label: "Trending animes",
value: "https://api.autobrr.com/lists/anilist/trending"
},
{
label: "Next anime season",
value: "https://api.autobrr.com/lists/anilist/upcoming"
},
];