Skip to content

Commit

Permalink
Fix anify (#403)
Browse files Browse the repository at this point in the history
* wip
  • Loading branch information
riimuru authored Oct 23, 2023
1 parent d71bdca commit 807de89
Show file tree
Hide file tree
Showing 12 changed files with 156 additions and 167 deletions.
2 changes: 1 addition & 1 deletion dist/models/proxy.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/models/proxy.js.map

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

16 changes: 11 additions & 5 deletions dist/providers/anime/anify.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { AnimeParser, ISearch, IAnimeInfo, IAnimeResult, ISource, IEpisodeServer } from '../../models';
import { AxiosAdapter } from 'axios';
import { ProxyConfig } from '../../models';
type ProviderId = '9anime' | 'animepahe' | 'zoro' | 'gogoanime';
declare class Anify extends AnimeParser {
readonly name = "anify";
protected proxyConfig?: ProxyConfig | undefined;
protected adapter?: AxiosAdapter | undefined;
protected providerId: ProviderId;
readonly name = "Anify";
protected baseUrl: string;
protected classPath: string;
private readonly actions;
constructor(proxyConfig?: ProxyConfig | undefined, adapter?: AxiosAdapter | undefined, providerId?: ProviderId);
/**
* @param query Search query
* @param page Page number (optional)
Expand All @@ -15,16 +23,14 @@ declare class Anify extends AnimeParser {
search: (query: string, page?: number) => Promise<ISearch<IAnimeResult>>;
/**
* @param id Anime id
* @param providerId Provider id (optional) default: gogoanime
*/
fetchAnimeInfo: (id: string, providerId?: '9anime' | 'animepahe' | 'zoro' | 'gogoanime') => Promise<IAnimeInfo>;
fetchAnimeInfo: (id: string) => Promise<IAnimeInfo>;
fetchAnimeInfoByIdRaw: (id: string) => Promise<any>;
/**
* @param id anilist id
* @param providerId Provider id (optional) default: gogoanime
*/
fetchAnimeInfoByAnilistId: (id: string, providerId?: '9anime' | 'animepahe' | 'zoro' | 'gogoanime') => Promise<IAnimeInfo>;
fetchEpisodeSources: (episodeId: string, episodeNumber: number, id: string) => Promise<ISource>;
fetchEpisodeSources: (episodeId: string, episodeNumber: number, id: number) => Promise<ISource>;
/**
* @deprecated
*/
Expand Down
98 changes: 44 additions & 54 deletions dist/providers/anime/anify.js

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

Loading

0 comments on commit 807de89

Please sign in to comment.