Skip to content

Commit

Permalink
feat+fix(Anix): fetchEpisodeServerType & fetchEpisodeSources (#629)
Browse files Browse the repository at this point in the history
* Fix gogoanime

* Update gogo

* Build

* Update(Anix): Two new types fetchRecentEpisodes

* Restore test anilist

* fetchEpisodeSources: Type

* Comments

* Fix(Anix): fetchEpisodeSources

* Fix(Anix): fetchEpisodeSources

* Delete console.log

* Update IF

* Update tests

---------

Co-authored-by: Marouane <57333995+riimuru@users.noreply.github.com>
  • Loading branch information
carlosesteven and riimuru authored Dec 21, 2024
1 parent bba8edb commit 55b6996
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 55 deletions.
14 changes: 13 additions & 1 deletion dist/providers/anime/anix.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,25 @@ declare class Anix extends AnimeParser {
* @param id Anime id
* @param episodeId Episode id
* @param server Streaming server(optional)
* @param type Type (optional) (options: `sub`, `dub`, `raw`)
*/
fetchEpisodeSources: (id: string, episodeId: string, server?: StreamingServers) => Promise<ISource>;
fetchEpisodeSources: (id: string, episodeId: string, server?: StreamingServers, type?: string) => Promise<ISource>;
/**
*
* @param id Anime id
* @param episodeId Episode id
*/
fetchEpisodeServers: (id: string, episodeId: string) => Promise<IEpisodeServer[]>;
/**
*
* @param id Anime id
* @param episodeId Episode id
* @param type Type (optional) (options: `sub`, `dub`, `raw`)
*/
fetchEpisodeServerType: (id: string, episodeId: string, type?: string) => Promise<{
sub: IEpisodeServer[];
dub: IEpisodeServer[];
raw: IEpisodeServer[];
} | IEpisodeServer[]>;
}
export default Anix;
123 changes: 97 additions & 26 deletions dist/providers/anime/anix.js

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

Loading

0 comments on commit 55b6996

Please sign in to comment.