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
|
@@ -18,12 +18,12 @@ class Anilist extends AnimeParser {
|
|
|
18
18
|
kitsuGraphqlUrl = 'https://kitsu.io/api/graphql';
|
|
19
19
|
malSyncUrl = 'https://api.malsync.moe';
|
|
20
20
|
anifyUrl = ANIFY_URL;
|
|
21
|
-
/**
|
|
22
|
-
* This class maps anilist to kitsu with any other anime provider.
|
|
23
|
-
* kitsu is used for episode images, titles and description.
|
|
24
|
-
* @param provider anime provider (optional) default: Gogoanime
|
|
25
|
-
* @param proxyConfig proxy config (optional)
|
|
26
|
-
* @param adapter axios adapter (optional)
|
|
21
|
+
/**
|
|
22
|
+
* This class maps anilist to kitsu with any other anime provider.
|
|
23
|
+
* kitsu is used for episode images, titles and description.
|
|
24
|
+
* @param provider anime provider (optional) default: Gogoanime
|
|
25
|
+
* @param proxyConfig proxy config (optional)
|
|
26
|
+
* @param adapter axios adapter (optional)
|
|
27
27
|
*/
|
|
28
28
|
constructor(provider, proxyConfig, adapter, customBaseURL) {
|
|
29
29
|
super();
|
|
@@ -31,10 +31,10 @@ class Anilist extends AnimeParser {
|
|
|
31
31
|
this.provider = provider || new Zoro(customBaseURL);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* @param query Search query
|
|
36
|
-
* @param page Page number (optional)
|
|
37
|
-
* @param perPage Number of results per page (optional) (default: 15) (max: 50)
|
|
34
|
+
/**
|
|
35
|
+
* @param query Search query
|
|
36
|
+
* @param page Page number (optional)
|
|
37
|
+
* @param perPage Number of results per page (optional) (default: 15) (max: 50)
|
|
38
38
|
*/
|
|
39
39
|
search = async (query, page = 1, perPage = 15) => {
|
|
40
40
|
const options = {
|
|
@@ -104,19 +104,19 @@ class Anilist extends AnimeParser {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @param query Search query (optional)
|
|
110
|
-
* @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
|
|
111
|
-
* @param page Page number (optional)
|
|
112
|
-
* @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
|
|
113
|
-
* @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
|
|
114
|
-
* @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`)
|
|
115
|
-
* @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`)
|
|
116
|
-
* @param id anilist Id (optional)
|
|
117
|
-
* @param year Year (optional) e.g. `2022`
|
|
118
|
-
* @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
|
|
119
|
-
* @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @param query Search query (optional)
|
|
110
|
+
* @param type Media type (optional) (default: `ANIME`) (options: `ANIME`, `MANGA`)
|
|
111
|
+
* @param page Page number (optional)
|
|
112
|
+
* @param perPage Number of results per page (optional) (default: `20`) (max: `50`)
|
|
113
|
+
* @param format Format (optional) (options: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`)
|
|
114
|
+
* @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`)
|
|
115
|
+
* @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`)
|
|
116
|
+
* @param id anilist Id (optional)
|
|
117
|
+
* @param year Year (optional) e.g. `2022`
|
|
118
|
+
* @param status Status (optional) (options: `RELEASING`, `FINISHED`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`)
|
|
119
|
+
* @param season Season (optional) (options: `WINTER`, `SPRING`, `SUMMER`, `FALL`)
|
|
120
120
|
*/
|
|
121
121
|
advancedSearch = async (query, type = 'ANIME', page = 1, perPage = 20, format, sort, genres, id, year, status, season) => {
|
|
122
122
|
const options = {
|
|
@@ -210,11 +210,11 @@ class Anilist extends AnimeParser {
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
* @param id Anime id
|
|
216
|
-
* @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
|
|
217
|
-
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @param id Anime id
|
|
216
|
+
* @param dub to get dubbed episodes (optional) set to `true` to get dubbed episodes. **ONLY WORKS FOR GOGOANIME**
|
|
217
|
+
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
218
218
|
*/
|
|
219
219
|
fetchAnimeInfo = async (id, fetchFiller = false) => {
|
|
220
220
|
const animeInfo = {
|
|
@@ -468,9 +468,9 @@ class Anilist extends AnimeParser {
|
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
/**
|
|
472
|
-
*
|
|
473
|
-
* @param episodeId Episode id
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @param episodeId Episode id
|
|
474
474
|
*/
|
|
475
475
|
fetchEpisodeSources = async (episodeId, ...args) => {
|
|
476
476
|
try {
|
|
@@ -481,9 +481,9 @@ class Anilist extends AnimeParser {
|
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
|
|
484
|
-
/**
|
|
485
|
-
*
|
|
486
|
-
* @param episodeId Episode id
|
|
484
|
+
/**
|
|
485
|
+
*
|
|
486
|
+
* @param episodeId Episode id
|
|
487
487
|
*/
|
|
488
488
|
fetchEpisodeServers = async episodeId => {
|
|
489
489
|
try {
|
|
@@ -493,9 +493,9 @@ class Anilist extends AnimeParser {
|
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
495
|
|
|
496
|
-
/**
|
|
497
|
-
* @param page page number to search for (optional)
|
|
498
|
-
* @param perPage number of results per page (optional)
|
|
496
|
+
/**
|
|
497
|
+
* @param page page number to search for (optional)
|
|
498
|
+
* @param perPage number of results per page (optional)
|
|
499
499
|
*/
|
|
500
500
|
fetchTrendingAnime = async (page = 1, perPage = 10) => {
|
|
501
501
|
const options = {
|
|
@@ -548,10 +548,10 @@ class Anilist extends AnimeParser {
|
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
|
|
551
|
-
/**
|
|
552
|
-
*
|
|
553
|
-
* @param page page number to search for (optional)
|
|
554
|
-
* @param perPage number of results per page (optional)
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @param page page number to search for (optional)
|
|
554
|
+
* @param perPage number of results per page (optional)
|
|
555
555
|
*/
|
|
556
556
|
fetchPopularAnime = async (page = 1, perPage = 10) => {
|
|
557
557
|
const options = {
|
|
@@ -604,14 +604,14 @@ class Anilist extends AnimeParser {
|
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
606
|
|
|
607
|
-
/**
|
|
608
|
-
*
|
|
609
|
-
* @param page page number (optional)
|
|
610
|
-
* @param perPage number of results per page (optional)
|
|
611
|
-
* @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
|
|
612
|
-
* @param weekEnd Filter by the end of the week (optional) similar to weekStart
|
|
613
|
-
* @param notYetAired if true will return anime that have not yet aired (optional)
|
|
614
|
-
* @returns the next airing episodes
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @param page page number (optional)
|
|
610
|
+
* @param perPage number of results per page (optional)
|
|
611
|
+
* @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
|
|
612
|
+
* @param weekEnd Filter by the end of the week (optional) similar to weekStart
|
|
613
|
+
* @param notYetAired if true will return anime that have not yet aired (optional)
|
|
614
|
+
* @returns the next airing episodes
|
|
615
615
|
*/
|
|
616
616
|
fetchAiringSchedule = async (page = 1, perPage = 20, weekStart = (new Date().getDay() + 1) % 7, weekEnd = (new Date().getDay() + 7) % 7, notYetAired = false) => {
|
|
617
617
|
let day1, day2;
|
|
@@ -660,11 +660,11 @@ class Anilist extends AnimeParser {
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
|
|
663
|
-
/**
|
|
664
|
-
*
|
|
665
|
-
* @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`]
|
|
666
|
-
* @param page page number (optional)
|
|
667
|
-
* @param perPage number of results per page (optional)
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @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`]
|
|
666
|
+
* @param page page number (optional)
|
|
667
|
+
* @param perPage number of results per page (optional)
|
|
668
668
|
*/
|
|
669
669
|
fetchAnimeGenres = async (genres, page = 1, perPage = 20) => {
|
|
670
670
|
if (genres.length === 0) throw new Error('No genres specified');
|
|
@@ -749,8 +749,8 @@ class Anilist extends AnimeParser {
|
|
|
749
749
|
// console.timeEnd('animeinfo');
|
|
750
750
|
return animeInfo.episodes;
|
|
751
751
|
};
|
|
752
|
-
/**
|
|
753
|
-
* @returns a random anime
|
|
752
|
+
/**
|
|
753
|
+
* @returns a random anime
|
|
754
754
|
*/
|
|
755
755
|
fetchRandomAnime = async () => {
|
|
756
756
|
const options = {
|
|
@@ -781,10 +781,10 @@ class Anilist extends AnimeParser {
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
/**
|
|
785
|
-
* @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
|
|
786
|
-
* @param page page number (optional)
|
|
787
|
-
* @param perPage number of results per page (optional)
|
|
784
|
+
/**
|
|
785
|
+
* @param provider The provider to get the episode Ids from (optional) default: `gogoanime` (options: `gogoanime`, `zoro`)
|
|
786
|
+
* @param page page number (optional)
|
|
787
|
+
* @param perPage number of results per page (optional)
|
|
788
788
|
*/
|
|
789
789
|
fetchRecentEpisodes = async (provider = 'gogoanime', page = 1, perPage = 25) => {
|
|
790
790
|
try {
|
|
@@ -836,10 +836,10 @@ class Anilist extends AnimeParser {
|
|
|
836
836
|
return episodes;
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
-
/**
|
|
840
|
-
* @param id anilist id
|
|
841
|
-
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
842
|
-
* @returns episode list **(without anime info)**
|
|
839
|
+
/**
|
|
840
|
+
* @param id anilist id
|
|
841
|
+
* @param fetchFiller to get filler boolean on the episode object (optional) set to `true` to get filler boolean on the episode object.
|
|
842
|
+
* @returns episode list **(without anime info)**
|
|
843
843
|
*/
|
|
844
844
|
fetchEpisodesListById = async (id, fetchFiller = false) => {
|
|
845
845
|
const options = {
|
|
@@ -985,9 +985,9 @@ class Anilist extends AnimeParser {
|
|
|
985
985
|
return possibleAnimeEpisodes;
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
/**
|
|
989
|
-
* @param id anilist id
|
|
990
|
-
* @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
|
|
988
|
+
/**
|
|
989
|
+
* @param id anilist id
|
|
990
|
+
* @returns anilist data for the anime **(without episodes)** (use `fetchEpisodesListById` to get the episodes) (use `fetchAnimeInfo` to get both)
|
|
991
991
|
*/
|
|
992
992
|
fetchAnilistInfoById = async id => {
|
|
993
993
|
const animeInfo = {
|
|
@@ -1145,10 +1145,10 @@ class Anilist extends AnimeParser {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
/**
|
|
1149
|
-
* To get Staff details by anilistId
|
|
1150
|
-
* @param id staff id from anilist
|
|
1151
|
-
*
|
|
1148
|
+
/**
|
|
1149
|
+
* To get Staff details by anilistId
|
|
1150
|
+
* @param id staff id from anilist
|
|
1151
|
+
*
|
|
1152
1152
|
*/
|
|
1153
1153
|
fetchStaffById = async id => {
|
|
1154
1154
|
const staffInfo = {
|
|
@@ -1196,9 +1196,9 @@ class Anilist extends AnimeParser {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
};
|
|
1198
1198
|
|
|
1199
|
-
/**
|
|
1200
|
-
*
|
|
1201
|
-
* @param id character id from anilist
|
|
1199
|
+
/**
|
|
1200
|
+
*
|
|
1201
|
+
* @param id character id from anilist
|
|
1202
1202
|
*/
|
|
1203
1203
|
fetchCharacterInfoById = async id => {
|
|
1204
1204
|
const options = {
|
|
@@ -1305,28 +1305,28 @@ class Anilist extends AnimeParser {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
1307
|
|
|
1308
|
-
/**
|
|
1309
|
-
* Anilist Anime class
|
|
1308
|
+
/**
|
|
1309
|
+
* Anilist Anime class
|
|
1310
1310
|
*/
|
|
1311
1311
|
static Anime = this;
|
|
1312
1312
|
|
|
1313
|
-
/**
|
|
1314
|
-
* Anilist Manga Class
|
|
1313
|
+
/**
|
|
1314
|
+
* Anilist Manga Class
|
|
1315
1315
|
*/
|
|
1316
1316
|
static Manga = class Manga {
|
|
1317
|
-
/**
|
|
1318
|
-
* Maps anilist manga to any manga provider (mangadex, mangasee, etc)
|
|
1319
|
-
* @param provider MangaParser
|
|
1317
|
+
/**
|
|
1318
|
+
* Maps anilist manga to any manga provider (mangadex, mangasee, etc)
|
|
1319
|
+
* @param provider MangaParser
|
|
1320
1320
|
*/
|
|
1321
1321
|
constructor(provider) {
|
|
1322
1322
|
this.provider = provider || new Mangasee123();
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
|
-
/**
|
|
1326
|
-
*
|
|
1327
|
-
* @param query query to search for
|
|
1328
|
-
* @param page (optional) page number (default: `1`)
|
|
1329
|
-
* @param perPage (optional) number of results per page (default: `20`)
|
|
1325
|
+
/**
|
|
1326
|
+
*
|
|
1327
|
+
* @param query query to search for
|
|
1328
|
+
* @param page (optional) page number (default: `1`)
|
|
1329
|
+
* @param perPage (optional) number of results per page (default: `20`)
|
|
1330
1330
|
*/
|
|
1331
1331
|
search = async (query, page = 1, perPage = 20) => {
|
|
1332
1332
|
const options = {
|
|
@@ -1374,11 +1374,11 @@ class Anilist extends AnimeParser {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
1377
|
-
/**
|
|
1378
|
-
*
|
|
1379
|
-
* @param chapterId chapter id
|
|
1380
|
-
* @param args args to pass to the provider (if any)
|
|
1381
|
-
* @returns
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @param chapterId chapter id
|
|
1380
|
+
* @param args args to pass to the provider (if any)
|
|
1381
|
+
* @returns
|
|
1382
1382
|
*/
|
|
1383
1383
|
fetchChapterPages = (chapterId, ...args) => {
|
|
1384
1384
|
return this.provider.fetchChapterPages(chapterId, ...args);
|
|
@@ -16,10 +16,10 @@ class Myanimelist extends AnimeParser {
|
|
|
16
16
|
kitsuGraphqlUrl = 'https://kitsu.app/api/graphql';
|
|
17
17
|
malSyncUrl = 'https://api.malsync.moe';
|
|
18
18
|
anifyUrl = ANIFY_URL;
|
|
19
|
-
/**
|
|
20
|
-
* This class maps myanimelist to kitsu with any other anime provider.
|
|
21
|
-
* kitsu is used for episode images, titles and description.
|
|
22
|
-
* @param provider anime provider (optional) default: Gogoanime
|
|
19
|
+
/**
|
|
20
|
+
* This class maps myanimelist to kitsu with any other anime provider.
|
|
21
|
+
* kitsu is used for episode images, titles and description.
|
|
22
|
+
* @param provider anime provider (optional) default: Gogoanime
|
|
23
23
|
*/
|
|
24
24
|
constructor(provider) {
|
|
25
25
|
super();
|
|
@@ -111,10 +111,10 @@ class Myanimelist extends AnimeParser {
|
|
|
111
111
|
return searchResults;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @param animeId anime id
|
|
117
|
-
* @param fetchFiller fetch filler episodes
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param animeId anime id
|
|
117
|
+
* @param fetchFiller fetch filler episodes
|
|
118
118
|
*/
|
|
119
119
|
fetchAnimeInfo = async (animeId, dub = false, fetchFiller = false) => {
|
|
120
120
|
try {
|
|
@@ -291,10 +291,10 @@ class Myanimelist extends AnimeParser {
|
|
|
291
291
|
return newEpisodeList;
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
/**
|
|
295
|
-
*
|
|
296
|
-
* @param id anime id
|
|
297
|
-
* @returns anime info without streamable episodes
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @param id anime id
|
|
297
|
+
* @returns anime info without streamable episodes
|
|
298
298
|
*/
|
|
299
299
|
fetchMalInfoById = async id => {
|
|
300
300
|
const animeInfo = {
|
|
@@ -17,10 +17,10 @@ class TMDB extends MovieParser {
|
|
|
17
17
|
this.provider = provider || new HiMovies();
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* @param type trending type: tv series, movie, people or all
|
|
22
|
-
* @param timePeriod trending time period day or week
|
|
23
|
-
* @param page page number
|
|
20
|
+
/**
|
|
21
|
+
* @param type trending type: tv series, movie, people or all
|
|
22
|
+
* @param timePeriod trending time period day or week
|
|
23
|
+
* @param page page number
|
|
24
24
|
*/
|
|
25
25
|
fetchTrending = async (type, timePeriod = 'day', page = 1) => {
|
|
26
26
|
const trendingUrl = `${this.apiUrl}/trending/${type.toLowerCase() === TvType.MOVIE.toLowerCase() ? 'movie' : type.toLowerCase() === TvType.TVSERIES.toLowerCase() ? 'tv' : type.toLowerCase() === TvType.PEOPLE.toLowerCase() ? 'person' : 'all'}/${timePeriod}?page=${page}&api_key=${this.apiKey}&language=en-US`;
|
|
@@ -79,9 +79,9 @@ class TMDB extends MovieParser {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* @param query search query
|
|
84
|
-
* @param page page number
|
|
82
|
+
/**
|
|
83
|
+
* @param query search query
|
|
84
|
+
* @param page page number
|
|
85
85
|
*/
|
|
86
86
|
search = async (query, page = 1) => {
|
|
87
87
|
const searchUrl = `${this.apiUrl}/search/multi?api_key=${this.apiKey}&language=en-US&page=${page}&include_adult=false&query=${query}`;
|
|
@@ -117,9 +117,9 @@ class TMDB extends MovieParser {
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
/**
|
|
121
|
-
* @param id media id (anime or movie/tv)
|
|
122
|
-
* @param type movie or tv
|
|
120
|
+
/**
|
|
121
|
+
* @param id media id (anime or movie/tv)
|
|
122
|
+
* @param type movie or tv
|
|
123
123
|
*/
|
|
124
124
|
fetchMediaInfo = async (mediaId, type) => {
|
|
125
125
|
type = type.toLowerCase() === 'movie' ? 'movie' : 'tv';
|
|
@@ -281,11 +281,11 @@ class TMDB extends MovieParser {
|
|
|
281
281
|
return info;
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
/**
|
|
285
|
-
* Find the id of a media from its title. and extra data. (year, totalSeasons, totalEpisodes)
|
|
286
|
-
* @param title
|
|
287
|
-
* @param extraData
|
|
288
|
-
* @returns id of the media
|
|
284
|
+
/**
|
|
285
|
+
* Find the id of a media from its title. and extra data. (year, totalSeasons, totalEpisodes)
|
|
286
|
+
* @param title
|
|
287
|
+
* @param extraData
|
|
288
|
+
* @returns id of the media
|
|
289
289
|
*/
|
|
290
290
|
findIdFromTitle = async (title, extraData) => {
|
|
291
291
|
//clean title
|
|
@@ -339,17 +339,17 @@ class TMDB extends MovieParser {
|
|
|
339
339
|
return findMedia?.results[0]?.id || undefined;
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
/**
|
|
343
|
-
* @param id media id (anime or movie/tv)
|
|
344
|
-
* @param args optional arguments
|
|
342
|
+
/**
|
|
343
|
+
* @param id media id (anime or movie/tv)
|
|
344
|
+
* @param args optional arguments
|
|
345
345
|
*/
|
|
346
346
|
fetchEpisodeSources = async (id, ...args) => {
|
|
347
347
|
return this.provider.fetchEpisodeSources(id, ...args);
|
|
348
348
|
};
|
|
349
349
|
|
|
350
|
-
/**
|
|
351
|
-
* @param episodeId episode id
|
|
352
|
-
* @param args optional arguments
|
|
350
|
+
/**
|
|
351
|
+
* @param episodeId episode id
|
|
352
|
+
* @param args optional arguments
|
|
353
353
|
**/
|
|
354
354
|
fetchEpisodeServers = async (episodeId, ...args) => {
|
|
355
355
|
return this.provider.fetchEpisodeServers(episodeId, ...args);
|
|
@@ -28,10 +28,10 @@ export function createHiMovies(ctx, customBaseURL) {
|
|
|
28
28
|
};
|
|
29
29
|
const supportedTypes = new Set([TvTypeEnum.MOVIE, TvTypeEnum.TVSERIES]);
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Search for movies/TV shows
|
|
33
|
-
* @param query search query string
|
|
34
|
-
* @param page page number (default 1) (optional)
|
|
31
|
+
/**
|
|
32
|
+
* Search for movies/TV shows
|
|
33
|
+
* @param query search query string
|
|
34
|
+
* @param page page number (default 1) (optional)
|
|
35
35
|
*/
|
|
36
36
|
const search = async (query, page = 1) => {
|
|
37
37
|
const searchResult = {
|
|
@@ -81,9 +81,9 @@ export function createHiMovies(ctx, customBaseURL) {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* Fetch media info
|
|
86
|
-
* @param mediaId media link or id
|
|
84
|
+
/**
|
|
85
|
+
* Fetch media info
|
|
86
|
+
* @param mediaId media link or id
|
|
87
87
|
*/
|
|
88
88
|
const fetchMediaInfo = async mediaId => {
|
|
89
89
|
if (!mediaId.startsWith(config.baseUrl)) {
|
|
@@ -163,11 +163,11 @@ export function createHiMovies(ctx, customBaseURL) {
|
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
/**
|
|
167
|
-
* Fetch episode sources
|
|
168
|
-
* @param episodeId episode id
|
|
169
|
-
* @param mediaId media id
|
|
170
|
-
* @param server server type (default `MegaCloud`) (optional)
|
|
166
|
+
/**
|
|
167
|
+
* Fetch episode sources
|
|
168
|
+
* @param episodeId episode id
|
|
169
|
+
* @param mediaId media id
|
|
170
|
+
* @param server server type (default `MegaCloud`) (optional)
|
|
171
171
|
*/
|
|
172
172
|
const fetchEpisodeSources = async (episodeId, mediaId, server = StreamingServersEnum.MegaCloud) => {
|
|
173
173
|
if (episodeId.startsWith('http')) {
|
|
@@ -209,10 +209,10 @@ export function createHiMovies(ctx, customBaseURL) {
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
/**
|
|
213
|
-
* Fetch episode servers
|
|
214
|
-
* @param episodeId takes episode link or movie id
|
|
215
|
-
* @param mediaId takes movie link or id (found on movie info object)
|
|
212
|
+
/**
|
|
213
|
+
* Fetch episode servers
|
|
214
|
+
* @param episodeId takes episode link or movie id
|
|
215
|
+
* @param mediaId takes movie link or id (found on movie info object)
|
|
216
216
|
*/
|
|
217
217
|
const fetchEpisodeServers = async (episodeId, mediaId) => {
|
|
218
218
|
if (!episodeId.startsWith(config.baseUrl + '/ajax') && !mediaId.includes('movie')) {
|
|
@@ -43,28 +43,28 @@ class HiMovies extends MovieParser {
|
|
|
43
43
|
get classPath() {
|
|
44
44
|
return this.instance.classPath;
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @param query search query string
|
|
49
|
-
* @param page page number (default 1) (optional)
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param query search query string
|
|
49
|
+
* @param page page number (default 1) (optional)
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @param mediaId media link or id
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param mediaId media link or id
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @param episodeId episode id
|
|
60
|
-
* @param mediaId media id
|
|
61
|
-
* @param server server type (default `MegaCloud`) (optional)
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @param episodeId episode id
|
|
60
|
+
* @param mediaId media id
|
|
61
|
+
* @param server server type (default `MegaCloud`) (optional)
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @param episodeId takes episode link or movie id
|
|
67
|
-
* @param mediaId takes movie link or id (found on movie info object)
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @param episodeId takes episode link or movie id
|
|
67
|
+
* @param mediaId takes movie link or id (found on movie info object)
|
|
68
68
|
*/
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -25,10 +25,10 @@ class MultiMovies extends MovieParser {
|
|
|
25
25
|
}
|
|
26
26
|
proxiedBaseUrl = 'https://m3u8proxy.durgeshdwivedi81.workers.dev/v2?url=' + encodeURIComponent(this.baseUrl);
|
|
27
27
|
customProxyUrl = 'https://m3u8proxy.durgeshdwivedi81.workers.dev/v2?url=';
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param query search query string
|
|
31
|
-
* @param page page number (default 1) (optional)
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param query search query string
|
|
31
|
+
* @param page page number (default 1) (optional)
|
|
32
32
|
*/
|
|
33
33
|
search = async (query, page = 1) => {
|
|
34
34
|
const searchResult = {
|
|
@@ -78,9 +78,9 @@ class MultiMovies extends MovieParser {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @param mediaId media link or id
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @param mediaId media link or id
|
|
84
84
|
*/
|
|
85
85
|
fetchMediaInfo = async mediaId => {
|
|
86
86
|
if (!mediaId.startsWith(this.proxiedBaseUrl)) {
|
|
@@ -175,11 +175,11 @@ class MultiMovies extends MovieParser {
|
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @param episodeId episode id
|
|
181
|
-
* @param media media id
|
|
182
|
-
* @param server server type (default `StreamWish`) (optional)
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @param episodeId episode id
|
|
181
|
+
* @param media media id
|
|
182
|
+
* @param server server type (default `StreamWish`) (optional)
|
|
183
183
|
*/
|
|
184
184
|
fetchEpisodeSources = async (episodeId, mediaId,
|
|
185
185
|
//just placeholder for compatibility with tmdb
|
|
@@ -251,9 +251,9 @@ class MultiMovies extends MovieParser {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @param episodeId takes episode link or movie id
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @param episodeId takes episode link or movie id
|
|
257
257
|
*/
|
|
258
258
|
fetchEpisodeServers = async episodeId => {
|
|
259
259
|
if (!episodeId.startsWith(this.baseUrl)) {
|
|
@@ -24,10 +24,10 @@ class MultiStream extends MovieParser {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param query search query string
|
|
30
|
-
* @param page page number (default 1) (optional)
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param query search query string
|
|
30
|
+
* @param page page number (default 1) (optional)
|
|
31
31
|
*/
|
|
32
32
|
search = async (query, page = 1) => {
|
|
33
33
|
const searchUrl = `${this.apiUrl}/search/multi?api_key=${this.apiKey}&language=en-US&page=${page}&include_adult=false&query=${query}`;
|
|
@@ -76,9 +76,9 @@ class MultiStream extends MovieParser {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param mediaId - The media identifier (TMDB ID with type, e.g., "1071585$movie")
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param mediaId - The media identifier (TMDB ID with type, e.g., "1071585$movie")
|
|
82
82
|
*/
|
|
83
83
|
fetchMediaInfo = async mediaId => {
|
|
84
84
|
const movieInfo = {
|
|
@@ -161,21 +161,21 @@ class MultiStream extends MovieParser {
|
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @param episodeId episode id
|
|
167
|
-
* @param mediaId media id
|
|
168
|
-
* @param server server type (defaults to the first from `fetchEpisodeServers`) (optional)
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @param episodeId episode id
|
|
167
|
+
* @param mediaId media id
|
|
168
|
+
* @param server server type (defaults to the first from `fetchEpisodeServers`) (optional)
|
|
169
169
|
*/
|
|
170
170
|
fetchEpisodeSources = async (episodeId, mediaId, server) => {
|
|
171
171
|
const firstServer = (await this.fetchEpisodeServers(episodeId, mediaId))[0].name;
|
|
172
172
|
return await getMultiSources(episodeId, server ? server : firstServer);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @param episodeId takes episode link or movie id
|
|
178
|
-
* @param mediaId takes movie link or id (found on movie movieInfo object)
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @param episodeId takes episode link or movie id
|
|
178
|
+
* @param mediaId takes movie link or id (found on movie movieInfo object)
|
|
179
179
|
*/
|
|
180
180
|
fetchEpisodeServers = async (episodeId, mediaId) => {
|
|
181
181
|
try {
|