Skip to content

Commit

Permalink
Add Bilibili
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru committed Nov 1, 2022
1 parent 5144054 commit 5d3623e
Show file tree
Hide file tree
Showing 38 changed files with 552 additions and 24 deletions.
8 changes: 8 additions & 0 deletions dist/models/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ export interface IVideo {
* make sure to set this to `true` if the video is hls
*/
isM3U8?: boolean;
/**
* set this to `true` if the video is dash (mpd)
*/
isDASH?: boolean;
/**
* size of the video in **bytes**
*/
Expand Down Expand Up @@ -246,6 +250,10 @@ export interface ZLibrary extends Book {
pages: string;
}
export interface ISubtitle {
/**
* The id of the subtitle. **not** required
*/
id?: string;
/**
* The **url** that should take you to the subtitle **directly**.
*/
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.

6 changes: 4 additions & 2 deletions dist/providers/anime/animepahe.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/providers/anime/animepahe.js.map

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

17 changes: 17 additions & 0 deletions dist/providers/anime/bilibili.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { AnimeParser, IAnimeInfo, IAnimeResult, IEpisodeServer, ISearch, ISource } from '../../models';
declare class Bilibili extends AnimeParser {
readonly name = "Bilibili";
protected baseUrl: string;
protected logo: string;
protected classPath: string;
private apiUrl;
private cookie;
private locale;
private sgProxy;
constructor(cookie?: string, locale?: string);
search(query: string): Promise<ISearch<IAnimeResult>>;
fetchAnimeInfo(id: string): Promise<IAnimeInfo>;
fetchEpisodeSources(episodeId: string, ...args: any): Promise<ISource>;
fetchEpisodeServers(episodeId: string): Promise<IEpisodeServer[]>;
}
export default Bilibili;
Loading

0 comments on commit 5d3623e

Please sign in to comment.