forked from consumet/consumet.ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Fmovies * [CodeFactor] Apply fixes to commit 002806d * Refactored Fmovies --------- Co-authored-by: codefactor-io <[email protected]>
- Loading branch information
1 parent
8a92cb5
commit 9eb430b
Showing
8 changed files
with
625 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { MovieParser, TvType, IMovieInfo, IEpisodeServer, StreamingServers, ISource, IMovieResult, ISearch } from '../../models'; | ||
declare class Fmovies extends MovieParser { | ||
private fmoviesResolver; | ||
private apiKey; | ||
readonly name = "Fmovies"; | ||
protected baseUrl: string; | ||
protected logo: string; | ||
protected classPath: string; | ||
supportedTypes: Set<TvType>; | ||
constructor(fmoviesResolver?: string, apiKey?: string); | ||
/** | ||
* | ||
* @param query search query string | ||
* @param page page number (default 1) (optional) | ||
*/ | ||
search: (query: string, page?: number) => Promise<ISearch<IMovieResult>>; | ||
/** | ||
* | ||
* @param mediaId media link or id | ||
*/ | ||
fetchMediaInfo: (mediaId: string) => Promise<IMovieInfo>; | ||
/** | ||
* | ||
* @param episodeId episode id | ||
* @param mediaId media id | ||
* @param server server type (default `Vizcloud`) (optional) | ||
*/ | ||
fetchEpisodeSources: (episodeId: string, mediaId: string, server?: StreamingServers) => Promise<ISource>; | ||
/** | ||
* | ||
* @param episodeId takes episode link or movie id | ||
* @param mediaId takes movie link or id (found on movie info object) | ||
*/ | ||
fetchEpisodeServers: (episodeId: string, mediaId: string) => Promise<IEpisodeServer[]>; | ||
private ev; | ||
private decrypt; | ||
private ajaxReqUrl; | ||
} | ||
export default Fmovies; |
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.