Skip to content

Commit

Permalink
feat: Add MovieHD.watch Provider (#349)
Browse files Browse the repository at this point in the history
* feat: Add moviehd.watch source

* fix codefactor issues
  • Loading branch information
Raghav1729 committed Jun 24, 2023
1 parent 77b6096 commit 06184a7
Show file tree
Hide file tree
Showing 19 changed files with 1,349 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/providers/movies/goku.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/movies/goku.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/providers/movies/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import ViewAsian from './viewAsian';
import DramaCool from './dramacool';
import Fmovies from './fmovies';
import Goku from './goku';
import MovieHdWatch from './movidhdwatch';
declare const _default: {
FlixHQ: typeof FlixHQ;
ViewAsian: typeof ViewAsian;
DramaCool: typeof DramaCool;
Fmovies: typeof Fmovies;
Goku: typeof Goku;
MovieHdWatch: typeof MovieHdWatch;
};
export default _default;
3 changes: 2 additions & 1 deletion dist/providers/movies/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/providers/movies/index.js.map

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

37 changes: 37 additions & 0 deletions dist/providers/movies/movidhdwatch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { MovieParser, TvType, IMovieInfo, IEpisodeServer, StreamingServers, ISource, IMovieResult, ISearch } from '../../models';
declare class MovieHdWatch extends MovieParser {
readonly name = "MovieHdWatch";
protected baseUrl: string;
protected logo: string;
protected classPath: string;
supportedTypes: Set<TvType>;
/**
*
* @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 `VidCloud`) (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[]>;
fetchRecentMovies: () => Promise<IMovieResult[]>;
fetchRecentTvShows: () => Promise<IMovieResult[]>;
fetchTrendingMovies: () => Promise<IMovieResult[]>;
fetchTrendingTvShows: () => Promise<IMovieResult[]>;
}
export default MovieHdWatch;
374 changes: 374 additions & 0 deletions dist/providers/movies/movidhdwatch.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/providers/movies/movidhdwatch.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/utils/providers-list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare const PROVIDERS_LIST: {
BOOKS: import("../providers/books/libgen").default[];
COMICS: import("../providers/comics/getComics").default[];
LIGHT_NOVELS: import("../providers/light-novels/readlightnovels").default[];
MOVIES: (import("../providers/movies/flixhq").default | import("../providers/movies/viewAsian").default | import("../providers/movies/dramacool").default | import("../providers/movies/fmovies").default | import("../providers/movies/goku").default)[];
MOVIES: (import("../providers/movies/flixhq").default | import("../providers/movies/viewAsian").default | import("../providers/movies/dramacool").default | import("../providers/movies/fmovies").default | import("../providers/movies/goku").default | import("../providers/movies/movidhdwatch").default)[];
NEWS: import("../providers/news/animenewsnetwork").default[];
META: (import("../providers/meta/anilist").default | import("../providers/meta/mal").default | import("../providers/meta/tmdb").default)[];
OTHERS: never[];
Expand Down
1 change: 1 addition & 0 deletions dist/utils/providers-list.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/utils/providers-list.js.map

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

2 changes: 2 additions & 0 deletions docs/guides/movies.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const movieProvider = MOVIES.<providerName>();
## Movies Providers List
This list is in alphabetical order. (except the sub bullet points)

- [Goku](../providers/goku.md)
- [MovieHdWatch](../providers/moviehdwatch.md)
- [FlixHQ](../providers/flixhq.md)
- [ViewAsian](../providers/viewAsian.md)

Expand Down
Loading

0 comments on commit 06184a7

Please sign in to comment.