Skip to content

Commit

Permalink
feat(anilist): added enime 2020 anime & characterInfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru committed Aug 27, 2022
1 parent 155ba51 commit d2ba9d5
Show file tree
Hide file tree
Showing 12 changed files with 349 additions and 22 deletions.
42 changes: 42 additions & 0 deletions dist/providers/meta/anilist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,48 @@ declare class Anilist extends AnimeParser {
* @returns anilist data for the anime
*/
fetchAnilistInfoById: (id: string) => Promise<IAnimeInfo>;
/**
*
* @param id character id from anilist
*/
fetchCharacterInfoById: (id: string) => Promise<{
id: any;
name: {
first: any;
last: any;
full: any;
native: any;
userPreferred: any;
alternative: any;
alternativeSpoiler: any;
};
image: any;
description: any;
gender: any;
dateOfBirth: {
year: any;
month: any;
day: any;
};
bloodType: any;
age: any;
hairColor: any;
eyeColor: any;
height: any;
weight: any;
occupation: any;
partner: any;
relatives: any;
race: any;
rank: any;
previousPosition: any;
dislikes: any;
sign: any;
zodicSign: any;
zodicAnimal: any;
themeSong: any;
relations: any;
}>;
/**
* Anilist Anime class
*/
Expand Down
155 changes: 144 additions & 11 deletions dist/providers/meta/anilist.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/providers/meta/anilist.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GogoCDN, StreamSB, VidCloud, MixDrop, Kwik, RapidCloud, StreamTape, VizCloud, Filemoon } from './extractors';
import { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, anilistTrendingAnimeQuery, anilistPopularAnimeQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery } from './utils';
import { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, anilistTrendingAnimeQuery, anilistPopularAnimeQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistCharacterQuery } from './utils';
import { parsePostInfo } from './getComics';
import { countDivs } from './zLibrary';
export { USER_AGENT, GogoCDN, StreamSB, splitAuthor, floorID, formatTitle, parsePostInfo, genElement, capitalizeFirstLetter, countDivs, VidCloud, MixDrop, Kwik, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, RapidCloud, StreamTape, VizCloud, anilistTrendingAnimeQuery, anilistPopularAnimeQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, Filemoon, };
export { USER_AGENT, GogoCDN, StreamSB, splitAuthor, floorID, formatTitle, parsePostInfo, genElement, capitalizeFirstLetter, countDivs, VidCloud, MixDrop, Kwik, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, range, RapidCloud, StreamTape, VizCloud, anilistTrendingAnimeQuery, anilistPopularAnimeQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, Filemoon, anilistCharacterQuery, };
3 changes: 2 additions & 1 deletion dist/utils/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/utils/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export declare const anilistPopularAnimeQuery: (page?: number, perPage?: number)
export declare const anilistGenresQuery: (genres: string[], page?: number, perPage?: number) => string;
export declare const anilistAiringScheduleQuery: (page: number | undefined, perPage: number | undefined, weekStart: number, weekEnd: number, notYetAired: boolean) => string;
export declare const anilistSiteStatisticsQuery: () => string;
export declare const anilistCharacterQuery: () => string;
export declare const kitsuSearchQuery: (query: string) => string;
4 changes: 3 additions & 1 deletion dist/utils/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d2ba9d5

Please sign in to comment.