Skip to content

Commit

Permalink
Added Fmovies (consumet#300)
Browse files Browse the repository at this point in the history
* Added Fmovies

* [CodeFactor] Apply fixes to commit 002806d

* Refactored Fmovies

---------

Co-authored-by: codefactor-io <[email protected]>
  • Loading branch information
enimax-anime and code-factor authored Mar 10, 2023
1 parent 8a92cb5 commit 9eb430b
Show file tree
Hide file tree
Showing 8 changed files with 625 additions and 2 deletions.
39 changes: 39 additions & 0 deletions dist/providers/movies/fmovies.d.ts
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;
255 changes: 255 additions & 0 deletions dist/providers/movies/fmovies.js

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

Loading

0 comments on commit 9eb430b

Please sign in to comment.