-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
97 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { BaseParser, TvType } from '.'; | ||
import { BaseParser, TvType, ISource, IEpisodeServer } from '.'; | ||
declare abstract class MovieParser extends BaseParser { | ||
/** | ||
* The supported types of the provider (e.g. `TV`, `Movie`) | ||
*/ | ||
protected abstract supportedTypes: Set<TvType>; | ||
abstract supportedTypes: Set<TvType>; | ||
/** | ||
* takes media link or id | ||
* | ||
* returns media info (including episodes) | ||
*/ | ||
protected abstract fetchMediaInfo(mediaUrl: string): Promise<unknown>; | ||
abstract fetchMediaInfo(mediaUrl: string): Promise<unknown>; | ||
/** | ||
* takes episode or movie id | ||
* | ||
* returns episode sources (video links) | ||
*/ | ||
protected abstract fetchEpisodeSources(mediaId: string, ...args: any): Promise<unknown>; | ||
abstract fetchEpisodeSources(mediaId: string, ...args: any): Promise<ISource>; | ||
/** | ||
* takes episode link | ||
* | ||
* returns episode servers (video links) available | ||
*/ | ||
protected abstract fetchEpisodeServers(mediaLink: string, ...args: any): Promise<unknown>; | ||
abstract fetchEpisodeServers(mediaLink: string, ...args: any): Promise<IEpisodeServer[]>; | ||
} | ||
export default MovieParser; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.