react-native-consumet 1.0.0-rc.0 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/extension-registry.json +81 -81
- package/lib/commonjs/extractors/filemoon.js +2 -2
- package/lib/commonjs/extractors/kwik.js +4 -4
- package/lib/commonjs/extractors/megacloud.js +6 -6
- package/lib/commonjs/index.js +2 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/types.js +4 -4
- package/lib/commonjs/models/video-extractor.js +4 -4
- package/lib/commonjs/providers/anime/animedrive.js +12 -12
- package/lib/commonjs/providers/anime/animekai.js +41 -41
- package/lib/commonjs/providers/anime/animepahe/animepahe.js +16 -15
- package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +0 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animeunity.js +13 -13
- package/lib/commonjs/providers/anime/index.js +4 -4
- package/lib/commonjs/providers/anime/index.js.map +1 -1
- package/lib/commonjs/providers/anime/marin.js +12 -12
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +0 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +72 -71
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/manga/brmangas.js +3 -3
- package/lib/commonjs/providers/meta/anilist.js +91 -91
- package/lib/commonjs/providers/meta/mal.js +12 -12
- package/lib/commonjs/providers/meta/tmdb.js +21 -21
- package/lib/commonjs/providers/movies/himovies/create-himovies.js +16 -16
- package/lib/commonjs/providers/movies/himovies/himovies.js +16 -16
- package/lib/commonjs/providers/movies/multimovies.js +15 -15
- package/lib/commonjs/providers/movies/multistream/index.js +16 -16
- package/lib/commonjs/utils/ExtractorManager.js +15 -15
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +28 -28
- package/lib/commonjs/utils/create-extractor-context.js +2 -2
- package/lib/commonjs/utils/create-provider-context.js +6 -6
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +35 -53
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/index.js +2 -2
- package/lib/commonjs/utils/provider-maps.js +31 -0
- package/lib/commonjs/utils/provider-maps.js.map +1 -0
- package/lib/commonjs/utils/providers-list.js +4 -4
- package/lib/commonjs/utils/url-polyfill.js +4 -4
- package/lib/module/extension-registry.json +81 -81
- package/lib/module/extractors/filemoon.js +2 -2
- package/lib/module/extractors/kwik.js +4 -4
- package/lib/module/extractors/megacloud.js +6 -6
- package/lib/module/index.js +3 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/types.js +4 -4
- package/lib/module/models/video-extractor.js +4 -4
- package/lib/module/providers/anime/animedrive.js +12 -12
- package/lib/module/providers/anime/animekai.js +41 -41
- package/lib/module/providers/anime/animepahe/animepahe.js +14 -14
- package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animeunity.js +13 -13
- package/lib/module/providers/anime/index.js +2 -2
- package/lib/module/providers/anime/index.js.map +1 -1
- package/lib/module/providers/anime/marin.js +12 -12
- package/lib/module/providers/anime/zoro/create-zoro.js +1 -1
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +70 -70
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/manga/brmangas.js +3 -3
- package/lib/module/providers/meta/anilist.js +91 -91
- package/lib/module/providers/meta/mal.js +12 -12
- package/lib/module/providers/meta/tmdb.js +21 -21
- package/lib/module/providers/movies/himovies/create-himovies.js +16 -16
- package/lib/module/providers/movies/himovies/himovies.js +16 -16
- package/lib/module/providers/movies/multimovies.js +15 -15
- package/lib/module/providers/movies/multistream/index.js +16 -16
- package/lib/module/utils/ExtractorManager.js +16 -16
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +28 -28
- package/lib/module/utils/create-extractor-context.js +2 -2
- package/lib/module/utils/create-provider-context.js +7 -7
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +14 -32
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/provider-maps.js +27 -0
- package/lib/module/utils/provider-maps.js.map +1 -0
- package/lib/module/utils/providers-list.js +4 -4
- package/lib/module/utils/url-polyfill.js +4 -4
- package/lib/typescript/commonjs/src/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +1 -20
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +27 -0
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +4 -4
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/index.d.ts +2 -2
- package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts +1 -20
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +2 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +27 -0
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -0
- package/package.json +206 -203
- package/src/extension-registry.json +81 -81
- package/src/extractors/StreamP2P.ts +60 -60
- package/src/extractors/filemoon.ts +58 -58
- package/src/extractors/index.ts +41 -41
- package/src/extractors/kwik.ts +50 -50
- package/src/extractors/megacloud.ts +163 -163
- package/src/extractors/mixdrop.ts +31 -31
- package/src/extractors/mp4upload.ts +31 -31
- package/src/extractors/streamhub.ts +58 -58
- package/src/extractors/streamwish.ts +120 -120
- package/src/extractors/vidhide.ts +59 -59
- package/src/index.tsx +174 -175
- package/src/models/extension-manifest.ts +77 -77
- package/src/models/extractor-context.ts +41 -41
- package/src/models/index.ts +106 -106
- package/src/models/provider-context.ts +182 -182
- package/src/models/types.ts +531 -531
- package/src/models/video-extractor.ts +48 -48
- package/src/providers/anime/animedrive.ts +245 -245
- package/src/providers/anime/animekai.ts +627 -627
- package/src/providers/anime/animepahe/animepahe.ts +76 -76
- package/src/providers/anime/animepahe/create-animepahe.ts +348 -348
- package/src/providers/anime/animeunity.ts +216 -216
- package/src/providers/anime/index.ts +21 -21
- package/src/providers/anime/marin.ts +319 -319
- package/src/providers/anime/zoro/create-zoro.ts +655 -655
- package/src/providers/anime/zoro/zoro.ts +197 -197
- package/src/providers/index.ts +7 -7
- package/src/providers/manga/brmangas.ts +144 -144
- package/src/providers/meta/anilist.ts +2108 -2108
- package/src/providers/meta/mal.ts +635 -635
- package/src/providers/meta/tmdb.ts +470 -470
- package/src/providers/movies/himovies/create-himovies.ts +529 -529
- package/src/providers/movies/himovies/himovies.ts +90 -90
- package/src/providers/movies/index.ts +15 -15
- package/src/providers/movies/multimovies.ts +495 -495
- package/src/providers/movies/multistream/index.ts +231 -231
- package/src/utils/ExtractorManager.ts +311 -311
- package/src/utils/ProviderManager.ts +424 -424
- package/src/utils/create-extractor-context.ts +22 -22
- package/src/utils/create-provider-context.ts +107 -107
- package/src/utils/extension-utils.ts +91 -114
- package/src/utils/index.ts +96 -95
- package/src/utils/provider-maps.ts +31 -0
- package/src/utils/providers-list.ts +27 -27
- package/src/utils/url-polyfill.ts +642 -642
- package/src/utils/utils.ts +374 -374
|
@@ -23,12 +23,12 @@ class Anilist extends _index.AnimeParser {
|
|
|
23
23
|
kitsuGraphqlUrl = 'https://kitsu.io/api/graphql';
|
|
24
24
|
malSyncUrl = 'https://api.malsync.moe';
|
|
25
25
|
anifyUrl = _utils.ANIFY_URL;
|
|
26
|
-
/**
|
|
27
|
-
* This class maps anilist to kitsu with any other anime provider.
|
|
28
|
-
* kitsu is used for episode images, titles and description.
|
|
29
|
-
* @param provider anime provider (optional) default: Gogoanime
|
|
30
|
-
* @param proxyConfig proxy config (optional)
|
|
31
|
-
* @param adapter axios adapter (optional)
|
|
26
|
+
/**
|
|
27
|
+
* This class maps anilist to kitsu with any other anime provider.
|
|
28
|
+
* kitsu is used for episode images, titles and description.
|
|
29
|
+
* @param provider anime provider (optional) default: Gogoanime
|
|
30
|
+
* @param proxyConfig proxy config (optional)
|
|
31
|
+
* @param adapter axios adapter (optional)
|
|
32
32
|
*/
|
|
33
33
|
constructor(provider, proxyConfig, adapter, customBaseURL) {
|
|
34
34
|
super();
|
|
@@ -36,10 +36,10 @@ class Anilist extends _index.AnimeParser {
|
|
|
36
36
|
this.provider = provider || new _zoro.default(customBaseURL);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* @param query Search query
|
|
41
|
-
* @param page Page number (optional)
|
|
42
|
-
* @param perPage Number of results per page (optional) (default: 15) (max: 50)
|
|
39
|
+
/**
|
|
40
|
+
* @param query Search query
|
|
41
|
+
* @param page Page number (optional)
|
|
42
|
+
* @param perPage Number of results per page (optional) (default: 15) (max: 50)
|
|
43
43
|
*/
|
|
44
44
|
search = async (query, page = 1, perPage = 15) => {
|
|
45
45
|
const options = {
|
|
@@ -109,19 +109,19 @@ class Anilist extends _index.AnimeParser {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @param query Search query (optional)
|
|
115
|
-
* @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
|
|
116
|
-
* @param page Page number (optional)
|
|
117
|
-
* @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
|
|
118
|
-
* @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
|
|
119
|
-
* @param sort Sort (optional) (Default: `[POPULARITY_DESC, SCORE_DESC]`) (options: `POPULARITY_DESC`, `POPULARITY`, `TRENDING_DESC`, `TRENDING`, `UPDATED_AT_DESC`, `UPDATED_AT`, `START_DATE_DESC`, `START_DATE`, `END_DATE_DESC`, `END_DATE`, `FAVOURITES_DESC`, `FAVOURITES`, `SCORE_DESC`, `SCORE`, `TITLE_ROMAJI_DESC`, `TITLE_ROMAJI`, `TITLE_ENGLISH_DESC`, `TITLE_ENGLISH`, `TITLE_NATIVE_DESC`, `TITLE_NATIVE`, `EPISODES_DESC`, `EPISODES`, `ID`, `ID_DESC`)
|
|
120
|
-
* @param genres Genres (optional) (options: `Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`)
|
|
121
|
-
* @param id anilist Id (optional)
|
|
122
|
-
* @param year Year (optional) e.g. `2022`
|
|
123
|
-
* @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
|
|
124
|
-
* @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param query Search query (optional)
|
|
115
|
+
* @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
|
|
116
|
+
* @param page Page number (optional)
|
|
117
|
+
* @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
|
|
118
|
+
* @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
|
|
119
|
+
* @param sort Sort (optional) (Default: `[POPULARITY_DESC, SCORE_DESC]`) (options: `POPULARITY_DESC`, `POPULARITY`, `TRENDING_DESC`, `TRENDING`, `UPDATED_AT_DESC`, `UPDATED_AT`, `START_DATE_DESC`, `START_DATE`, `END_DATE_DESC`, `END_DATE`, `FAVOURITES_DESC`, `FAVOURITES`, `SCORE_DESC`, `SCORE`, `TITLE_ROMAJI_DESC`, `TITLE_ROMAJI`, `TITLE_ENGLISH_DESC`, `TITLE_ENGLISH`, `TITLE_NATIVE_DESC`, `TITLE_NATIVE`, `EPISODES_DESC`, `EPISODES`, `ID`, `ID_DESC`)
|
|
120
|
+
* @param genres Genres (optional) (options: `Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`)
|
|
121
|
+
* @param id anilist Id (optional)
|
|
122
|
+
* @param year Year (optional) e.g. `2022`
|
|
123
|
+
* @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
|
|
124
|
+
* @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
|
|
125
125
|
*/
|
|
126
126
|
advancedSearch = async (query, type = 'ANIME', page = 1, perPage = 20, format, sort, genres, id, year, status, season) => {
|
|
127
127
|
const options = {
|
|
@@ -215,11 +215,11 @@ class Anilist extends _index.AnimeParser {
|
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @param id Anime id
|
|
221
|
-
* @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
|
|
222
|
-
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @param id Anime id
|
|
221
|
+
* @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
|
|
222
|
+
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
223
223
|
*/
|
|
224
224
|
fetchAnimeInfo = async (id, fetchFiller = false) => {
|
|
225
225
|
const animeInfo = {
|
|
@@ -473,9 +473,9 @@ class Anilist extends _index.AnimeParser {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
/**
|
|
477
|
-
*
|
|
478
|
-
* @param episodeId Episode id
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @param episodeId Episode id
|
|
479
479
|
*/
|
|
480
480
|
fetchEpisodeSources = async (episodeId, ...args) => {
|
|
481
481
|
try {
|
|
@@ -486,9 +486,9 @@ class Anilist extends _index.AnimeParser {
|
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
|
|
489
|
-
/**
|
|
490
|
-
*
|
|
491
|
-
* @param episodeId Episode id
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @param episodeId Episode id
|
|
492
492
|
*/
|
|
493
493
|
fetchEpisodeServers = async episodeId => {
|
|
494
494
|
try {
|
|
@@ -498,9 +498,9 @@ class Anilist extends _index.AnimeParser {
|
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
|
|
501
|
-
/**
|
|
502
|
-
* @param page page number to search for (optional)
|
|
503
|
-
* @param perPage number of results per page (optional)
|
|
501
|
+
/**
|
|
502
|
+
* @param page page number to search for (optional)
|
|
503
|
+
* @param perPage number of results per page (optional)
|
|
504
504
|
*/
|
|
505
505
|
fetchTrendingAnime = async (page = 1, perPage = 10) => {
|
|
506
506
|
const options = {
|
|
@@ -553,10 +553,10 @@ class Anilist extends _index.AnimeParser {
|
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
|
|
556
|
-
/**
|
|
557
|
-
*
|
|
558
|
-
* @param page page number to search for (optional)
|
|
559
|
-
* @param perPage number of results per page (optional)
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @param page page number to search for (optional)
|
|
559
|
+
* @param perPage number of results per page (optional)
|
|
560
560
|
*/
|
|
561
561
|
fetchPopularAnime = async (page = 1, perPage = 10) => {
|
|
562
562
|
const options = {
|
|
@@ -609,14 +609,14 @@ class Anilist extends _index.AnimeParser {
|
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
611
|
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
* @param page page number (optional)
|
|
615
|
-
* @param perPage number of results per page (optional)
|
|
616
|
-
* @param weekStart Filter by the start of the week (optional) (default: todays date) (options: 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday, 0 = Saturday, 1 = Sunday) you can use either the number or the string
|
|
617
|
-
* @param weekEnd Filter by the end of the week (optional) similar to weekStart
|
|
618
|
-
* @param notYetAired if true will return anime that have not yet aired (optional)
|
|
619
|
-
* @returns the next airing episodes
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @param page page number (optional)
|
|
615
|
+
* @param perPage number of results per page (optional)
|
|
616
|
+
* @param weekStart Filter by the start of the week (optional) (default: todays date) (options: 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday, 0 = Saturday, 1 = Sunday) you can use either the number or the string
|
|
617
|
+
* @param weekEnd Filter by the end of the week (optional) similar to weekStart
|
|
618
|
+
* @param notYetAired if true will return anime that have not yet aired (optional)
|
|
619
|
+
* @returns the next airing episodes
|
|
620
620
|
*/
|
|
621
621
|
fetchAiringSchedule = async (page = 1, perPage = 20, weekStart = (new Date().getDay() + 1) % 7, weekEnd = (new Date().getDay() + 7) % 7, notYetAired = false) => {
|
|
622
622
|
let day1, day2;
|
|
@@ -665,11 +665,11 @@ class Anilist extends _index.AnimeParser {
|
|
|
665
665
|
}
|
|
666
666
|
};
|
|
667
667
|
|
|
668
|
-
/**
|
|
669
|
-
*
|
|
670
|
-
* @param genres An array of genres to filter by (optional) genres: [`Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`]
|
|
671
|
-
* @param page page number (optional)
|
|
672
|
-
* @param perPage number of results per page (optional)
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @param genres An array of genres to filter by (optional) genres: [`Action`, `Adventure`, `Cars`, `Comedy`, `Drama`, `Fantasy`, `Horror`, `Mahou Shoujo`, `Mecha`, `Music`, `Mystery`, `Psychological`, `Romance`, `Sci-Fi`, `Slice of Life`, `Sports`, `Supernatural`, `Thriller`]
|
|
671
|
+
* @param page page number (optional)
|
|
672
|
+
* @param perPage number of results per page (optional)
|
|
673
673
|
*/
|
|
674
674
|
fetchAnimeGenres = async (genres, page = 1, perPage = 20) => {
|
|
675
675
|
if (genres.length === 0) throw new Error('No genres specified');
|
|
@@ -754,8 +754,8 @@ class Anilist extends _index.AnimeParser {
|
|
|
754
754
|
// console.timeEnd('animeinfo');
|
|
755
755
|
return animeInfo.episodes;
|
|
756
756
|
};
|
|
757
|
-
/**
|
|
758
|
-
* @returns a random anime
|
|
757
|
+
/**
|
|
758
|
+
* @returns a random anime
|
|
759
759
|
*/
|
|
760
760
|
fetchRandomAnime = async () => {
|
|
761
761
|
const options = {
|
|
@@ -786,10 +786,10 @@ class Anilist extends _index.AnimeParser {
|
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
/**
|
|
790
|
-
* @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
|
|
791
|
-
* @param page page number (optional)
|
|
792
|
-
* @param perPage number of results per page (optional)
|
|
789
|
+
/**
|
|
790
|
+
* @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
|
|
791
|
+
* @param page page number (optional)
|
|
792
|
+
* @param perPage number of results per page (optional)
|
|
793
793
|
*/
|
|
794
794
|
fetchRecentEpisodes = async (provider = 'gogoanime', page = 1, perPage = 25) => {
|
|
795
795
|
try {
|
|
@@ -841,10 +841,10 @@ class Anilist extends _index.AnimeParser {
|
|
|
841
841
|
return episodes;
|
|
842
842
|
};
|
|
843
843
|
|
|
844
|
-
/**
|
|
845
|
-
* @param id anilist id
|
|
846
|
-
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
847
|
-
* @returns episode list **(without anime info)**
|
|
844
|
+
/**
|
|
845
|
+
* @param id anilist id
|
|
846
|
+
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
847
|
+
* @returns episode list **(without anime info)**
|
|
848
848
|
*/
|
|
849
849
|
fetchEpisodesListById = async (id, fetchFiller = false) => {
|
|
850
850
|
const options = {
|
|
@@ -990,9 +990,9 @@ class Anilist extends _index.AnimeParser {
|
|
|
990
990
|
return possibleAnimeEpisodes;
|
|
991
991
|
};
|
|
992
992
|
|
|
993
|
-
/**
|
|
994
|
-
* @param id anilist id
|
|
995
|
-
* @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
|
|
993
|
+
/**
|
|
994
|
+
* @param id anilist id
|
|
995
|
+
* @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
|
|
996
996
|
*/
|
|
997
997
|
fetchAnilistInfoById = async id => {
|
|
998
998
|
const animeInfo = {
|
|
@@ -1150,10 +1150,10 @@ class Anilist extends _index.AnimeParser {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
1152
|
|
|
1153
|
-
/**
|
|
1154
|
-
* To get Staff details by anilistId
|
|
1155
|
-
* @param id staff id from anilist
|
|
1156
|
-
*
|
|
1153
|
+
/**
|
|
1154
|
+
* To get Staff details by anilistId
|
|
1155
|
+
* @param id staff id from anilist
|
|
1156
|
+
*
|
|
1157
1157
|
*/
|
|
1158
1158
|
fetchStaffById = async id => {
|
|
1159
1159
|
const staffInfo = {
|
|
@@ -1201,9 +1201,9 @@ class Anilist extends _index.AnimeParser {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
|
-
/**
|
|
1205
|
-
*
|
|
1206
|
-
* @param id character id from anilist
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @param id character id from anilist
|
|
1207
1207
|
*/
|
|
1208
1208
|
fetchCharacterInfoById = async id => {
|
|
1209
1209
|
const options = {
|
|
@@ -1310,28 +1310,28 @@ class Anilist extends _index.AnimeParser {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
/**
|
|
1314
|
-
* Anilist Anime class
|
|
1313
|
+
/**
|
|
1314
|
+
* Anilist Anime class
|
|
1315
1315
|
*/
|
|
1316
1316
|
static Anime = this;
|
|
1317
1317
|
|
|
1318
|
-
/**
|
|
1319
|
-
* Anilist Manga Class
|
|
1318
|
+
/**
|
|
1319
|
+
* Anilist Manga Class
|
|
1320
1320
|
*/
|
|
1321
1321
|
static Manga = class Manga {
|
|
1322
|
-
/**
|
|
1323
|
-
* Maps anilist manga to any manga provider (mangadex, mangasee, etc)
|
|
1324
|
-
* @param provider MangaParser
|
|
1322
|
+
/**
|
|
1323
|
+
* Maps anilist manga to any manga provider (mangadex, mangasee, etc)
|
|
1324
|
+
* @param provider MangaParser
|
|
1325
1325
|
*/
|
|
1326
1326
|
constructor(provider) {
|
|
1327
1327
|
this.provider = provider || new _mangasee.default();
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
/**
|
|
1331
|
-
*
|
|
1332
|
-
* @param query query to search for
|
|
1333
|
-
* @param page (optional) page number (default: `1`)
|
|
1334
|
-
* @param perPage (optional) number of results per page (default: `20`)
|
|
1330
|
+
/**
|
|
1331
|
+
*
|
|
1332
|
+
* @param query query to search for
|
|
1333
|
+
* @param page (optional) page number (default: `1`)
|
|
1334
|
+
* @param perPage (optional) number of results per page (default: `20`)
|
|
1335
1335
|
*/
|
|
1336
1336
|
search = async (query, page = 1, perPage = 20) => {
|
|
1337
1337
|
const options = {
|
|
@@ -1379,11 +1379,11 @@ class Anilist extends _index.AnimeParser {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
};
|
|
1381
1381
|
|
|
1382
|
-
/**
|
|
1383
|
-
*
|
|
1384
|
-
* @param chapterId chapter id
|
|
1385
|
-
* @param args args to pass to the provider (if any)
|
|
1386
|
-
* @returns
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @param chapterId chapter id
|
|
1385
|
+
* @param args args to pass to the provider (if any)
|
|
1386
|
+
* @returns
|
|
1387
1387
|
*/
|
|
1388
1388
|
fetchChapterPages = (chapterId, ...args) => {
|
|
1389
1389
|
return this.provider.fetchChapterPages(chapterId, ...args);
|
|
@@ -21,10 +21,10 @@ class Myanimelist extends _index.AnimeParser {
|
|
|
21
21
|
kitsuGraphqlUrl = 'https://kitsu.app/api/graphql';
|
|
22
22
|
malSyncUrl = 'https://api.malsync.moe';
|
|
23
23
|
anifyUrl = _utils.ANIFY_URL;
|
|
24
|
-
/**
|
|
25
|
-
* This class maps myanimelist to kitsu with any other anime provider.
|
|
26
|
-
* kitsu is used for episode images, titles and description.
|
|
27
|
-
* @param provider anime provider (optional) default: Gogoanime
|
|
24
|
+
/**
|
|
25
|
+
* This class maps myanimelist to kitsu with any other anime provider.
|
|
26
|
+
* kitsu is used for episode images, titles and description.
|
|
27
|
+
* @param provider anime provider (optional) default: Gogoanime
|
|
28
28
|
*/
|
|
29
29
|
constructor(provider) {
|
|
30
30
|
super();
|
|
@@ -116,10 +116,10 @@ class Myanimelist extends _index.AnimeParser {
|
|
|
116
116
|
return searchResults;
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @param animeId anime id
|
|
122
|
-
* @param fetchFiller fetch filler episodes
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @param animeId anime id
|
|
122
|
+
* @param fetchFiller fetch filler episodes
|
|
123
123
|
*/
|
|
124
124
|
fetchAnimeInfo = async (animeId, dub = false, fetchFiller = false) => {
|
|
125
125
|
try {
|
|
@@ -296,10 +296,10 @@ class Myanimelist extends _index.AnimeParser {
|
|
|
296
296
|
return newEpisodeList;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
/**
|
|
300
|
-
*
|
|
301
|
-
* @param id anime id
|
|
302
|
-
* @returns anime info without streamable episodes
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @param id anime id
|
|
302
|
+
* @returns anime info without streamable episodes
|
|
303
303
|
*/
|
|
304
304
|
fetchMalInfoById = async id => {
|
|
305
305
|
const animeInfo = {
|
|
@@ -22,10 +22,10 @@ class TMDB extends _index.MovieParser {
|
|
|
22
22
|
this.provider = provider || new _himovies.default();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* @param type trending type: tv series, movie, people or all
|
|
27
|
-
* @param timePeriod trending time period day or week
|
|
28
|
-
* @param page page number
|
|
25
|
+
/**
|
|
26
|
+
* @param type trending type: tv series, movie, people or all
|
|
27
|
+
* @param timePeriod trending time period day or week
|
|
28
|
+
* @param page page number
|
|
29
29
|
*/
|
|
30
30
|
fetchTrending = async (type, timePeriod = 'day', page = 1) => {
|
|
31
31
|
const trendingUrl = `${this.apiUrl}/trending/${type.toLowerCase() === _index.TvType.MOVIE.toLowerCase() ? 'movie' : type.toLowerCase() === _index.TvType.TVSERIES.toLowerCase() ? 'tv' : type.toLowerCase() === _index.TvType.PEOPLE.toLowerCase() ? 'person' : 'all'}/${timePeriod}?page=${page}&api_key=${this.apiKey}&language=en-US`;
|
|
@@ -84,9 +84,9 @@ class TMDB extends _index.MovieParser {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* @param query search query
|
|
89
|
-
* @param page page number
|
|
87
|
+
/**
|
|
88
|
+
* @param query search query
|
|
89
|
+
* @param page page number
|
|
90
90
|
*/
|
|
91
91
|
search = async (query, page = 1) => {
|
|
92
92
|
const searchUrl = `${this.apiUrl}/search/multi?api_key=${this.apiKey}&language=en-US&page=${page}&include_adult=false&query=${query}`;
|
|
@@ -122,9 +122,9 @@ class TMDB extends _index.MovieParser {
|
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
/**
|
|
126
|
-
* @param id media id (anime or movie/tv)
|
|
127
|
-
* @param type movie or tv
|
|
125
|
+
/**
|
|
126
|
+
* @param id media id (anime or movie/tv)
|
|
127
|
+
* @param type movie or tv
|
|
128
128
|
*/
|
|
129
129
|
fetchMediaInfo = async (mediaId, type) => {
|
|
130
130
|
type = type.toLowerCase() === 'movie' ? 'movie' : 'tv';
|
|
@@ -286,11 +286,11 @@ class TMDB extends _index.MovieParser {
|
|
|
286
286
|
return info;
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
/**
|
|
290
|
-
* Find the id of a media from its title. and extra data. (year, totalSeasons, totalEpisodes)
|
|
291
|
-
* @param title
|
|
292
|
-
* @param extraData
|
|
293
|
-
* @returns id of the media
|
|
289
|
+
/**
|
|
290
|
+
* Find the id of a media from its title. and extra data. (year, totalSeasons, totalEpisodes)
|
|
291
|
+
* @param title
|
|
292
|
+
* @param extraData
|
|
293
|
+
* @returns id of the media
|
|
294
294
|
*/
|
|
295
295
|
findIdFromTitle = async (title, extraData) => {
|
|
296
296
|
//clean title
|
|
@@ -344,17 +344,17 @@ class TMDB extends _index.MovieParser {
|
|
|
344
344
|
return findMedia?.results[0]?.id || undefined;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
/**
|
|
348
|
-
* @param id media id (anime or movie/tv)
|
|
349
|
-
* @param args optional arguments
|
|
347
|
+
/**
|
|
348
|
+
* @param id media id (anime or movie/tv)
|
|
349
|
+
* @param args optional arguments
|
|
350
350
|
*/
|
|
351
351
|
fetchEpisodeSources = async (id, ...args) => {
|
|
352
352
|
return this.provider.fetchEpisodeSources(id, ...args);
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
-
/**
|
|
356
|
-
* @param episodeId episode id
|
|
357
|
-
* @param args optional arguments
|
|
355
|
+
/**
|
|
356
|
+
* @param episodeId episode id
|
|
357
|
+
* @param args optional arguments
|
|
358
358
|
**/
|
|
359
359
|
fetchEpisodeServers = async (episodeId, ...args) => {
|
|
360
360
|
return this.provider.fetchEpisodeServers(episodeId, ...args);
|
|
@@ -33,10 +33,10 @@ function createHiMovies(ctx, customBaseURL) {
|
|
|
33
33
|
};
|
|
34
34
|
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* Search for movies/TV shows
|
|
38
|
-
* @param query search query string
|
|
39
|
-
* @param page page number (default 1) (optional)
|
|
36
|
+
/**
|
|
37
|
+
* Search for movies/TV shows
|
|
38
|
+
* @param query search query string
|
|
39
|
+
* @param page page number (default 1) (optional)
|
|
40
40
|
*/
|
|
41
41
|
const search = async (query, page = 1) => {
|
|
42
42
|
const searchResult = {
|
|
@@ -86,9 +86,9 @@ function createHiMovies(ctx, customBaseURL) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* Fetch media info
|
|
91
|
-
* @param mediaId media link or id
|
|
89
|
+
/**
|
|
90
|
+
* Fetch media info
|
|
91
|
+
* @param mediaId media link or id
|
|
92
92
|
*/
|
|
93
93
|
const fetchMediaInfo = async mediaId => {
|
|
94
94
|
if (!mediaId.startsWith(config.baseUrl)) {
|
|
@@ -168,11 +168,11 @@ function createHiMovies(ctx, customBaseURL) {
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* Fetch episode sources
|
|
173
|
-
* @param episodeId episode id
|
|
174
|
-
* @param mediaId media id
|
|
175
|
-
* @param server server type (default `MegaCloud`) (optional)
|
|
171
|
+
/**
|
|
172
|
+
* Fetch episode sources
|
|
173
|
+
* @param episodeId episode id
|
|
174
|
+
* @param mediaId media id
|
|
175
|
+
* @param server server type (default `MegaCloud`) (optional)
|
|
176
176
|
*/
|
|
177
177
|
const fetchEpisodeSources = async (episodeId, mediaId, server = StreamingServersEnum.MegaCloud) => {
|
|
178
178
|
if (episodeId.startsWith('http')) {
|
|
@@ -214,10 +214,10 @@ function createHiMovies(ctx, customBaseURL) {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
/**
|
|
218
|
-
* Fetch episode servers
|
|
219
|
-
* @param episodeId takes episode link or movie id
|
|
220
|
-
* @param mediaId takes movie link or id (found on movie info object)
|
|
217
|
+
/**
|
|
218
|
+
* Fetch episode servers
|
|
219
|
+
* @param episodeId takes episode link or movie id
|
|
220
|
+
* @param mediaId takes movie link or id (found on movie info object)
|
|
221
221
|
*/
|
|
222
222
|
const fetchEpisodeServers = async (episodeId, mediaId) => {
|
|
223
223
|
if (!episodeId.startsWith(config.baseUrl + '/ajax') && !mediaId.includes('movie')) {
|
|
@@ -46,28 +46,28 @@ class HiMovies extends _index.MovieParser {
|
|
|
46
46
|
get classPath() {
|
|
47
47
|
return this.instance.classPath;
|
|
48
48
|
}
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param query search query string
|
|
52
|
-
* @param page page number (default 1) (optional)
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @param query search query string
|
|
52
|
+
* @param page page number (default 1) (optional)
|
|
53
53
|
*/
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @param mediaId media link or id
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param mediaId media link or id
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @param episodeId episode id
|
|
63
|
-
* @param mediaId media id
|
|
64
|
-
* @param server server type (default `MegaCloud`) (optional)
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param episodeId episode id
|
|
63
|
+
* @param mediaId media id
|
|
64
|
+
* @param server server type (default `MegaCloud`) (optional)
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @param episodeId takes episode link or movie id
|
|
70
|
-
* @param mediaId takes movie link or id (found on movie info object)
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @param episodeId takes episode link or movie id
|
|
70
|
+
* @param mediaId takes movie link or id (found on movie info object)
|
|
71
71
|
*/
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -30,10 +30,10 @@ class MultiMovies extends _index.MovieParser {
|
|
|
30
30
|
}
|
|
31
31
|
proxiedBaseUrl = 'https://m3u8proxy.durgeshdwivedi81.workers.dev/v2?url=' + encodeURIComponent(this.baseUrl);
|
|
32
32
|
customProxyUrl = 'https://m3u8proxy.durgeshdwivedi81.workers.dev/v2?url=';
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param query search query string
|
|
36
|
-
* @param page page number (default 1) (optional)
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param query search query string
|
|
36
|
+
* @param page page number (default 1) (optional)
|
|
37
37
|
*/
|
|
38
38
|
search = async (query, page = 1) => {
|
|
39
39
|
const searchResult = {
|
|
@@ -83,9 +83,9 @@ class MultiMovies extends _index.MovieParser {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @param mediaId media link or id
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @param mediaId media link or id
|
|
89
89
|
*/
|
|
90
90
|
fetchMediaInfo = async mediaId => {
|
|
91
91
|
if (!mediaId.startsWith(this.proxiedBaseUrl)) {
|
|
@@ -180,11 +180,11 @@ class MultiMovies extends _index.MovieParser {
|
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @param episodeId episode id
|
|
186
|
-
* @param media media id
|
|
187
|
-
* @param server server type (default `StreamWish`) (optional)
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @param episodeId episode id
|
|
186
|
+
* @param media media id
|
|
187
|
+
* @param server server type (default `StreamWish`) (optional)
|
|
188
188
|
*/
|
|
189
189
|
fetchEpisodeSources = async (episodeId, mediaId,
|
|
190
190
|
//just placeholder for compatibility with tmdb
|
|
@@ -256,9 +256,9 @@ class MultiMovies extends _index.MovieParser {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
/**
|
|
260
|
-
*
|
|
261
|
-
* @param episodeId takes episode link or movie id
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @param episodeId takes episode link or movie id
|
|
262
262
|
*/
|
|
263
263
|
fetchEpisodeServers = async episodeId => {
|
|
264
264
|
if (!episodeId.startsWith(this.baseUrl)) {
|
|
@@ -29,10 +29,10 @@ class MultiStream extends _index.MovieParser {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param query search query string
|
|
35
|
-
* @param page page number (default 1) (optional)
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param query search query string
|
|
35
|
+
* @param page page number (default 1) (optional)
|
|
36
36
|
*/
|
|
37
37
|
search = async (query, page = 1) => {
|
|
38
38
|
const searchUrl = `${this.apiUrl}/search/multi?api_key=${this.apiKey}&language=en-US&page=${page}&include_adult=false&query=${query}`;
|
|
@@ -81,9 +81,9 @@ class MultiStream extends _index.MovieParser {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @param mediaId - The media identifier (TMDB ID with type, e.g., "1071585$movie")
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param mediaId - The media identifier (TMDB ID with type, e.g., "1071585$movie")
|
|
87
87
|
*/
|
|
88
88
|
fetchMediaInfo = async mediaId => {
|
|
89
89
|
const movieInfo = {
|
|
@@ -166,21 +166,21 @@ class MultiStream extends _index.MovieParser {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @param episodeId episode id
|
|
172
|
-
* @param mediaId media id
|
|
173
|
-
* @param server server type (defaults to the first from `fetchEpisodeServers`) (optional)
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @param episodeId episode id
|
|
172
|
+
* @param mediaId media id
|
|
173
|
+
* @param server server type (defaults to the first from `fetchEpisodeServers`) (optional)
|
|
174
174
|
*/
|
|
175
175
|
fetchEpisodeSources = async (episodeId, mediaId, server) => {
|
|
176
176
|
const firstServer = (await this.fetchEpisodeServers(episodeId, mediaId))[0].name;
|
|
177
177
|
return await (0, _utils.getMultiSources)(episodeId, server ? server : firstServer);
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
* @param episodeId takes episode link or movie id
|
|
183
|
-
* @param mediaId takes movie link or id (found on movie movieInfo object)
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @param episodeId takes episode link or movie id
|
|
183
|
+
* @param mediaId takes movie link or id (found on movie movieInfo object)
|
|
184
184
|
*/
|
|
185
185
|
fetchEpisodeServers = async (episodeId, mediaId) => {
|
|
186
186
|
try {
|