react-native-consumet 1.0.0-rc.0 → 1.0.0-rc.2
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/android/generated/java/com/consumet/NativeConsumetSpec.java +4 -0
- package/android/generated/jni/RNConsumetSpec-generated.cpp +6 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +8 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +9 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +7 -0
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +248 -189
- package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +7 -0
- package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +2 -0
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +8 -0
- package/ios/generated/RNConsumetSpecJSI.h +9 -0
- package/lib/commonjs/NativeConsumet.ts +28 -26
- package/lib/commonjs/extension-registry.json +13 -13
- package/lib/commonjs/extractors/filemoon.js +2 -2
- package/lib/commonjs/extractors/kwik.js +60 -15
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- 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 +12 -9
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +78 -0
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +312 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -0
- 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 +2 -2
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +76 -74
- 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 +21 -20
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +142 -130
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/utils/ExtractorManager.js +15 -15
- package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +2 -1
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +9 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +6 -2
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +44 -54
- 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/NativeConsumet.ts +28 -26
- package/lib/module/extension-registry.json +13 -13
- package/lib/module/extractors/filemoon.js +2 -2
- package/lib/module/extractors/kwik.js +60 -15
- package/lib/module/extractors/kwik.js.map +1 -1
- 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 +13 -9
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +73 -0
- package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js +309 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -0
- 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 +3 -2
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +74 -73
- 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 +21 -20
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +141 -129
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/utils/ExtractorManager.js +16 -16
- package/lib/module/utils/ExtractorManager.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +2 -1
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +10 -1
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +8 -4
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +23 -33
- 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/NativeConsumet.d.ts +2 -0
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +6 -6
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/commonjs/src/models/provider-context.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/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- 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/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.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/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.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/NativeConsumet.d.ts +2 -0
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +6 -6
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +2 -2
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/module/src/models/provider-context.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/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- 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/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/module/src/providers/movies/multistream/utils.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/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.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 +6 -2
- package/src/NativeConsumet.ts +2 -0
- 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 +113 -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 +176 -175
- package/src/models/extension-manifest.ts +77 -77
- package/src/models/extractor-context.ts +55 -41
- package/src/models/index.ts +107 -106
- package/src/models/provider-context.ts +192 -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 +350 -348
- package/src/providers/anime/animesuge/animesuge.ts +77 -0
- package/src/providers/anime/animesuge/create-animesuge.ts +327 -0
- 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 +656 -655
- package/src/providers/anime/zoro/zoro.ts +198 -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 +232 -231
- package/src/providers/movies/multistream/utils.ts +147 -270
- package/src/utils/ExtractorManager.ts +311 -311
- package/src/utils/ProviderManager.ts +423 -424
- package/src/utils/create-extractor-context.ts +36 -22
- package/src/utils/create-provider-context.ts +117 -107
- package/src/utils/extension-utils.ts +105 -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
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import type { IVideo, ISource } from '.';
|
|
2
|
-
import type { PolyURL } from '../utils/url-polyfill';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface for video extractors - can be implemented by both classes and functions
|
|
6
|
-
*/
|
|
7
|
-
export interface IVideoExtractor {
|
|
8
|
-
/**
|
|
9
|
-
* The server name of the video provider
|
|
10
|
-
*/
|
|
11
|
-
serverName: string;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* list of videos available
|
|
15
|
-
*/
|
|
16
|
-
sources: IVideo[];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* takes video link
|
|
20
|
-
*
|
|
21
|
-
* returns video sources (video links) available
|
|
22
|
-
*/
|
|
23
|
-
extract(videoUrl: PolyURL, ...args: any): Promise<IVideo[] | ISource>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Abstract class for video extractors - for class-based implementations
|
|
28
|
-
*/
|
|
29
|
-
abstract class VideoExtractor {
|
|
30
|
-
/**
|
|
31
|
-
* The server name of the video provider
|
|
32
|
-
*/
|
|
33
|
-
protected abstract serverName: string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* list of videos available
|
|
37
|
-
*/
|
|
38
|
-
protected abstract sources: IVideo[];
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* takes video link
|
|
42
|
-
*
|
|
43
|
-
* returns video sources (video links) available
|
|
44
|
-
*/
|
|
45
|
-
protected abstract extract(videoUrl: URL, ...args: any): Promise<IVideo[] | ISource>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default VideoExtractor;
|
|
1
|
+
import type { IVideo, ISource } from '.';
|
|
2
|
+
import type { PolyURL } from '../utils/url-polyfill';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface for video extractors - can be implemented by both classes and functions
|
|
6
|
+
*/
|
|
7
|
+
export interface IVideoExtractor {
|
|
8
|
+
/**
|
|
9
|
+
* The server name of the video provider
|
|
10
|
+
*/
|
|
11
|
+
serverName: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* list of videos available
|
|
15
|
+
*/
|
|
16
|
+
sources: IVideo[];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* takes video link
|
|
20
|
+
*
|
|
21
|
+
* returns video sources (video links) available
|
|
22
|
+
*/
|
|
23
|
+
extract(videoUrl: PolyURL, ...args: any): Promise<IVideo[] | ISource>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Abstract class for video extractors - for class-based implementations
|
|
28
|
+
*/
|
|
29
|
+
abstract class VideoExtractor {
|
|
30
|
+
/**
|
|
31
|
+
* The server name of the video provider
|
|
32
|
+
*/
|
|
33
|
+
protected abstract serverName: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* list of videos available
|
|
37
|
+
*/
|
|
38
|
+
protected abstract sources: IVideo[];
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* takes video link
|
|
42
|
+
*
|
|
43
|
+
* returns video sources (video links) available
|
|
44
|
+
*/
|
|
45
|
+
protected abstract extract(videoUrl: URL, ...args: any): Promise<IVideo[] | ISource>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default VideoExtractor;
|
|
@@ -1,245 +1,245 @@
|
|
|
1
|
-
import { load } from 'cheerio';
|
|
2
|
-
import axios, { type AxiosResponse } from 'axios';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
AnimeParser,
|
|
6
|
-
type ISearch,
|
|
7
|
-
type IAnimeInfo,
|
|
8
|
-
MediaStatus,
|
|
9
|
-
type IAnimeResult,
|
|
10
|
-
type ISource,
|
|
11
|
-
type IEpisodeServer,
|
|
12
|
-
type IVideo,
|
|
13
|
-
MediaFormat,
|
|
14
|
-
} from '../../models';
|
|
15
|
-
|
|
16
|
-
interface WatchAnime {
|
|
17
|
-
url: string;
|
|
18
|
-
quality: string;
|
|
19
|
-
isM3U8: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
class AnimeDrive extends AnimeParser {
|
|
23
|
-
override readonly name = 'AnimeDrive';
|
|
24
|
-
protected override baseUrl = 'https://animedrive.hu';
|
|
25
|
-
protected override logo = 'https://cdn.rcd.gg/PreMiD/websites/A/AnimeDrive/assets/logo.png';
|
|
26
|
-
protected override classPath = 'ANIME.animedrive';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @param query Search query
|
|
30
|
-
* @param page Page number (optional)
|
|
31
|
-
*/
|
|
32
|
-
override search = async (query: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
|
|
33
|
-
try {
|
|
34
|
-
const { data } = await axios.get(`${this.baseUrl}/search/?q=${decodeURIComponent(query)}&p=${page}`);
|
|
35
|
-
|
|
36
|
-
const $ = load(data);
|
|
37
|
-
|
|
38
|
-
const hasNextPage =
|
|
39
|
-
$('.nk-pagination.nk-pagination-center > nav > a.nk-pagination-current-white').next('a').length > 0;
|
|
40
|
-
|
|
41
|
-
const searchResults: IAnimeResult[] = [];
|
|
42
|
-
|
|
43
|
-
$('div.row.row--grid .card')
|
|
44
|
-
.slice(1)
|
|
45
|
-
.each((i, el) => {
|
|
46
|
-
const id = $(el)
|
|
47
|
-
.find('div.card__content > h3.card__title > a')
|
|
48
|
-
.attr('href')
|
|
49
|
-
?.replace('https://animedrive.hu/anime/?id=', '');
|
|
50
|
-
const title = $(el).find('div.card__content > h3.card__title > a').text();
|
|
51
|
-
const image = $(el).find('div.card__cover > div.nk-image-box-1-a > img').attr('src');
|
|
52
|
-
const url = $(el).find('div.card__content > h3.card__title > a').attr('href');
|
|
53
|
-
const subOrDub = 'sub'; // there is no hungarian dub for animes sadly
|
|
54
|
-
|
|
55
|
-
if (id && title && image && url) {
|
|
56
|
-
searchResults.push({ id, title, image, url, subOrDub });
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
currentPage: page,
|
|
62
|
-
hasNextPage: hasNextPage,
|
|
63
|
-
results: searchResults,
|
|
64
|
-
};
|
|
65
|
-
} catch (err) {
|
|
66
|
-
throw new Error((err as Error).message);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @param id Anime id
|
|
72
|
-
*/
|
|
73
|
-
override fetchAnimeInfo = async (id: string): Promise<IAnimeInfo> => {
|
|
74
|
-
const info: IAnimeInfo = {
|
|
75
|
-
id: id,
|
|
76
|
-
title: '',
|
|
77
|
-
};
|
|
78
|
-
try {
|
|
79
|
-
const { data } = await axios.get(`${this.baseUrl}/anime/?id=${id}`);
|
|
80
|
-
const $ = load(data);
|
|
81
|
-
|
|
82
|
-
info.title = $('div.col-sm-12.col-md-8.col-lg-9 > h2').text();
|
|
83
|
-
info.image = $('div.nk-image-box-1-a.col-12 > img').attr('src');
|
|
84
|
-
info.description = $('div.col-sm-12.col-md-8.col-lg-9 > p.col-12').text().trim();
|
|
85
|
-
|
|
86
|
-
const typeText = $('table.animeSpecs.left td:contains("TÍPUS:")').next('td').text().trim();
|
|
87
|
-
info.type = this.parseType(typeText);
|
|
88
|
-
|
|
89
|
-
info.releaseYear = $('table.animeSpecs.left td:contains("KIADÁS:")').next('td').text().trim();
|
|
90
|
-
|
|
91
|
-
const statusText = $('table.animeSpecs.left td:contains("STÁTUSZ:")').next('td').text().trim();
|
|
92
|
-
info.status = this.parseStatus(statusText);
|
|
93
|
-
|
|
94
|
-
const totalEpisodesWithSlash = $('table.animeSpecs.right td:contains("RÉSZEK:")').next('td').text().trim();
|
|
95
|
-
const totalEpisodesWithoutSlash = totalEpisodesWithSlash.split('/')[0]!.trim();
|
|
96
|
-
info.totalEpisodes = parseInt(totalEpisodesWithoutSlash);
|
|
97
|
-
info.url = `${this.baseUrl}/anime/?id=${id}`;
|
|
98
|
-
info.episodes = [];
|
|
99
|
-
|
|
100
|
-
const episodes = Array.from({ length: info.totalEpisodes }, (_, i) => i + 1);
|
|
101
|
-
episodes.forEach((_, i) => {
|
|
102
|
-
info.episodes?.push({
|
|
103
|
-
id: `?id=${id}&ep=${i + 1}`,
|
|
104
|
-
number: i + 1,
|
|
105
|
-
title: `${info.title} Episode ${i + 1}`,
|
|
106
|
-
url: `${this.baseUrl}/watch/?id=${id}&ep=${i + 1}`,
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
return info;
|
|
110
|
-
} catch (err) {
|
|
111
|
-
throw new Error((err as Error).message);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
private parseType(typeText: string): MediaFormat {
|
|
116
|
-
switch (typeText) {
|
|
117
|
-
case 'Sorozat':
|
|
118
|
-
return MediaFormat.TV;
|
|
119
|
-
case 'Film':
|
|
120
|
-
return MediaFormat.MOVIE;
|
|
121
|
-
case 'Special':
|
|
122
|
-
return MediaFormat.SPECIAL;
|
|
123
|
-
case 'OVA':
|
|
124
|
-
return MediaFormat.OVA;
|
|
125
|
-
default:
|
|
126
|
-
return MediaFormat.TV;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private parseStatus(statusText: string): MediaStatus {
|
|
131
|
-
switch (statusText) {
|
|
132
|
-
case 'Fut':
|
|
133
|
-
return MediaStatus.ONGOING;
|
|
134
|
-
case 'Befejezett':
|
|
135
|
-
return MediaStatus.COMPLETED;
|
|
136
|
-
case 'Hamarosan':
|
|
137
|
-
return MediaStatus.NOT_YET_AIRED;
|
|
138
|
-
default:
|
|
139
|
-
return MediaStatus.UNKNOWN;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @param page Page number
|
|
145
|
-
*/
|
|
146
|
-
fetchRecentEpisodes = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
|
|
147
|
-
try {
|
|
148
|
-
const { data } = await axios.get(`${this.baseUrl}/latest-added?page=${page}`);
|
|
149
|
-
const $ = load(data);
|
|
150
|
-
|
|
151
|
-
const hasNextPage = !$('.pagination > nav > ul > li').last().hasClass('disabled');
|
|
152
|
-
|
|
153
|
-
const recentEpisodes: IAnimeResult[] = [];
|
|
154
|
-
|
|
155
|
-
$('div.film_list-wrap > div').each((i, el) => {
|
|
156
|
-
const id = $(el).find('div.film-poster > a').attr('href')?.replace('/watch/', '');
|
|
157
|
-
const image = $(el).find('div.film-poster > img').attr('data-src');
|
|
158
|
-
const title = $(el).find('div.film-poster > img').attr('alt');
|
|
159
|
-
const url = `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`;
|
|
160
|
-
const episode = parseInt($(el).find('div.tick-eps').text().replace('EP ', '').split('/')[0]!);
|
|
161
|
-
if (id && image && title && url && !isNaN(episode)) {
|
|
162
|
-
recentEpisodes.push({ id, image, title, url, episode });
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
return {
|
|
167
|
-
currentPage: page,
|
|
168
|
-
hasNextPage: hasNextPage,
|
|
169
|
-
results: recentEpisodes,
|
|
170
|
-
};
|
|
171
|
-
} catch (err) {
|
|
172
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @param episodeId episode id
|
|
179
|
-
*/
|
|
180
|
-
override fetchEpisodeSources = async (episodeId: string): Promise<ISource> => {
|
|
181
|
-
const headers = {
|
|
182
|
-
'Accept':
|
|
183
|
-
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
|
|
184
|
-
'Accept-Language': 'en-US,en;q=0.9',
|
|
185
|
-
'Dnt': '1',
|
|
186
|
-
'Referer': 'https://animedrive.hu/',
|
|
187
|
-
'Sec-Ch-Ua': '"Not(A:Brand";v="24", "Chromium";v="122"',
|
|
188
|
-
'Sec-Ch-Ua-Mobile': '?0',
|
|
189
|
-
'Sec-Ch-Ua-Platform': '"Windows"',
|
|
190
|
-
'Sec-Fetch-Dest': 'iframe',
|
|
191
|
-
'Sec-Fetch-Mode': 'navigate',
|
|
192
|
-
'Sec-Fetch-Site': 'same-site',
|
|
193
|
-
'Upgrade-Insecure-Requests': '1',
|
|
194
|
-
'User-Agent':
|
|
195
|
-
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
try {
|
|
199
|
-
const response: AxiosResponse<string> = await axios.get(
|
|
200
|
-
`https://player.animedrive.hu/player_v1.5.php${episodeId}`,
|
|
201
|
-
{ headers }
|
|
202
|
-
);
|
|
203
|
-
|
|
204
|
-
const $ = load(response.data);
|
|
205
|
-
const htmlData = response.data;
|
|
206
|
-
|
|
207
|
-
const sourcesDataMatch = /sources:\s*\[\s*(.*?)\s*\],?\s*poster:/.exec(htmlData);
|
|
208
|
-
const sources: WatchAnime[] = [];
|
|
209
|
-
|
|
210
|
-
if (sourcesDataMatch) {
|
|
211
|
-
const sourcesData = sourcesDataMatch[1];
|
|
212
|
-
const sourceRegex = /{\s*src:\s*'(.*?)'.*?type:\s*'(.*?)'.*?size:\s*(\d+),?\s*}/g;
|
|
213
|
-
let match;
|
|
214
|
-
|
|
215
|
-
while ((match = sourceRegex.exec(sourcesData!)) !== null) {
|
|
216
|
-
const url = match[1];
|
|
217
|
-
const size = match[3];
|
|
218
|
-
const quality = `${size}p`;
|
|
219
|
-
const isM3U8 = false; // it's always an mp4 file
|
|
220
|
-
|
|
221
|
-
sources.push({ url: url!, quality: quality, isM3U8: isM3U8 });
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
const convertedSources: IVideo[] = sources.map((wa) => ({
|
|
226
|
-
url: wa.url,
|
|
227
|
-
quality: wa.quality,
|
|
228
|
-
isM3U8: wa.isM3U8,
|
|
229
|
-
}));
|
|
230
|
-
return { sources: convertedSources }; // Ensure sources matches ISource's definition
|
|
231
|
-
} catch (err) {
|
|
232
|
-
//console.log(err);
|
|
233
|
-
throw new Error('Something went wrong. Please try again later.');
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* @deprecated Use fetchEpisodeSources instead
|
|
239
|
-
*/
|
|
240
|
-
override fetchEpisodeServers = (_episodeId: string): Promise<IEpisodeServer[]> => {
|
|
241
|
-
throw new Error('Method not implemented.');
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export default AnimeDrive;
|
|
1
|
+
import { load } from 'cheerio';
|
|
2
|
+
import axios, { type AxiosResponse } from 'axios';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
AnimeParser,
|
|
6
|
+
type ISearch,
|
|
7
|
+
type IAnimeInfo,
|
|
8
|
+
MediaStatus,
|
|
9
|
+
type IAnimeResult,
|
|
10
|
+
type ISource,
|
|
11
|
+
type IEpisodeServer,
|
|
12
|
+
type IVideo,
|
|
13
|
+
MediaFormat,
|
|
14
|
+
} from '../../models';
|
|
15
|
+
|
|
16
|
+
interface WatchAnime {
|
|
17
|
+
url: string;
|
|
18
|
+
quality: string;
|
|
19
|
+
isM3U8: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class AnimeDrive extends AnimeParser {
|
|
23
|
+
override readonly name = 'AnimeDrive';
|
|
24
|
+
protected override baseUrl = 'https://animedrive.hu';
|
|
25
|
+
protected override logo = 'https://cdn.rcd.gg/PreMiD/websites/A/AnimeDrive/assets/logo.png';
|
|
26
|
+
protected override classPath = 'ANIME.animedrive';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param query Search query
|
|
30
|
+
* @param page Page number (optional)
|
|
31
|
+
*/
|
|
32
|
+
override search = async (query: string, page: number = 1): Promise<ISearch<IAnimeResult>> => {
|
|
33
|
+
try {
|
|
34
|
+
const { data } = await axios.get(`${this.baseUrl}/search/?q=${decodeURIComponent(query)}&p=${page}`);
|
|
35
|
+
|
|
36
|
+
const $ = load(data);
|
|
37
|
+
|
|
38
|
+
const hasNextPage =
|
|
39
|
+
$('.nk-pagination.nk-pagination-center > nav > a.nk-pagination-current-white').next('a').length > 0;
|
|
40
|
+
|
|
41
|
+
const searchResults: IAnimeResult[] = [];
|
|
42
|
+
|
|
43
|
+
$('div.row.row--grid .card')
|
|
44
|
+
.slice(1)
|
|
45
|
+
.each((i, el) => {
|
|
46
|
+
const id = $(el)
|
|
47
|
+
.find('div.card__content > h3.card__title > a')
|
|
48
|
+
.attr('href')
|
|
49
|
+
?.replace('https://animedrive.hu/anime/?id=', '');
|
|
50
|
+
const title = $(el).find('div.card__content > h3.card__title > a').text();
|
|
51
|
+
const image = $(el).find('div.card__cover > div.nk-image-box-1-a > img').attr('src');
|
|
52
|
+
const url = $(el).find('div.card__content > h3.card__title > a').attr('href');
|
|
53
|
+
const subOrDub = 'sub'; // there is no hungarian dub for animes sadly
|
|
54
|
+
|
|
55
|
+
if (id && title && image && url) {
|
|
56
|
+
searchResults.push({ id, title, image, url, subOrDub });
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
currentPage: page,
|
|
62
|
+
hasNextPage: hasNextPage,
|
|
63
|
+
results: searchResults,
|
|
64
|
+
};
|
|
65
|
+
} catch (err) {
|
|
66
|
+
throw new Error((err as Error).message);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @param id Anime id
|
|
72
|
+
*/
|
|
73
|
+
override fetchAnimeInfo = async (id: string): Promise<IAnimeInfo> => {
|
|
74
|
+
const info: IAnimeInfo = {
|
|
75
|
+
id: id,
|
|
76
|
+
title: '',
|
|
77
|
+
};
|
|
78
|
+
try {
|
|
79
|
+
const { data } = await axios.get(`${this.baseUrl}/anime/?id=${id}`);
|
|
80
|
+
const $ = load(data);
|
|
81
|
+
|
|
82
|
+
info.title = $('div.col-sm-12.col-md-8.col-lg-9 > h2').text();
|
|
83
|
+
info.image = $('div.nk-image-box-1-a.col-12 > img').attr('src');
|
|
84
|
+
info.description = $('div.col-sm-12.col-md-8.col-lg-9 > p.col-12').text().trim();
|
|
85
|
+
|
|
86
|
+
const typeText = $('table.animeSpecs.left td:contains("TÍPUS:")').next('td').text().trim();
|
|
87
|
+
info.type = this.parseType(typeText);
|
|
88
|
+
|
|
89
|
+
info.releaseYear = $('table.animeSpecs.left td:contains("KIADÁS:")').next('td').text().trim();
|
|
90
|
+
|
|
91
|
+
const statusText = $('table.animeSpecs.left td:contains("STÁTUSZ:")').next('td').text().trim();
|
|
92
|
+
info.status = this.parseStatus(statusText);
|
|
93
|
+
|
|
94
|
+
const totalEpisodesWithSlash = $('table.animeSpecs.right td:contains("RÉSZEK:")').next('td').text().trim();
|
|
95
|
+
const totalEpisodesWithoutSlash = totalEpisodesWithSlash.split('/')[0]!.trim();
|
|
96
|
+
info.totalEpisodes = parseInt(totalEpisodesWithoutSlash);
|
|
97
|
+
info.url = `${this.baseUrl}/anime/?id=${id}`;
|
|
98
|
+
info.episodes = [];
|
|
99
|
+
|
|
100
|
+
const episodes = Array.from({ length: info.totalEpisodes }, (_, i) => i + 1);
|
|
101
|
+
episodes.forEach((_, i) => {
|
|
102
|
+
info.episodes?.push({
|
|
103
|
+
id: `?id=${id}&ep=${i + 1}`,
|
|
104
|
+
number: i + 1,
|
|
105
|
+
title: `${info.title} Episode ${i + 1}`,
|
|
106
|
+
url: `${this.baseUrl}/watch/?id=${id}&ep=${i + 1}`,
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
return info;
|
|
110
|
+
} catch (err) {
|
|
111
|
+
throw new Error((err as Error).message);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
private parseType(typeText: string): MediaFormat {
|
|
116
|
+
switch (typeText) {
|
|
117
|
+
case 'Sorozat':
|
|
118
|
+
return MediaFormat.TV;
|
|
119
|
+
case 'Film':
|
|
120
|
+
return MediaFormat.MOVIE;
|
|
121
|
+
case 'Special':
|
|
122
|
+
return MediaFormat.SPECIAL;
|
|
123
|
+
case 'OVA':
|
|
124
|
+
return MediaFormat.OVA;
|
|
125
|
+
default:
|
|
126
|
+
return MediaFormat.TV;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
private parseStatus(statusText: string): MediaStatus {
|
|
131
|
+
switch (statusText) {
|
|
132
|
+
case 'Fut':
|
|
133
|
+
return MediaStatus.ONGOING;
|
|
134
|
+
case 'Befejezett':
|
|
135
|
+
return MediaStatus.COMPLETED;
|
|
136
|
+
case 'Hamarosan':
|
|
137
|
+
return MediaStatus.NOT_YET_AIRED;
|
|
138
|
+
default:
|
|
139
|
+
return MediaStatus.UNKNOWN;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @param page Page number
|
|
145
|
+
*/
|
|
146
|
+
fetchRecentEpisodes = async (page: number = 1): Promise<ISearch<IAnimeResult>> => {
|
|
147
|
+
try {
|
|
148
|
+
const { data } = await axios.get(`${this.baseUrl}/latest-added?page=${page}`);
|
|
149
|
+
const $ = load(data);
|
|
150
|
+
|
|
151
|
+
const hasNextPage = !$('.pagination > nav > ul > li').last().hasClass('disabled');
|
|
152
|
+
|
|
153
|
+
const recentEpisodes: IAnimeResult[] = [];
|
|
154
|
+
|
|
155
|
+
$('div.film_list-wrap > div').each((i, el) => {
|
|
156
|
+
const id = $(el).find('div.film-poster > a').attr('href')?.replace('/watch/', '');
|
|
157
|
+
const image = $(el).find('div.film-poster > img').attr('data-src');
|
|
158
|
+
const title = $(el).find('div.film-poster > img').attr('alt');
|
|
159
|
+
const url = `${this.baseUrl}${$(el).find('div.film-poster > a').attr('href')}`;
|
|
160
|
+
const episode = parseInt($(el).find('div.tick-eps').text().replace('EP ', '').split('/')[0]!);
|
|
161
|
+
if (id && image && title && url && !isNaN(episode)) {
|
|
162
|
+
recentEpisodes.push({ id, image, title, url, episode });
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
currentPage: page,
|
|
168
|
+
hasNextPage: hasNextPage,
|
|
169
|
+
results: recentEpisodes,
|
|
170
|
+
};
|
|
171
|
+
} catch (err) {
|
|
172
|
+
throw new Error('Something went wrong. Please try again later.');
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @param episodeId episode id
|
|
179
|
+
*/
|
|
180
|
+
override fetchEpisodeSources = async (episodeId: string): Promise<ISource> => {
|
|
181
|
+
const headers = {
|
|
182
|
+
'Accept':
|
|
183
|
+
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
|
|
184
|
+
'Accept-Language': 'en-US,en;q=0.9',
|
|
185
|
+
'Dnt': '1',
|
|
186
|
+
'Referer': 'https://animedrive.hu/',
|
|
187
|
+
'Sec-Ch-Ua': '"Not(A:Brand";v="24", "Chromium";v="122"',
|
|
188
|
+
'Sec-Ch-Ua-Mobile': '?0',
|
|
189
|
+
'Sec-Ch-Ua-Platform': '"Windows"',
|
|
190
|
+
'Sec-Fetch-Dest': 'iframe',
|
|
191
|
+
'Sec-Fetch-Mode': 'navigate',
|
|
192
|
+
'Sec-Fetch-Site': 'same-site',
|
|
193
|
+
'Upgrade-Insecure-Requests': '1',
|
|
194
|
+
'User-Agent':
|
|
195
|
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
try {
|
|
199
|
+
const response: AxiosResponse<string> = await axios.get(
|
|
200
|
+
`https://player.animedrive.hu/player_v1.5.php${episodeId}`,
|
|
201
|
+
{ headers }
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
const $ = load(response.data);
|
|
205
|
+
const htmlData = response.data;
|
|
206
|
+
|
|
207
|
+
const sourcesDataMatch = /sources:\s*\[\s*(.*?)\s*\],?\s*poster:/.exec(htmlData);
|
|
208
|
+
const sources: WatchAnime[] = [];
|
|
209
|
+
|
|
210
|
+
if (sourcesDataMatch) {
|
|
211
|
+
const sourcesData = sourcesDataMatch[1];
|
|
212
|
+
const sourceRegex = /{\s*src:\s*'(.*?)'.*?type:\s*'(.*?)'.*?size:\s*(\d+),?\s*}/g;
|
|
213
|
+
let match;
|
|
214
|
+
|
|
215
|
+
while ((match = sourceRegex.exec(sourcesData!)) !== null) {
|
|
216
|
+
const url = match[1];
|
|
217
|
+
const size = match[3];
|
|
218
|
+
const quality = `${size}p`;
|
|
219
|
+
const isM3U8 = false; // it's always an mp4 file
|
|
220
|
+
|
|
221
|
+
sources.push({ url: url!, quality: quality, isM3U8: isM3U8 });
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const convertedSources: IVideo[] = sources.map((wa) => ({
|
|
226
|
+
url: wa.url,
|
|
227
|
+
quality: wa.quality,
|
|
228
|
+
isM3U8: wa.isM3U8,
|
|
229
|
+
}));
|
|
230
|
+
return { sources: convertedSources }; // Ensure sources matches ISource's definition
|
|
231
|
+
} catch (err) {
|
|
232
|
+
//console.log(err);
|
|
233
|
+
throw new Error('Something went wrong. Please try again later.');
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated Use fetchEpisodeSources instead
|
|
239
|
+
*/
|
|
240
|
+
override fetchEpisodeServers = (_episodeId: string): Promise<IEpisodeServer[]> => {
|
|
241
|
+
throw new Error('Method not implemented.');
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export default AnimeDrive;
|