Skip to content

Commit

Permalink
chore: bump version 1.2.13-rc -> 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru committed Dec 26, 2022
1 parent 708d19e commit c3497c8
Show file tree
Hide file tree
Showing 46 changed files with 1,082 additions and 654 deletions.
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ANIME, BOOKS, COMICS, LIGHT_NOVELS, MANGA, MOVIES, META, NEWS } from './providers';
import { PROVIDERS_LIST } from './utils/providers-list';
import { VizCloud, AsianLoad, GogoCDN, Kwik, MixDrop, RapidCloud, BilibiliExtractor, Filemoon, StreamSB, StreamTape, VidCloud } from './extractors';
import { IProviderStats, ISearch, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, LibgenBook, StreamingServers, MediaStatus, SubOrSub, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, GetComicsComics, ComicRes, IMangaChapterPage, TvType, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, Genres, INewsFeed, Topics, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig } from './models';
export { ANIME, BOOKS, COMICS, MANGA, LIGHT_NOVELS, MOVIES, META, NEWS };
export { PROVIDERS_LIST };
export { Topics, Genres, SubOrSub, StreamingServers, MediaStatus, IProviderStats, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, LibgenBook, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, GetComicsComics, ComicRes, ISearch, IMangaChapterPage, TvType, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, INewsFeed, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig, };
export { Topics, Genres, SubOrSub, StreamingServers, MediaStatus, IProviderStats, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, LibgenBook, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, GetComicsComics, ComicRes, ISearch, IMangaChapterPage, TvType, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, INewsFeed, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig, GogoCDN, StreamSB, VidCloud, MixDrop, Kwik, RapidCloud, StreamTape, VizCloud, Filemoon, BilibiliExtractor, AsianLoad, };
14 changes: 13 additions & 1 deletion dist/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/index.js.map

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

4 changes: 2 additions & 2 deletions dist/models/movie-parser.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseParser, TvType, ISource, IEpisodeServer } from '.';
import { BaseParser, TvType, ISource, IEpisodeServer, IMovieInfo, IAnimeInfo } from '.';
declare abstract class MovieParser extends BaseParser {
/**
* The supported types of the provider (e.g. `TV`, `Movie`)
Expand All @@ -9,7 +9,7 @@ declare abstract class MovieParser extends BaseParser {
*
* returns media info (including episodes)
*/
abstract fetchMediaInfo(mediaId: string): Promise<unknown>;
abstract fetchMediaInfo(mediaId: string, type?: string): Promise<IMovieInfo | IAnimeInfo>;
/**
* takes episode id
*
Expand Down
2 changes: 1 addition & 1 deletion dist/models/movie-parser.js.map

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

23 changes: 23 additions & 0 deletions dist/models/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@ export interface IAnimeInfo extends IAnimeResult {
recommendations?: IAnimeResult[];
relations?: IAnimeResult[];
}
export interface IAnimeEpisodeV2 {
[x: string]: {
id: string;
season_number: number;
title: string;
image: string;
description: string;
releaseDate: string;
isHD: boolean;
isAdult: boolean;
isDubbed: boolean;
isSubbed: boolean;
duration: number;
}[];
}
export interface IAnimeEpisode {
id: string;
number: number;
Expand Down Expand Up @@ -292,6 +307,7 @@ export interface IMovieEpisode {
url?: string;
number?: number;
season?: number;
description?: string;
image?: string;
releaseDate?: string;
[x: string]: unknown;
Expand Down Expand Up @@ -336,6 +352,8 @@ interface INewsFeedPreview {
full: string;
}
export interface IMovieInfo extends IMovieResult {
cover?: string;
recommendations?: IMovieResult[];
genres?: string[];
description?: string;
rating?: number;
Expand All @@ -345,6 +363,11 @@ export interface IMovieInfo extends IMovieResult {
casts?: string[];
tags?: string[];
totalEpisodes?: number;
seasons?: {
season: number;
image?: string;
episodes: IMovieEpisode[];
}[];
episodes?: IMovieEpisode[];
}
export declare enum Genres {
Expand Down
2 changes: 1 addition & 1 deletion dist/models/types.js.map

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

44 changes: 0 additions & 44 deletions dist/providers/anime/crunchyroll.d.ts
Original file line number Diff line number Diff line change
@@ -1,44 +0,0 @@
import { AnimeParser, ISearch, IAnimeInfo, IAnimeResult, ISource, IEpisodeServer } from '../../models';
declare class Crunchyroll extends AnimeParser {
readonly name = "Crunchyroll";
protected baseUrl: string;
protected logo: string;
protected classPath: string;
private locale;
private channelId;
private TOKEN;
private options;
private locales;
private subOrder;
fetch(locale?: string, token?: string, accessToken?: string): Promise<any>;
/**
*
* @param locale Locale (default: en-US) (ar-ME, ar-SA, de-DE, en-US, es-419, es-ES, fr-FR, he-IL, it-IT, pt-BR, pl-PL, ru-RU, tr-TR)
* @param token Token
* @param accessToken Access Token
*/
static create(locale?: string, token?: string, accessToken?: string): Promise<Crunchyroll>;
/**
* @param query Search query
* @param limit Limit of results (default: 25) (max: 100)
*/
search: (query: string, limit?: number) => Promise<ISearch<IAnimeResult>>;
/**
* @param id Anime id
* @param mediaType Anime type (series, movie)
*/
fetchAnimeInfo: (id: string, mediaType: string) => Promise<IAnimeInfo>;
/**
*
* @param episodeId Episode id
* @param format subtitle format (default: `srt`) (srt, vtt, ass)
* @param type Video type (default: `adaptive_hls` (m3u8)) `adaptive_dash` (dash), `drm_adaptive_dash` (dash with drm)
*/
fetchEpisodeSources: (episodeId: string, format?: string, type?: string) => Promise<ISource>;
/**
*
* @param episodeId Episode id
*/
fetchEpisodeServers: (episodeId: string) => Promise<IEpisodeServer[]>;
}
export default Crunchyroll;
Loading

0 comments on commit c3497c8

Please sign in to comment.