Compare commits

..

559 commits

Author SHA1 Message Date
github-actions[bot]
dff3d68bac Update extensions 2025-02-01 07:18:05 +00:00
Moustapha Kodjo Amadou
8834f32d40
Merge pull request #157 from NBA2K1/main
#156 fix
2025-02-01 08:17:48 +01:00
NBA2K1
57ad661c74 #156 fix
concurrent requests are limited now.
2025-02-01 07:01:43 +01:00
github-actions[bot]
cc12b0a9a9 Update extensions 2025-01-30 22:20:24 +00:00
Moustapha Kodjo Amadou
f737ea3d5d
Merge pull request #155 from Swakshan/extension/weebcentral
New manga source: Weebcentral
2025-01-30 23:20:07 +01:00
github-actions[bot]
17205d5285 Update extensions 2025-01-30 22:19:53 +00:00
Moustapha Kodjo Amadou
5435f605c9
Merge pull request #154 from Swakshan/extension/aniplay
Fix Aniplay
2025-01-30 23:19:36 +01:00
Swakshan
faddc125f6 extension(weebcentral): Added search & filter 2025-01-29 23:56:20 +05:30
Swakshan
e4e490cf63 extension(weebcentral): Extract manga pages 2025-01-29 21:56:16 +05:30
Swakshan
b5807a2928 extension(weebcentral): Added details 2025-01-29 17:13:56 +05:30
Swakshan
354fd00768 extension(weebcentral): Added popular & latest 2025-01-29 11:29:18 +05:30
Swakshan
7684b0e0ba extension(aniplay): Added Pahe provider and remove Anya provider 2025-01-27 23:08:16 +05:30
Swakshan
68401c05f1 extension(aniplay): Fixed Yuki provider 2025-01-27 23:01:35 +05:30
github-actions[bot]
55542460d7 Update extensions 2025-01-25 20:23:59 +00:00
Moustapha Kodjo Amadou
602276cd35
Merge pull request #146 from Swakshan/extension/netmirror
Update: Netmirror
2025-01-25 21:23:44 +01:00
Moustapha Kodjo Amadou
a03726e0a9
Merge pull request #147 from Schnitzel5/fix/mangadex-filter
fixed global variable access
2025-01-25 21:23:28 +01:00
Schnitzel5
61b3c81373 update version 2025-01-25 21:12:52 +01:00
Schnitzel5
e4da9ad453 fixed global variable access 2025-01-25 21:11:51 +01:00
Swakshan
666e58aa4f extension(netmirror): Validate stream link 2025-01-25 12:10:52 +05:30
Swakshan
f4ab4a1354 extension(netmirror): Added stream extraction preference 2025-01-25 12:01:16 +05:30
github-actions[bot]
c21045ffed Update extensions 2025-01-24 23:47:54 +00:00
Moustapha Kodjo Amadou
34d0c6c6a4
Merge pull request #144 from kashrtx/patch-2
Update animepahe source.dart to version 0.0.5
2025-01-25 00:47:39 +01:00
Moustapha Kodjo Amadou
0d9a818e6d
Merge pull request #143 from kashrtx/patch-1
Update animepahe.dart. Add feature: Preferred audio selection (jpn/eng).
2025-01-25 00:43:31 +01:00
Kaushal Bhingaradia
e3c5fd0deb
Update animepahe source.dart to version 0.0.5
- Update animepahe version constant to 0.0.5 after implementing Preferred Audio Preference feature #143
2025-01-24 13:22:01 -05:00
Kaushal Bhingaradia
ba3170bba0
Update animepahe.dart. Add feature: Preferred audio selection for episodes (English/Japanese)
- Added a feature allowing users to set a default audio preference            (English or Japanese).
- Default is Japanese, but users can switch to English, and the preference is saved.
- Eliminates the need to manually select English dub for each new episode.
2025-01-24 12:11:45 -05:00
Moustapha Kodjo Amadou
67a32248e0 - 2025-01-23 15:19:10 +01:00
github-actions[bot]
6285f9b05a Update extensions 2025-01-23 14:15:31 +00:00
Moustapha Kodjo Amadou
7b06e8061e fix 2025-01-23 15:15:13 +01:00
github-actions[bot]
90647a7f0a Update extensions 2025-01-23 14:00:07 +00:00
Moustapha Kodjo Amadou
9f170b7a76 rewrite MangaDex source code in JS 2025-01-23 14:59:30 +01:00
github-actions[bot]
24271a087e Update extensions 2025-01-23 05:37:30 +00:00
Moustapha Kodjo Amadou
f3e845b3b7
Merge pull request #142 from hollow-frenk/main
animesaturn: fix for this:
2025-01-23 06:37:12 +01:00
Moustapha Kodjo Amadou
b7ea56d72d
Update source.dart 2025-01-23 06:36:44 +01:00
Francesco De Feo
2801a25ddf animesaturn: fix for this:
dart_eval runtime exception: Bad state: No element
List.first (dart:core-patch/growable_array.dart:344)
SIterable.SgetProperty (package:dart_eval/src/eval/shared/stdlib/core/iterable.dart:609)
SList. S getProperty (package:dart-_eval/s/eval/shared/stdib/core/list.dart:900)
at < asynchronous gap>
Shangri-La Frontier 2
RUNTIME STATE
6-=-=========
Program offset: 831
Shangri-La Frontier 2
Stack sample: [L7: Instance of "$Future<$Response>', L8: Instance of '$Response', L9: $" «html» <body» «script type="text/javascript" src="/min.js" > </script»<noscript»<h1 style="text-align:center;color:red;"› «strong»Please turn JavaScript on and reload the page.</ strong> </h1></noscripts ‹script»function toNumbers(d)(var e=;d.replace(//g,function(d)epush(parselnt(d,16));return e/function toHexfor(vard=[d=1==arguments.length&&arguments|01.constructor==Array?arguments[Ol:arguments, e=**,f=0;f<d.length;f+
+)e+=(16>dff]?")". "*)+d[f|.toString(16);return e.toLowerCase())var a=toNumbers("F4baf9d74d4cb868c5317e9802ca7c1f""),b=toNumbers("Ic2aabd2a4a9ed25aeae78669546c8f9"),c=toNumbers("2e34487f1b463e342a9ec7986e427e80");document.cookie="ASNew-
Gv="+ toHex(slowAES.decrypt(c,2,a,b))+"; path=/";location.href="http://www.animesaturn.cx/anime/Dan-Da-Dan?d=1";</script></body></html>", L10: Instance of '$MManga', L11: Function{func: Closure: (dynamic, dynamic, List<$Value?>) => $Value? from Function
'Xpath@1865285211': static.), L12: $"//div@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"/textO", L13: D, *L14: null, L15: null, L16: null]
Args sample: 1
Call stack: [0, -1]
TRACE:
Nanatsu no Taizai: Mokushiroku no Yonkishi 2
Episodio 9
825: PushConstant (C55)
Tail: 100 Years Quest
826: BoxString (L12)
827: PushArg (L9)
Dragon Ball Daima
828: PushArg (L12)
829: InvokeDynamic (LO.C8)
on Ball Daimal
830: PushReturnValue O
831: PushObjectProperty (L13.C56) < < < EXCEPTION
832: PushReturnValue ()
833: PushObjectProperty (LO.C57)
834: PushReturnValue
2025-01-23 00:32:03 +01:00
github-actions[bot]
39dfd2b586 Update extensions 2025-01-21 08:04:47 +00:00
Moustapha Kodjo Amadou
814f585057 netflixmirror: include conditional media name display based on user preference 2025-01-21 09:04:17 +01:00
github-actions[bot]
5202a7740e Update extensions 2025-01-20 12:16:25 +00:00
Moustapha Kodjo Amadou
6375baee7a netflixmirror: enable media name by default display 2025-01-20 13:16:02 +01:00
github-actions[bot]
c8a773c9fd Update extensions 2025-01-20 11:59:36 +00:00
Moustapha Kodjo Amadou
1744099791 Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2025-01-20 12:59:13 +01:00
Moustapha Kodjo Amadou
cc90b4105b fix 2025-01-20 12:59:05 +01:00
github-actions[bot]
7495be975e Update extensions 2025-01-20 11:52:00 +00:00
Moustapha Kodjo Amadou
de9bc757c4 ZoroTheme: add 'Raw' option for type selection 2025-01-20 12:51:31 +01:00
github-actions[bot]
8265ec53e3 Update extensions 2025-01-20 11:38:31 +00:00
Moustapha Kodjo Amadou
d570df212d
Merge pull request #138 from Swakshan/extension/netmirror
Updated NetflixMirror extension
2025-01-20 12:38:14 +01:00
Swakshan
4b76a30e3f extension(NetMirror): Updated links 2025-01-19 22:23:18 +05:30
Swakshan
791826c3c9 extension(NetMirror): Added prime 2025-01-19 22:23:18 +05:30
Swakshan
dffb779403 extension(netflixMirror): updated cookie logic 2025-01-19 22:23:18 +05:30
Swakshan
499197a59d extension(netflixMirror): updated display name logic 2025-01-19 22:23:18 +05:30
Swakshan
e869c3cfee extension(netflixMirror): Added stream quality preference 2025-01-19 22:23:18 +05:30
Swakshan
cea82dd040 extension(netflixMirror): Added 1080p support 2025-01-19 22:23:18 +05:30
Swakshan
970fe5d81c extension(netflixMirror): Use TV domain for cookie 2025-01-19 22:23:18 +05:30
github-actions[bot]
3adc787cf6 Update extensions 2025-01-17 15:57:19 +00:00
Moustapha Kodjo Amadou
0b89b4a917 + 2025-01-17 16:56:58 +01:00
github-actions[bot]
37ef74bf5d Update extensions 2025-01-17 15:16:48 +00:00
Moustapha Kodjo Amadou
ce2cc568a2 fix 2025-01-17 16:16:26 +01:00
github-actions[bot]
5d54fe8b25 Update extensions 2025-01-17 10:38:38 +00:00
Moustapha Kodjo Amadou
900c891713 Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2025-01-17 11:38:11 +01:00
Moustapha Kodjo Amadou
5fe963dce4 update filma24 2025-01-17 11:38:03 +01:00
github-actions[bot]
76c1a241a0 Update extensions 2025-01-17 10:34:41 +00:00
Moustapha Kodjo Amadou
3f361d56ae update filma24 baseUrl 2025-01-17 11:34:13 +01:00
Moustapha Kodjo Amadou
ca6d0d04a1 fix Anime-Sama 2025-01-17 11:32:35 +01:00
github-actions[bot]
2cae2d260a Update extensions 2025-01-16 10:04:16 +00:00
Moustapha Kodjo Amadou
c27b6649b3 extension(aniplay): add scanlator field for filler episodes 2025-01-16 11:03:56 +01:00
github-actions[bot]
752056a02e Update extensions 2025-01-16 09:58:37 +00:00
Moustapha Kodjo Amadou
458f266f18 add 'all' to provider preference 2025-01-16 10:58:12 +01:00
github-actions[bot]
c7edf0fd01 Update extensions 2025-01-15 05:27:07 +00:00
Moustapha Kodjo Amadou
e83cec01e2
Merge pull request #136 from Swakshan/extension/aniplay
New source: Aniplay
2025-01-15 06:26:50 +01:00
Swakshan
301d94c269 extension(aniplay): misc 2025-01-14 23:18:28 +05:30
Swakshan
6ae0c65e68 extension(aniplay): misc 2025-01-14 23:16:07 +05:30
Swakshan
3f284a05fc extension(aniplay): Added preferred video resolution 2025-01-14 22:44:40 +05:30
Swakshan
3bbb1599ee extension(aniplay): Mark filler episodes 2025-01-14 12:30:19 +05:30
Swakshan
1b69828fb6 extension(aniplay): Added preferred audio type 2025-01-14 12:30:19 +05:30
Swakshan
e2e3b526c3 extension(aniplay): Added servers 2025-01-14 12:30:19 +05:30
Swakshan
7f2eca5840 extension(aniplay): Added details 2025-01-14 12:30:19 +05:30
Swakshan
c910bb9f7c extension(aniplay): Added anilist support for latest, popular, search 2025-01-14 12:30:19 +05:30
github-actions[bot]
c0f96a3e6d Update extensions 2025-01-13 16:50:48 +00:00
Moustapha Kodjo Amadou
7bd3c80c60 + 2025-01-13 17:50:16 +01:00
github-actions[bot]
463425746e Update extensions 2025-01-12 22:18:28 +00:00
Moustapha Kodjo Amadou
b85ec3aba2
Update sudatchi.js 2025-01-12 23:18:10 +01:00
Moustapha Kodjo Amadou
d5113bedc5
Update serienstream.js 2025-01-12 23:17:04 +01:00
Moustapha Kodjo Amadou
a5122ac96e
Update aniworld.js 2025-01-12 23:16:37 +01:00
Moustapha Kodjo Amadou
1b84c01390
Merge pull request #133 from NBA2K1/main
Update AniWorld & SerienStream
2025-01-12 23:15:32 +01:00
Moustapha Kodjo Amadou
01835f3958
Update sudatchi.js 2025-01-12 23:15:07 +01:00
Moustapha Kodjo Amadou
48dbe1386a
Update sudatchi.js 2025-01-12 23:13:43 +01:00
github-actions[bot]
9ac4a08379 Update extensions 2025-01-12 22:12:43 +00:00
Moustapha Kodjo Amadou
24605be091
Merge pull request #132 from Swakshan/extension/sudatchi
New source: Sudatchi
2025-01-12 23:12:26 +01:00
Enbiya Olgun
7ead8db4d8 Update AniWorld & SerienStream
Fix formatting issue in description
2025-01-12 22:45:27 +01:00
github-actions[bot]
80130a357f Update extensions 2025-01-12 12:15:18 +00:00
Moustapha Kodjo Amadou
16bb2126f1 - 2025-01-12 13:14:47 +01:00
github-actions[bot]
979e998f55 Update extensions 2025-01-12 12:07:11 +00:00
Moustapha Kodjo Amadou
92f716c547
Merge pull request #131 from Schnitzel5/feature/novel-download
adjusted novel sources
2025-01-12 13:06:54 +01:00
Swakshan
21c0e197d1 extension(sudatchi): bug fixes 2025-01-12 15:36:24 +05:30
Swakshan
c2ebf8cce6 extension(sudatchi): reverse chapters 2025-01-12 15:29:36 +05:30
Swakshan
263fc76e3e extension(sudatchi): Added streams 2025-01-12 15:24:18 +05:30
Swakshan
d2752504e5 extension(sudatchi): Added details 2025-01-12 15:24:18 +05:30
Swakshan
9ef890773e extension(sudatchi): Added search and filters 2025-01-12 15:24:18 +05:30
Swakshan
36451c230c extension(sudatchi): Added popular & latest 2025-01-12 15:24:18 +05:30
github-actions[bot]
3e3cdb94c4 Update extensions 2025-01-09 13:44:46 +00:00
kodjomoustapha
4bc64789c5 Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2025-01-09 14:44:26 +01:00
kodjomoustapha
59ce118eec fix 2025-01-09 14:44:22 +01:00
github-actions[bot]
09e79f6e59 Update extensions 2025-01-09 13:44:02 +00:00
kodjomoustapha
40e83490c7 fix 2025-01-09 14:42:49 +01:00
github-actions[bot]
4afd9461ad Update extensions 2025-01-09 13:40:44 +00:00
kodjomoustapha
3c667e59f5 fix 2025-01-09 14:40:22 +01:00
kodjomoustapha
d972abbe87 rewrite Comick source code in JS 2025-01-09 14:34:13 +01:00
Schnitzel5
eebb7d72ed adjusted novel sources 2025-01-08 13:19:23 +00:00
github-actions[bot]
2ca9be2319 Update extensions 2025-01-08 09:57:29 +00:00
kodjomoustapha
decd0b9759 Revert "Merge pull request #130 from Schnitzel5/feature/novel-download"
This reverts commit 7eedf0449c, reversing
changes made to a9a6aed1bb.
2025-01-08 10:57:07 +01:00
github-actions[bot]
c62e132126 Update extensions 2025-01-08 09:55:26 +00:00
Moustapha Kodjo Amadou
7eedf0449c
Merge pull request #130 from Schnitzel5/feature/novel-download
adjusted novel sources
2025-01-08 10:55:08 +01:00
Schnitzel5
11b9223b88 adjusted novel sources 2025-01-07 23:38:20 +01:00
Schnitzel5
fd4ffedef3 Merge branch 'main' into feature/wuxiaclick 2025-01-07 19:45:54 +01:00
Schnitzel5
9e370b16aa + 2025-01-07 15:55:02 +01:00
Schnitzel5
8bde27c857 + 2025-01-07 00:32:42 +01:00
github-actions[bot]
a9a6aed1bb Update extensions 2025-01-06 18:27:47 +00:00
Moustapha Kodjo Amadou
71c81f448a
Merge pull request #128 from Schnitzel5/feature/wordrain
added Wordrain69
2025-01-06 19:27:27 +01:00
github-actions[bot]
333d7aef69 Update extensions 2025-01-06 18:27:03 +00:00
kodjomoustapha
55d4f1745f fix 2025-01-06 19:24:31 +01:00
Schnitzel5
8671db9ef3 added Wordrain69 2025-01-06 18:30:31 +01:00
github-actions[bot]
e76efcbd7c Update extensions 2025-01-06 14:47:32 +00:00
Moustapha Kodjo Amadou
37c3b1b179
Merge pull request #121 from Schnitzel5/feature/light-novel
add novel support
2025-01-06 15:47:14 +01:00
Moustapha Kodjo Amadou
ea22b7f4cd
Merge branch 'main' into feature/light-novel 2025-01-06 15:41:28 +01:00
kodjomoustapha
34c818a2cd + 2025-01-06 15:36:05 +01:00
github-actions[bot]
e6d839506f Update extensions 2025-01-06 13:10:08 +00:00
kodjomoustapha
94f64a2e79 + 2025-01-06 14:09:38 +01:00
github-actions[bot]
ce8be66d86 Update extensions 2025-01-06 12:27:00 +00:00
kodjomoustapha
81517a2bcd fix megacloud 2025-01-06 13:26:36 +01:00
github-actions[bot]
85881230e3 Update extensions 2025-01-06 12:22:28 +00:00
Moustapha Kodjo Amadou
4cc8f54fa4
fix netflixmirror 2025-01-06 13:22:11 +01:00
github-actions[bot]
6d971cb4fb Update extensions 2025-01-05 18:20:00 +00:00
Moustapha Kodjo Amadou
9cf14d0d46
Merge pull request #125 from Swakshan/extension/autoembed
Added new stream sources for Autoembed
2025-01-05 19:19:41 +01:00
Swakshan
f54f71d3ff extension(autembed): Added vidapi server 2025-01-03 18:30:48 +05:30
Swakshan
e59d703484 extension(autembed): Added flicky server 2025-01-03 15:24:12 +05:30
Swakshan
d8f5cb3975 extension(autoembed): Added autoembed - Indian languages server 2025-01-03 13:12:47 +05:30
Swakshan
86d4b73257 extension(autoembed): Misc 2025-01-03 13:10:02 +05:30
Schnitzel5
8046a81d16 added another domain 2025-01-02 22:13:40 +01:00
Swakshan
64635de462 extension(autoembed): Added mulitple stream source 2025-01-03 00:23:51 +05:30
github-actions[bot]
73c6509c4e Update extensions 2024-12-27 08:42:11 +00:00
kodjomoustapha
e936b60623 fix 2024-12-27 09:41:48 +01:00
github-actions[bot]
ff2a7fa557 Update extensions 2024-12-27 08:29:55 +00:00
kodjomoustapha
8eb3ccb793 fix 2024-12-27 09:29:33 +01:00
github-actions[bot]
3906233019 Update extensions 2024-12-27 08:10:44 +00:00
Moustapha Kodjo Amadou
96f40a2e9c
Merge pull request #124 from Swakshan/main
New Source: Mangapill
2024-12-27 09:10:28 +01:00
Swakshan
6bba7e0d4b extension(mangapill): release 2024-12-25 16:13:00 +05:30
Swakshan
1664c238ff extension(mangapill): Added get pages 2024-12-25 16:11:47 +05:30
Swakshan
aa0a0563d6 extension(mangapill): Added search filters 2024-12-25 15:50:26 +05:30
Swakshan
76e17aed9d extension(mangapill): Added manga title pref 2024-12-24 19:53:57 +05:30
Swakshan
e18af3aa79 extension(mangapill): Added manga details 2024-12-24 19:29:18 +05:30
Swakshan
26bb82df8a extension(mangapill): Added search 2024-12-24 13:35:13 +05:30
Swakshan
c970fb211e extension(mangapill): Added popular and latest section 2024-12-24 13:18:02 +05:30
github-actions[bot]
fb5640ec3b Update extensions 2024-12-23 05:22:56 +00:00
Moustapha Kodjo Amadou
bfdebcfa5e
Merge pull request #123 from Swakshan/extension/autoembed
extension(Autoembed): Updates
2024-12-23 06:22:38 +01:00
Swakshan
d731680b1d extension(Autoembed): optimisation 2024-12-22 21:14:05 +05:30
Swakshan
e523e14ca3 extension(Autoembed): Modified content link 2024-12-22 20:27:04 +05:30
Swakshan
8084885244 extension(Autoembed): Added list priority 2024-12-22 20:01:53 +05:30
Schnitzel5
7695344aee updated workflow 2024-12-21 21:20:10 +01:00
Schnitzel5
b69c5dfa5f fix 2024-12-21 21:16:05 +01:00
Schnitzel5
cbdb59f795 removed temp redirect 2024-12-21 20:19:08 +01:00
Schnitzel5
2b764e40ef Merge branch 'feature/novel' into feature/light-novel 2024-12-21 20:16:42 +01:00
Schnitzel5
8b68030674 added filters 2024-12-21 20:11:21 +01:00
github-actions[bot]
2d6b41c90e Update extensions 2024-12-21 15:41:29 +00:00
Moustapha Kodjo Amadou
f44ce1b6f9
reverse episodes 2024-12-21 16:41:11 +01:00
github-actions[bot]
9a626c5d9f Update extensions 2024-12-21 15:05:47 +00:00
Moustapha Kodjo Amadou
d7bce6a7fc
Merge pull request #120 from Swakshan/main
New Source: Autoembed (All)
2024-12-21 16:05:30 +01:00
Moustapha Kodjo Amadou
2403ce71c2
Update autoembed.js 2024-12-21 16:03:26 +01:00
Swakshan
68e5849bc9 Merge branch 'extension/autoembed' 2024-12-20 23:48:12 +05:30
Swakshan
3e6b0a4f16 extension(Autoembed): misc 2024-12-20 23:42:26 +05:30
Swakshan
7dd7b2e8ab extension(Autoembed): Added search 2024-12-20 23:07:54 +05:30
Swakshan
8395d2df9e extension(Autoembed): Added stream resolution preference 2024-12-20 22:59:49 +05:30
Swakshan
7584c28bb5 extension(Autoembed): Added latest page 2024-12-20 22:16:17 +05:30
Swakshan
0ff2f005be extension(Autoembed): Updated logic 2024-12-20 21:56:08 +05:30
github-actions[bot]
ebba6a94a5 Update extensions 2024-12-20 14:17:19 +00:00
kodjomoustapha
fb18ee975f fix Asura Scans 2024-12-20 15:16:49 +01:00
Swakshan
10c9d4b15e extension(Autoembed): Added series support 2024-12-20 17:22:18 +05:30
kodjomoustapha
7bf707d8bc fix iconUrl 2024-12-20 11:17:25 +01:00
Swakshan
2a829ea3fd extension(Autoembed): Added movies support 2024-12-20 13:10:29 +05:30
Schnitzel5
5bd1347feb added extension function 2024-12-20 00:23:42 +01:00
github-actions[bot]
3df56430c1 Update extensions 2024-12-19 11:13:35 +00:00
Moustapha Kodjo Amadou
dee597d41d
Update webtoons.js 2024-12-19 12:13:15 +01:00
github-actions[bot]
c74156e01a Update extensions 2024-12-19 11:13:01 +00:00
Moustapha Kodjo Amadou
6232ed7aed
Update webtoons.js 2024-12-19 12:12:44 +01:00
github-actions[bot]
b021c84478 Update extensions 2024-12-19 11:02:34 +00:00
Moustapha Kodjo Amadou
9f1f00dd18
fix 2024-12-19 12:02:15 +01:00
github-actions[bot]
567b59f67c Update extensions 2024-12-19 10:46:22 +00:00
Moustapha Kodjo Amadou
b05a2bfb4e
Update webtoons.js 2024-12-19 11:46:07 +01:00
Moustapha Kodjo Amadou
85a3996ff6
fix 2024-12-19 11:45:53 +01:00
github-actions[bot]
a37074b6dd Update extensions 2024-12-19 10:35:53 +00:00
Moustapha Kodjo Amadou
e3812c168f
Merge pull request #118 from uwu-wuw/main
Create webtoons.js
2024-12-19 11:35:31 +01:00
Moustapha Kodjo Amadou
21dba5bf72
add more langs 2024-12-19 11:34:31 +01:00
uwu-wuw
20d6ba6c19
Create webtoons.js 2024-12-18 00:19:46 +06:00
github-actions[bot]
e159fe9b16 Update extensions 2024-12-15 18:09:54 +00:00
Moustapha Kodjo Amadou
65a07d6796
Merge pull request #116 from NBA2K1/main
dateUpload for AniWorld & SerienStream
2024-12-15 19:09:37 +01:00
NBA2K1
bab407b3e3 Version++ 2024-12-15 19:07:54 +01:00
NBA2K1
423e1da501 Corrected dateupload. 2024-12-15 18:51:08 +01:00
NBA2K1
44c8514b4e Revert "AnimeToast partial rewrite in js"
This reverts commit abd7e06eea.
2024-12-13 03:01:41 +01:00
NBA2K1
37e3b206a1 dateUpload for AniWorld & SerienStream
- dateUpload
- + improved performance using Promise.all instead of sequentially with the for loops.
2024-12-13 02:57:21 +01:00
NBA2K1
a5a48a8760
Merge branch 'kodjodevf:main' into main 2024-12-13 00:51:25 +01:00
Schnitzel5
36c1fbbe94 fix NovelUpdates 2024-12-09 23:39:43 +01:00
github-actions[bot]
5c85c33dae Update extensions 2024-12-09 13:06:57 +00:00
kodjomoustapha
bf58a599ec Torrentio: do not show upcoming episodes 2024-12-09 14:06:39 +01:00
github-actions[bot]
54bfec70e1 Update extensions 2024-12-09 11:21:40 +00:00
kodjomoustapha
2392a10c5f AnimePahe: add cookie to headers 2024-12-09 12:21:14 +01:00
Schnitzel5
62741a79f2 fix NovelUpdates 2024-12-08 22:53:12 +01:00
NBA2K1
abd7e06eea AnimeToast partial rewrite in js 2024-12-08 18:47:42 +01:00
github-actions[bot]
c8d5613288 Update extensions 2024-12-07 15:59:27 +00:00
kodjomoustapha
8f121c136e Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-12-07 16:59:02 +01:00
kodjomoustapha
95945137da Torrentio: use all providers by default 2024-12-07 16:58:57 +01:00
github-actions[bot]
0a81a9ab82 Update extensions 2024-12-06 11:11:32 +00:00
kodjomoustapha
e89de932e3 fix Torrentio 2024-12-06 12:11:08 +01:00
github-actions[bot]
915d339351 Update extensions 2024-12-03 11:15:45 +00:00
kodjomoustapha
8b70217248 fix 2024-12-03 12:15:15 +01:00
github-actions[bot]
36d6304837 Update extensions 2024-12-03 10:52:27 +00:00
kodjomoustapha
2e14f3ad8e fix NetflixMirror getCookie 2024-12-03 11:51:50 +01:00
github-actions[bot]
966cea943b Update extensions 2024-12-03 08:05:22 +00:00
Moustapha Kodjo Amadou
468c9757e4
Merge pull request #113 from NBA2K1/main
Update serienstream.js
2024-12-03 09:05:04 +01:00
NBA2K1
ca0cd15152 Revert "Show actual anime covers"
This reverts commit 3d4284baad.
2024-12-02 22:50:58 +01:00
NBA2K1
e6d1dbe356 Update serienstream.js
copied changes from aniworld extension.
2024-12-02 22:47:23 +01:00
NBA2K1
3d4284baad Show actual anime covers
Not ready. Very slow.
2024-12-02 22:26:43 +01:00
github-actions[bot]
a3a4479922 Update extensions 2024-12-02 17:02:33 +00:00
kodjomoustapha
6514cdd36e Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-12-02 18:02:10 +01:00
kodjomoustapha
67c14d0f95 + 2024-12-02 18:02:07 +01:00
github-actions[bot]
ebcd1065b2 Update extensions 2024-12-02 17:01:49 +00:00
kodjomoustapha
f3f8aef7d0 Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-12-02 18:01:29 +01:00
kodjomoustapha
66969de042 + 2024-12-02 18:01:26 +01:00
github-actions[bot]
683effe550 Update extensions 2024-12-02 17:00:04 +00:00
kodjomoustapha
e5cfb41c40 + 2024-12-02 17:59:38 +01:00
kodjomoustapha
a7faa05038 New sources : Torrentio (Torrent) and Torrentio Anime (Torrent) 2024-12-02 17:59:22 +01:00
Schnitzel5
076005c715 temp redirect 2024-12-01 19:33:47 +01:00
Schnitzel5
90c8ce01cb testing novel source 2024-12-01 19:11:59 +01:00
github-actions[bot]
f6386c5da8 Update extensions 2024-12-01 12:44:00 +00:00
Moustapha Kodjo Amadou
49363694a4
Merge pull request #111 from Ftbom/main
remove invalid chinese sources and fix some broken ones
2024-12-01 13:43:42 +01:00
github-actions[bot]
8a5ecf0a85 Update extensions 2024-12-01 12:42:40 +00:00
Moustapha Kodjo Amadou
9c5127f54e
Merge pull request #110 from RndDev123/manga-extensions
Mangalib: Fix lang
2024-12-01 13:42:23 +01:00
ftbom
fd97370fcc remove invalid sources and fix some broken ones 2024-12-01 20:19:34 +08:00
RndDev123
37222cbb84 Mangalib: Fix lang 2024-12-01 05:17:01 +01:00
Schnitzel5
07545f8843 fix 2024-12-01 00:52:42 +01:00
Moustapha Kodjo Amadou
9c4260cef2
Merge pull request #109 from RndDev123/manga-extensions
New Source: Mangalib (RU)
2024-11-30 20:50:49 +01:00
RndDev123
5e6f35dd22 Mangalib: Change default image server 2024-11-30 15:34:06 +01:00
RndDev123
9942e332a7 Mangalib: Fix status 2024-11-30 15:25:56 +01:00
github-actions[bot]
2c2c04a897 Update extensions 2024-11-30 14:20:57 +00:00
Moustapha Kodjo Amadou
c1d2b9f38c
Merge pull request #107 from RndDev123/main
Aniworld: New Host & Language preference filters + lib update
2024-11-30 15:20:40 +01:00
RndDev123
a51943bac4 New Source: Mangalib (RU) 2024-11-30 15:16:06 +01:00
RndDev123
1b496ac313 Another Filemoon fix 2024-11-30 05:53:01 +01:00
RndDev123
e0901a7154 Update aniworld.js 2024-11-29 09:58:02 +01:00
RndDev123
3c5696e6a5 Filemoon init headers 2024-11-29 09:14:12 +01:00
RndDev123
6bf8fa6018 + 2024-11-29 08:59:30 +01:00
RndDev123
86922fff77 Fix Filemoon extractor on Android 2024-11-29 08:54:17 +01:00
RndDev123
8784a20560 Merge remote-tracking branch 'upstream/main' 2024-11-29 04:10:11 +01:00
RndDev123
9b9150366f Aniworld: New Host & Language preference filters + lib update
Aniworld:
- New Host: Luluvdo
- Language preference filters

Lib:
- New Host: Luluvdo
2024-11-29 04:09:52 +01:00
Schnitzel5
9f614fe664 added novel template 2024-11-28 15:47:22 +01:00
github-actions[bot]
2428842da3 Update extensions 2024-11-28 10:54:23 +00:00
Moustapha Kodjo Amadou
6f9727883f
Merge pull request #106 from RndDev123/main
New Source: MangaWorld (IT) + Fixes
2024-11-28 11:39:42 +01:00
RndDev123
2940e029cd New Source: MangaWorld (IT) + Fixes
New Source:
- Manga World

JKAnime, TioAnime, ,AnimeFenix and AnimeWorld:
- Add await before this.parseAnimeList for readability
2024-11-28 07:04:26 +01:00
github-actions[bot]
6161949090 Update extensions 2024-11-27 14:42:18 +00:00
Moustapha Kodjo Amadou
d5e911ad26
Merge pull request #105 from RndDev123/main
New Source: AnimeWorld & Shortened filter code
2024-11-27 15:42:00 +01:00
Schnitzel5
ac1a8f19cc Merge branch 'migrate/light-novel' 2024-11-27 15:16:28 +01:00
Schnitzel5
1e01f73fb4 fixed error 2024-11-27 15:11:25 +01:00
RndDev123
2c97ce81cb + 2024-11-27 13:49:54 +01:00
RndDev123
c0edb5c0c5 New Source: AnimeWorld & Updates: Shortened filter code
New Source:
- Anime World

AnimeFenix, JKAnime and Mangafire:
- Shortened filter code
2024-11-27 13:26:11 +01:00
github-actions[bot]
b9224f725a Update extensions 2024-11-26 17:07:56 +00:00
kodjomoustapha
baa8ddd6a5 fix 2024-11-26 18:07:12 +01:00
github-actions[bot]
c83d3a7472 Update extensions 2024-11-26 16:09:43 +00:00
kodjomoustapha
8da19368c7 fix 2024-11-26 17:09:20 +01:00
github-actions[bot]
f423f60380 Update extensions 2024-11-26 16:06:25 +00:00
kodjomoustapha
6f47acd819 fix datalifeengine 2024-11-26 17:05:30 +01:00
github-actions[bot]
8149b4c0b1 Update extensions 2024-11-26 13:12:02 +00:00
Moustapha Kodjo Amadou
2d1def7ac9
Merge pull request #104 from RndDev123/main
AniWorld, AnimeFenix, JKAnime and TioAnime: New host, fixes and helper lib update
2024-11-26 14:11:43 +01:00
RndDev123
1141e53c0b JKAnime: Change Logo 2024-11-26 10:32:43 +01:00
RndDev123
fd074790e8 AniWorld, AnimeFenix, JKAnime and TioAnime: New host, fixes and helper lib update
AniWorld
- New Host: Speedfiles
- New Host: Filemoon
- Better Sorting for preferences

AnimeFenix:
- Added possible status string

JKAnime
- Get Studios

TioAnime
- Fix hasNextPage

Helper library
- Add new host: Speedfiles
- Add new String function: reverse, swapcase
2024-11-26 08:05:50 +01:00
Schnitzel5
c19638eb6d fix 2024-11-25 23:06:37 +01:00
Schnitzel5
433ab9ceea fix 2024-11-25 23:03:39 +01:00
Schnitzel5
a6eaf30579 add novel support 2024-11-25 23:00:07 +01:00
Schnitzel5
0c7eccf180 Merge branch 'main' of github.com:Schnitzel5/mangayomi-extensions 2024-11-25 22:57:08 +01:00
Schnitzel5
c635cffdf2 add novel support 2024-11-25 22:55:23 +01:00
Schnitzel5
7414887be2 add novel support 2024-11-25 22:51:11 +01:00
github-actions[bot]
749861af61 Update extensions 2024-11-23 17:49:43 +00:00
Moustapha Kodjo Amadou
8c6cd36d9c
Merge pull request #101 from NBA2K1/main
Update serienstream.js
2024-11-23 18:49:22 +01:00
NBA2K1
20668f2829 Update serienstream.js
Serienstream:
- copied the changes from Aniworld

Aniworld:
- shortened getSourcePreferences() and made it more readable/maintainable
- used array in getRandomString() for better readability
2024-11-23 18:26:07 +01:00
github-actions[bot]
c7d2cae26b Update extensions 2024-11-23 14:56:03 +00:00
Moustapha Kodjo Amadou
9f97699b53
Merge pull request #99 from NBA2K1/main
New Source (SerienStream), Aniworld apostrophe rendering fix and improve performance
2024-11-23 15:54:49 +01:00
Moustapha Kodjo Amadou
7778873a09
Update aniworld.js 2024-11-23 15:54:27 +01:00
Moustapha Kodjo Amadou
92529e06a9
Update serienstream.js 2024-11-23 15:54:04 +01:00
Moustapha Kodjo Amadou
e2d52be133
Merge branch 'main' into main 2024-11-23 15:52:22 +01:00
github-actions[bot]
4e6ac0bdb4 Update extensions 2024-11-23 14:35:05 +00:00
Moustapha Kodjo Amadou
ed39ba33f7
Merge pull request #100 from RndDev123/main
Add TioAnime, AnimeFenix and JKAnime + Updates to Mangafire and Aniworld
2024-11-23 15:34:48 +01:00
RndDev123
52c55a8d85 Add TioAnime, AnimeFenix and JKAnime + Updates to Mangafire and Aniworld
- New Source: TioAnime source (es)
- New Source: AnimeFenix source (es)
- New Source: JKAnime source (es)
- Aniworld: Async loading for getVideoList and getDetail.
- Aniworld: Changed headers in getVideoList which helps load times.
- Mangafire: changed a query name
- Mangafire: search sometimes failed because filters were empty. I got this on android. And some other user also stated having problems with search.
- Implemented new videoExtractors and helper functions in a "library", used in all three new extensions
2024-11-23 09:47:54 +01:00
NBA2K1
8522088783
filename in lowercase now 2024-11-22 16:42:50 +01:00
NBA2K1
8541a92f83 New Anime Source
This is practically the same as aniworld, but also includes other shows, not just Anime.
2024-11-22 16:39:33 +01:00
NBA2K1
c163b9fed4 Fix apostrophe rendering and improve performance
Fixed apostrophe rendering in episode names (e.g., for "DAN DA DAN")
by replacing HTML character references (&#039;) with actual apostrophes.

Optimized performance by reusing a single Client instance, passing it to
parseEpisodesFromSeries() instead of creating a new instance in each loop.

Parallelized episode fetching in getDetail() using Promise.all to
improve request efficiency, replacing the sequential loop.
2024-11-22 16:20:07 +01:00
github-actions[bot]
afd8d6ba31 Update extensions 2024-11-21 09:35:19 +00:00
kodjomoustapha
cf661ba909 fix 2024-11-21 10:34:55 +01:00
github-actions[bot]
7d1fd73dc4 Update extensions 2024-11-21 09:23:05 +00:00
kodjomoustapha
f4bf7c24b0 fix 2024-11-21 09:57:57 +01:00
github-actions[bot]
caf6f36eef Update extensions 2024-11-19 17:27:58 +00:00
kodjomoustapha
5075d6b75a + 2024-11-19 18:27:35 +01:00
github-actions[bot]
c5e181a82b Update extensions 2024-11-19 17:22:42 +00:00
kodjomoustapha
5eb0fbd513 add override Base Url preference 2024-11-19 18:22:22 +01:00
github-actions[bot]
16122da36d Update extensions 2024-11-19 17:12:32 +00:00
kodjomoustapha
5ee227b6de fix Asura Scans 2024-11-19 18:11:27 +01:00
github-actions[bot]
dc979b30d9 Update extensions 2024-11-15 13:41:01 +00:00
kodjomoustapha
d173331829 fix NetflixMirror 2024-11-15 14:40:41 +01:00
github-actions[bot]
53bf4ac3b3 Update extensions 2024-11-14 14:50:21 +00:00
kodjomoustapha
a4d2b620a3 - 2024-11-14 15:49:59 +01:00
github-actions[bot]
a5a85aee35 Update extensions 2024-11-06 15:10:01 +00:00
kodjomoustapha
828b9b89b0 fix NetflixMirror 2024-11-06 16:09:35 +01:00
github-actions[bot]
12287770b0 Update extensions 2024-11-06 05:15:08 +00:00
Moustapha Kodjo Amadou
88dc90f2d7
Merge pull request #97 from RndDev123/main
AniWorld - Doodstream & Vidoza Fix
2024-11-06 06:14:50 +01:00
RndDev123
5a539c5d0b Increment AniWorld Version 2024-11-06 01:36:45 +01:00
RndDev123
cfd05732c6 AniWorld - Doodstream & Vidoza Fix
- Implemented a vidoza extractor
- Implemented a temporary doodstream extractor until the one in the application is fixed.
- Changed quality from `${hoster} ${language}` to `${language} - ${hoster}` for better sorting and readability
2024-11-06 01:17:44 +01:00
github-actions[bot]
e9865029b4 Update extensions 2024-11-05 16:32:20 +00:00
kodjomoustapha
a97e16a072 + 2024-11-05 17:31:52 +01:00
kodjomoustapha
f5eb6611dc fix chapter date 2024-11-05 17:27:09 +01:00
github-actions[bot]
a82dcee6b2 Update extensions 2024-11-05 10:17:40 +00:00
kodjomoustapha
e6f460d86d fix 2024-11-05 11:16:35 +01:00
github-actions[bot]
ae46720fbf Update extensions 2024-11-05 10:09:55 +00:00
kodjomoustapha
7d18d6c1eb fix AniWorld video extractors 2024-11-05 11:09:20 +01:00
github-actions[bot]
81031978a0 Update extensions 2024-11-05 09:10:17 +00:00
kodjomoustapha
4388fb03ff fix 2024-11-05 10:09:52 +01:00
kodjomoustapha
1b61f97fae - 2024-11-05 10:04:55 +01:00
github-actions[bot]
c1e1da1bf8 Update extensions 2024-11-05 09:00:54 +00:00
kodjomoustapha
c88780ccfb fix langs 2024-11-05 10:00:32 +01:00
kodjomoustapha
eb9bb3b8f2 fix generate multiple langage for JS source 2024-11-05 10:00:02 +01:00
Moustapha Kodjo Amadou
d54e6a5794
Merge pull request #96 from RndDev123/main
Add MangaFire with Filters
2024-11-05 09:16:10 +01:00
RndDev123
099e52f5b2 Add MangaFire 2024-11-05 02:12:42 +01:00
github-actions[bot]
d7e8142433 Update extensions 2024-10-25 20:03:24 +00:00
Moustapha Kodjo Amadou
1e935c6082
Merge pull request #93 from hollow-frenk/main
Update source.dart
2024-10-25 21:03:06 +01:00
Moustapha Kodjo Amadou
f862f29c26
Update source.dart 2024-10-25 21:02:05 +01:00
Francesco De Feo
f775ee2118
Update source.dart 2024-10-25 20:53:06 +02:00
github-actions[bot]
806b1fed32 Update extensions 2024-10-24 08:29:28 +00:00
kodjomoustapha
e80a70f2b0 fix 2024-10-24 09:29:07 +01:00
github-actions[bot]
63797dcfcd Update extensions 2024-10-15 08:14:13 +00:00
Moustapha Kodjo Amadou
62913d55f1
Merge pull request #92 from yxxyun/dev
update UC tip
2024-10-15 09:13:56 +01:00
github-actions[bot]
0c6dc2b586 Update extensions 2024-10-15 08:12:01 +00:00
kodjomoustapha
528ba54c6f fix 2024-10-15 09:11:39 +01:00
yxxyun
c8ca805ecb
Update yydsys.js 2024-10-14 21:46:39 +08:00
yxxyun
d2ecb573b7
Update wogg.js 2024-10-14 21:45:38 +08:00
github-actions[bot]
d914a25cce Update extensions 2024-10-13 17:46:19 +00:00
kodjomoustapha
576a2e5b1e fix 2024-10-13 18:45:56 +01:00
github-actions[bot]
8b7039b5e3 Update extensions 2024-10-13 17:40:47 +00:00
kodjomoustapha
60f1e30475 Update netflixmirror.js 2024-10-13 18:40:12 +01:00
kodjomoustapha
c877345aac Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-10-13 18:36:06 +01:00
kodjomoustapha
86919cdff2 fix 2024-10-13 18:36:03 +01:00
github-actions[bot]
9eea568829 Update extensions 2024-10-13 17:33:21 +00:00
kodjomoustapha
c03aa7986e New source: NetflixMirror (ALL) 2024-10-13 18:32:23 +01:00
github-actions[bot]
2e830863ff Update extensions 2024-10-10 11:27:59 +00:00
kodjomoustapha
9957b9b213 fix & add new extractors 2024-10-10 12:26:58 +01:00
github-actions[bot]
eb222dedb8 Update extensions 2024-10-09 08:52:59 +00:00
kodjomoustapha
d551f71bf9 add extractor prefix name 2024-10-09 09:52:39 +01:00
github-actions[bot]
7c345c3279 Update extensions 2024-10-09 08:35:15 +00:00
kodjomoustapha
1dc88b7d7a fix AllAnime 2024-10-09 09:34:24 +01:00
github-actions[bot]
cfc7da44dd Update extensions 2024-10-07 16:07:57 +00:00
Moustapha Kodjo Amadou
ab6b766459
Merge pull request #89 from yxxyun/dev
add 多多影音
2024-10-07 17:07:39 +01:00
Moustapha Kodjo Amadou
8ea195e5f1
Merge pull request #88 from yxxyun/quark
add wogg, support play video from quark and uc clouddrive.
2024-10-07 17:07:25 +01:00
yxxyun
b1f2dc23aa add tip for user to fill in the cookie 2024-10-06 21:13:26 +08:00
yxxyun
d7d9c859cf add tip for user to fill in the cookie 2024-10-06 21:09:38 +08:00
yxxyun
9b8ba7b7f1 add 多多影音 2024-10-05 23:47:06 +08:00
yxxyun
1302f70b66 add UC support 2024-10-05 21:14:53 +08:00
yxxyun
96203e8a93 fix 2024-10-02 21:00:58 +08:00
yxxyun
924976161c add wogg, only support quark now. 2024-10-02 16:25:36 +08:00
github-actions[bot]
d87042a0a0 Update extensions 2024-09-30 16:42:43 +00:00
kodjomoustapha
820e089c59 fix AnZone episodes list 2024-09-30 17:42:07 +01:00
github-actions[bot]
4ec2bdbb50 Update extensions 2024-09-30 15:46:17 +00:00
kodjomoustapha
806482c5a3 fix 2024-09-30 16:45:42 +01:00
github-actions[bot]
906ad5f57e Update extensions 2024-09-30 15:33:35 +00:00
kodjomoustapha
43fcb00405 New source: AnimeOnlineNinja (es) 2024-09-30 16:33:13 +01:00
github-actions[bot]
4f009be6a4 Update extensions 2024-09-26 08:29:40 +00:00
kodjomoustapha
b2ee317592 + 2024-09-26 09:29:10 +01:00
github-actions[bot]
af4b241523 Update extensions 2024-09-26 08:26:30 +00:00
kodjomoustapha
db029c0806 + 2024-09-26 09:26:08 +01:00
kodjomoustapha
6e08887d1f - 2024-09-26 09:25:52 +01:00
kodjomoustapha
17bd4a761a - 2024-09-26 09:25:17 +01:00
Moustapha Kodjo Amadou
258eed505b
Merge pull request #86 from Needey/main
Add AniZone Source (Anisama)
2024-09-26 09:20:40 +01:00
kodjomoustapha
722dcdea3d fix 2024-09-26 09:18:49 +01:00
Moustapha Kodjo Amadou
36c270edd8
Merge pull request #85 from Schnitzel5/fix/mangadex
Fix/mangadex
2024-09-26 09:10:11 +01:00
Needye
057cf25dd8 Add AniZone Source 2024-09-26 01:37:05 +02:00
Schnitzel5
b361b887c2 covers 2024-09-25 18:16:40 +02:00
Schnitzel5
a59b478d2d add imageUrl for getDetail 2024-09-25 17:03:29 +02:00
github-actions[bot]
46a8ba3266 Update extensions 2024-09-21 23:58:48 +00:00
kodjomoustapha
c7c2863f9e + 2024-09-22 00:51:13 +01:00
kodjomoustapha
b2d331834a - 2024-09-22 00:45:32 +01:00
github-actions[bot]
e5802aaac3 Update extensions 2024-09-21 23:21:25 +00:00
kodjomoustapha
bc95f1b8fd - 2024-09-22 00:21:04 +01:00
github-actions[bot]
13c5b002d0 Update extensions 2024-09-21 22:00:28 +00:00
kodjomoustapha
24825d0d9c remove some NSFW sources 2024-09-21 23:00:04 +01:00
github-actions[bot]
235dc9ca6f Update extensions 2024-09-19 21:59:46 +00:00
Moustapha Kodjo Amadou
6a3d306911
Merge pull request #84 from yxxyun/yxxyun-vod
add some vod collection site
2024-09-19 22:59:27 +01:00
yxxyun
5a921411e7
add some vod collection site 2024-09-19 20:46:18 +08:00
github-actions[bot]
c37049b75c Update extensions 2024-09-18 13:28:14 +00:00
Moustapha Kodjo Amadou
810d083cc0
Merge pull request #83 from yxxyun/360zy
add 360资源站
2024-09-18 14:27:54 +01:00
Moustapha Kodjo Amadou
f55b797ff5
Add pkgPath 2024-09-18 14:25:39 +01:00
yxxyun
19b9a298bc
add 360资源站 2024-09-18 21:01:17 +08:00
github-actions[bot]
97bcc51d92 Update extensions 2024-09-18 12:12:36 +00:00
kodjomoustapha
8b1504296b fix 2024-09-18 13:11:16 +01:00
github-actions[bot]
d0a4a40da9 Update extensions 2024-09-11 16:40:15 +00:00
kodjomoustapha
e452ef9fa1 fix 2024-09-11 17:37:57 +01:00
github-actions[bot]
d5713877d1 Update extensions 2024-09-04 12:15:08 +00:00
kodjomoustapha
9d9ce1c6a4 remove Aniwave 2024-09-04 13:14:25 +01:00
github-actions[bot]
3f779fb496 Update extensions 2024-08-30 11:47:57 +00:00
kodjomoustapha
efa6ebf066 Update 2024-08-30 12:47:23 +01:00
github-actions[bot]
99c896ce8a Update extensions 2024-08-22 17:53:11 +00:00
kodjomoustapha
9616e0a5b0 Aniwave: fix encryption 2024-08-22 18:52:43 +01:00
github-actions[bot]
619c8694a4 Update extensions 2024-08-22 14:52:31 +00:00
kodjomoustapha
ec0ea73cb2 Update 2024-08-22 15:52:04 +01:00
Moustapha Kodjo Amadou
b23811eb60
Update vivamaxph 2024-08-22 15:49:15 +01:00
Moustapha Kodjo Amadou
c635ead19a
Merge pull request #80 from Non9X/patch-1
Create vivamaxph
2024-08-22 15:46:37 +01:00
github-actions[bot]
5bded6dd5f Update extensions 2024-08-21 17:16:57 +00:00
kodjomoustapha
dc5dbe8941 Update AnimePahe 2024-08-21 18:16:00 +01:00
github-actions[bot]
70673d5fb6 Update extensions 2024-08-20 17:11:29 +00:00
kodjomoustapha
10b68b370e Mangadex: Add use custom user agent 2024-08-20 18:10:54 +01:00
⟁:non.
4b1ebb62b4
Create vivamaxph 2024-08-18 12:32:07 +03:00
github-actions[bot]
90bc78d887 Update extensions 2024-08-18 05:31:57 +00:00
Moustapha Kodjo Amadou
268eae032d
Update sources.dart 2024-08-18 06:31:37 +01:00
Moustapha Kodjo Amadou
cec0889b51
Update madara.dart 2024-08-18 06:30:59 +01:00
github-actions[bot]
7f30b24cce Update extensions 2024-08-13 09:12:43 +00:00
kodjomoustapha
96d33aa3bf fix #77 2024-08-13 10:12:07 +01:00
kodjomoustapha
719614cf3a rm 2024-08-08 11:56:57 +01:00
github-actions[bot]
070b1fed65 Update extensions 2024-08-08 10:55:03 +00:00
kodjomoustapha
cdf4ab6f45 Update Aniwave keys & fix vidsrcExtractor 2024-08-08 11:54:08 +01:00
kodjomoustapha
cc7cac1aa5 Update CONTRIBUTING 2024-08-03 07:48:08 +01:00
github-actions[bot]
8d40365b16 Update extensions 2024-08-02 19:24:32 +00:00
Moustapha Kodjo Amadou
b1590c5cfd
Merge pull request #75 from gr8vewalker/main
Add diziWatch site
2024-08-02 20:24:13 +01:00
Moustapha Kodjo Amadou
781448d7e0
reverse episode list 2024-08-02 20:21:16 +01:00
gr8vewalker
9255328005 feat(anime) tr/diziWatch extension 2024-08-02 21:51:13 +03:00
kodjomoustapha
0bd8dc206e Update CONTRIBUTING 2024-08-02 17:48:27 +01:00
github-actions[bot]
a5c8639dbf Update extensions 2024-08-02 15:48:04 +00:00
kodjomoustapha
2d01092aa5 fix: Madara getPageList 2024-08-02 16:47:39 +01:00
github-actions[bot]
d89329155d Update extensions 2024-07-23 12:54:17 +00:00
kodjomoustapha
4c816b4d2f fix 2024-07-23 13:53:35 +01:00
github-actions[bot]
4f5c43d259 Update extensions 2024-07-23 12:33:47 +00:00
kodjomoustapha
a14cdc1b42 fix 2024-07-23 13:33:21 +01:00
github-actions[bot]
a02a184321 Update extensions 2024-07-23 11:28:15 +00:00
kodjomoustapha
2171bf0f4c Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-07-23 12:27:54 +01:00
kodjomoustapha
7be0b71393 new source AnimeFLV (ES) 2024-07-23 12:27:48 +01:00
github-actions[bot]
6d8706e0f0 Update extensions 2024-07-17 16:58:23 +00:00
kodjomoustapha
90e2605a78 fix 2024-07-17 17:57:57 +01:00
kodjomoustapha
7972cf8660 fixes 2024-07-17 17:56:08 +01:00
github-actions[bot]
d9d720cc91 Update extensions 2024-07-07 09:07:36 +00:00
kodjomoustapha
4040390767 v0.1.45 2024-07-07 10:06:54 +01:00
github-actions[bot]
21af7707e3 Update extensions 2024-07-05 10:52:26 +00:00
kodjomoustapha
5103964110 Update 2024-07-05 11:52:03 +01:00
github-actions[bot]
5ceb56b097 Update extensions 2024-06-24 16:39:49 +00:00
kodjomoustapha
0454a95617 fixes by @yutthaphon
- Remove duplicate description detection.
- Remove unused code.
- FIxed genres detection.
- Add FunToons to sources.dart
2024-06-24 17:39:23 +01:00
github-actions[bot]
42dcef9e3b Update extensions 2024-06-24 16:25:40 +00:00
kodjomoustapha
b4355830e6 fix 2024-06-24 17:25:17 +01:00
github-actions[bot]
d661cd7d51 Update extensions 2024-06-24 16:01:44 +00:00
kodjomoustapha
50bd8c65fd fix Mangabox date 2024-06-24 17:00:35 +01:00
github-actions[bot]
4720c5bfea Update extensions 2024-06-21 17:15:12 +00:00
kodjomoustapha
66970d2ccb updates 2024-06-21 18:13:20 +01:00
github-actions[bot]
6cf198e4ce Update extensions 2024-06-19 10:56:40 +00:00
kodjomoustapha
c7c002df47 v0.1.25 2024-06-19 11:56:09 +01:00
github-actions[bot]
912d7d18a5 Update extensions 2024-06-18 19:17:29 +00:00
kodjomoustapha
e501914fb6 Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-06-18 20:17:03 +01:00
kodjomoustapha
e36f6955ca + 2024-06-18 20:16:57 +01:00
github-actions[bot]
749164ceb6 Update extensions 2024-06-18 19:12:57 +00:00
kodjomoustapha
afb2db57ec Refactor mangareader 2024-06-18 20:12:05 +01:00
Moustapha Kodjo Amadou
b454d7c644
Merge pull request #72 from yutthaphon/main
Add FunToons site
2024-06-18 19:56:48 +01:00
github-actions[bot]
3be880e7bf Update extensions 2024-06-18 14:18:54 +00:00
kodjomoustapha
f8cf21d64a Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-06-18 15:18:33 +01:00
kodjomoustapha
245338a2ff fix #67 2024-06-18 15:18:26 +01:00
github-actions[bot]
0529d1cdb9 Update extensions 2024-06-18 14:03:48 +00:00
kodjomoustapha
c567a70c6b fix rapidCloudExtractor 2024-06-18 15:03:27 +01:00
Yutthaphon Inchaiya
85fb4df439 Add FunToons site
Add support for custom mangareader template
2024-06-18 12:46:43 +07:00
github-actions[bot]
0255a20e09 Update extensions 2024-05-31 16:14:23 +00:00
kodjomoustapha
4a9900237d fix: Wiflix episode name & update baseUrl 2024-05-31 17:13:11 +01:00
kodjomoustapha
c871514bde fix 2024-05-27 12:12:36 +01:00
github-actions[bot]
2df62af242 Update extensions 2024-05-27 11:05:55 +00:00
kodjomoustapha
42a9353d68 fix Mangareader 2024-05-27 12:04:57 +01:00
kodjomoustapha
c8bc5bd3ff Update CONTRIBUTING-DART 2024-05-25 19:13:17 +01:00
kodjomoustapha
2ca6b5ef2c Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-05-25 19:12:00 +01:00
kodjomoustapha
eaa434f025 Update README 2024-05-25 19:11:58 +01:00
kodjomoustapha
8a5a74725d Update CONTRIBUTING-DART 2024-05-25 19:11:23 +01:00
github-actions[bot]
daad7fcaa2 Update extensions 2024-05-25 18:10:24 +00:00
kodjomoustapha
6027e0d548 Update CONTRIBUTING-DART 2024-05-25 19:09:59 +01:00
kodjomoustapha
670f00cc86 Update CONTRIBUTING-JS 2024-05-25 18:47:24 +01:00
kodjomoustapha
82952b0e7e Update CONTRIBUTING-DART 2024-05-25 18:46:55 +01:00
kodjomoustapha
c9223b7461 Add Override BaseUrl for Mangareader 2024-05-25 18:20:31 +01:00
github-actions[bot]
b89ae8402a Update extensions 2024-05-18 16:28:14 +00:00
kodjomoustapha
6aa707c109 Update UHD Movies baseUrl 2024-05-18 17:27:47 +01:00
github-actions[bot]
9fb95e820a Update extensions 2024-05-17 21:16:19 +00:00
kodjomoustapha
c620cb095a Merge branch 'main' of https://github.com/kodjodevf/mangayomi-extensions 2024-05-17 22:04:49 +01:00
kodjomoustapha
b76835a0a7 Fix some MangaReader sources flag 2024-05-17 20:40:26 +01:00
kodjomoustapha
73bc8ce75c Add New Madara sources 2024-05-17 20:33:34 +01:00
github-actions[bot]
b4542881ab Update extensions 2024-05-17 16:28:19 +00:00
kodjomoustapha
1661ef9149 New MangaReader sources 2024-05-17 17:26:08 +01:00
github-actions[bot]
9341b1d0a3 Update extensions 2024-05-17 10:07:37 +00:00
kodjomoustapha
e420a10df9 fix AnimeWorld India(ALL) 2024-05-17 11:06:32 +01:00
github-actions[bot]
d4dd99a3cd Update extensions 2024-05-14 12:51:02 +00:00
Moustapha Kodjo Amadou
b28c106d87
Merge pull request #63 from Ftbom/main
some fixes
2024-05-14 13:49:51 +01:00
ftbom
bc03517eff some fixes 2024-05-14 18:47:29 +08:00
github-actions[bot]
de8e3cd7ae Update extensions 2024-05-13 09:51:55 +00:00
kodjomoustapha
45113c5cec Add 2024 2024-05-13 10:46:49 +01:00
github-actions[bot]
419426b804 Update extensions 2024-05-13 09:07:50 +00:00
Moustapha Kodjo Amadou
21daead997
Merge pull request #62 from Ftbom/main
add mikan and yhdm
2024-05-13 10:07:33 +01:00
ftbom
8f01b54e0c add mikan and yhdm 2024-05-13 07:46:42 +08:00
kodjomoustapha
cba8e6d226 fix 2024-05-09 17:48:53 +01:00
github-actions[bot]
ce00c7c6e4 Update extensions 2024-05-09 15:55:20 +00:00
kodjomoustapha
074fd3a682 Copymanga: fix getgetDetail url 2024-05-09 16:54:35 +01:00
github-actions[bot]
15ed18b6e1 Update extensions 2024-05-09 14:55:16 +00:00
kodjomoustapha
9ca3f7111f KissKh: add decrypt subtitle 2024-05-09 15:54:12 +01:00
github-actions[bot]
a482eaffff Update extensions 2024-05-09 13:59:15 +00:00
kodjomoustapha
97b15a98da feat(manga/zh): reverse chapters list 2024-05-09 14:58:32 +01:00
github-actions[bot]
f090e07c87 Update extensions 2024-05-09 13:44:59 +00:00
Moustapha Kodjo Amadou
0151b18632
Merge pull request #61 from Ftbom/main
dmzj.js fix wrong pkgPath
2024-05-09 14:44:41 +01:00
Ftbom
7fc352dccd
dmzj.js fix wrong pkgPath 2024-05-09 21:40:48 +08:00
github-actions[bot]
b07a153189 Update extensions 2024-05-09 13:32:06 +00:00
kodjomoustapha
e30014431f fix #55 2024-05-09 14:31:43 +01:00
github-actions[bot]
3fb11d396d Update extensions 2024-05-09 13:28:05 +00:00
Moustapha Kodjo Amadou
3768fc19b5
Merge pull request #53 from Ftbom/main
add dmzj,copymanga,jmcomic
2024-05-09 14:27:48 +01:00
Ftbom
0ba0d5044e
add dmzj,copymanga,jmccomic 2024-05-09 07:55:36 +08:00
github-actions[bot]
c8f78a4b58 Update extensions 2024-05-07 08:14:47 +00:00
Moustapha Kodjo Amadou
f0731f18d2
Merge pull request #51 from Yursd/main
add njav(anime/all)
2024-05-07 09:13:45 +01:00
Yursd
cf02442fde
Update njav.js 2024-05-07 14:31:19 +08:00
Yursd
adab4b4528
add njav 2024-05-07 14:27:22 +08:00
github-actions[bot]
a7aab58977 Update extensions 2024-05-06 10:11:51 +00:00
kodjomoustapha
2101a7da10 Fix DataLifeEngine video extractor 2024-05-06 11:07:01 +01:00
github-actions[bot]
2555a554c0 Update extensions 2024-05-04 18:59:05 +00:00
kodjomoustapha
fe9ade5589 feat(manga/zh): reverse chapters list 2024-05-04 19:53:05 +01:00
github-actions[bot]
a0b22d1587 Update extensions 2024-05-04 16:18:16 +00:00
Moustapha Kodjo Amadou
daa8d05e76
Merge pull request #49 from Ftbom/main
fix bugs
2024-05-04 17:17:59 +01:00
Moustapha Kodjo Amadou
81d87815a6
Update 77mh version 2024-05-04 17:16:20 +01:00
Moustapha Kodjo Amadou
f461f09f7e
Update manhuagui version 2024-05-04 17:15:37 +01:00
Moustapha Kodjo Amadou
e652e827e2
Update manhuadb version 2024-05-04 17:15:05 +01:00
Ftbom
cb9ab18d97 update iconUrl of manhuadb 2024-05-04 14:16:03 +00:00
Ftbom
7aa39bcbc6 fix bugs 2024-05-04 14:11:32 +00:00
github-actions[bot]
ad3f44c7bb Update extensions 2024-05-04 11:12:56 +00:00
Moustapha Kodjo Amadou
cf0e35367a
Merge pull request #48 from Ftbom/main
add some manga extensions
2024-05-04 12:12:38 +01:00
Ftbom
02f666db10
add some manga extensions 2024-05-04 17:59:54 +08:00
github-actions[bot]
a88ab18abd Update extensions 2024-05-03 14:34:32 +00:00
kodjomoustapha
a0df41e8b8 AnimesUltra: fix search 2024-05-03 15:33:06 +01:00
github-actions[bot]
cbf5bffde4 Update extensions 2024-05-03 14:13:38 +00:00
kodjomoustapha
e9863dc307 AnimesUltra: change baseUrl & fix server 2024-05-03 15:12:21 +01:00
kodjomoustapha
a5f7eb27f6 FrAnime: fix player 2024-05-03 11:50:22 +01:00
kodjomoustapha
67bb9c88ed OtakuFr fix player 2024-05-03 11:44:11 +01:00
kodjomoustapha
dd876615f5 Anime-Sama fix player 2024-05-03 11:18:09 +01:00
github-actions[bot]
a5d04c67c9 Update extensions 2024-04-30 16:28:06 +00:00
kodjomoustapha
f5f98fe65c Remove vidbmExtractor 2024-04-30 17:26:56 +01:00
github-actions[bot]
c99e481807 Update extensions 2024-04-29 12:31:17 +00:00
kodjomoustapha
f4b0f893ae Fix Aniwave use serverName instead url 2024-04-29 13:30:52 +01:00
github-actions[bot]
0f47a8ce8f Update extensions 2024-04-22 18:12:52 +00:00
Moustapha Kodjo Amadou
870140dae4
Merge pull request #47 from abdelaziz-mahdy/patch-1
Update gogoanime.dart
2024-04-22 19:12:33 +01:00
Moustapha Kodjo Amadou
c65f1d8813
Update source.dart 2024-04-22 19:09:10 +01:00
Abdelaziz Mahdy
9affe93790
Update gogoanime.dart 2024-04-22 18:07:11 +02:00
github-actions[bot]
6ddbbc80ae Update extensions 2024-04-17 09:37:15 +00:00
kodjomoustapha
09977b86be Aniwave: fix encryption 2024-04-17 10:35:18 +01:00
github-actions[bot]
975178da9b Update extensions 2024-04-13 05:45:30 +00:00
Moustapha Kodjo Amadou
d90d33b6b1
Update wnacg.js 2024-04-13 06:45:15 +01:00
github-actions[bot]
1dd038bdd2 Update extensions 2024-04-13 05:45:04 +00:00
Moustapha Kodjo Amadou
83762012fb
Update jable.js 2024-04-13 06:44:41 +01:00
github-actions[bot]
ea0a6fb38c Update extensions 2024-04-13 05:42:39 +00:00
Moustapha Kodjo Amadou
5f93542bcd
Merge pull request #43 from Yursd/main
fix wnacg and update jable
2024-04-13 06:41:34 +01:00
Yursd
bd5adfdccc
Update jable.js 2024-04-13 12:34:45 +08:00
Yursd
0ca21162b3
fix wnacg.js filter 2024-04-13 12:31:34 +08:00
Moustapha Kodjo Amadou
84fbd77bad
Merge pull request #42 from Yursd/main
Add some Chinese extensions
2024-04-11 06:33:53 +01:00
Yursd
52461baf30 Add some Chinese extensions 2024-04-11 11:03:17 +08:00
github-actions[bot]
d4e777483c Update extensions 2024-04-10 12:38:27 +00:00
kodjomoustapha
3662f5028a Fix Gogoanime getLatestUpdates & detail description 2024-04-10 13:36:24 +01:00
Moustapha Kodjo Amadou
7db7e20916
Update CONTRIBUTING-JS.md 2024-03-28 16:43:04 +01:00
Moustapha Kodjo Amadou
538d82f926
Update CONTRIBUTING-JS.md 2024-03-28 16:40:31 +01:00
763 changed files with 36210 additions and 0 deletions

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: ⚠️ Application issue
url: https://github.com/kodjodevf/mangayomi/issues/new/choose
about: Issues and requests about the app itself should be opened in the mangayomi repository instead
- name: Mangayomi app GitHub repository
url: https://github.com/kodjodevf/mangayomi
about: Issues about the app itself should be opened here instead.

100
.github/ISSUE_TEMPLATE/report_issue.yml vendored Normal file
View file

@ -0,0 +1,100 @@
name: 🐞 Issue report
description: Report a source issue in Mangayomi
labels: [Bug]
body:
- type: input
id: source
attributes:
label: Source information
description: |
You can find the extension name and version in **Browse → Extensions**.
placeholder: |
Example: "Gogoanime 0.0.35 (English)"
validations:
required: true
- type: input
id: language
attributes:
label: Source language
placeholder: |
Example: "English"
validations:
required: true
- type: textarea
id: reproduce-steps
attributes:
label: Steps to reproduce
description: Provide an example of the issue.
placeholder: |
Example:
1. First step
2. Second step
3. Issue here
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
placeholder: |
Example:
"This should happen..."
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
placeholder: |
Example:
"This happened instead..."
validations:
required: true
- type: input
id: mangayomi-version
attributes:
label: Mangayomi version
description: |
You can find your Mangayomi version in **More → About**.
placeholder: |
Example: "0.0.67"
validations:
required: true
- type: input
id: device
attributes:
label: Device
description: List your device, model and the OS version.
placeholder: |
Example: "Google Pixel 5 Android 11"
validations:
required: true
- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments.
- type: checkboxes
id: acknowledgements
attributes:
label: Acknowledgements
description: Your issue will be closed if you haven't done these steps.
options:
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue.
required: true
- label: I have written a short but informative title.
required: true
- label: I have updated all installed extensions.
required: true
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/kodjodevf/mangayomi/issues/new/choose).
required: true

View file

@ -0,0 +1,55 @@
name: ⭐ Feature request
description: Suggest a feature to improve an existing source
labels: [Feature request]
body:
- type: input
id: source
attributes:
label: Source name
description: |
You can find the extension name in **Browse → Extensions**.
placeholder: |
Example: "AniWatch"
validations:
required: true
- type: input
id: language
attributes:
label: Source language
placeholder: |
Example: "English"
validations:
required: true
- type: textarea
id: feature-description
attributes:
label: Describe your suggested feature
description: How can an existing extension be improved?
placeholder: |
Example:
"It should work like this..."
validations:
required: true
- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments.
- type: checkboxes
id: acknowledgements
attributes:
label: Acknowledgements
description: Your issue will be closed if you haven't done these steps.
options:
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue.
required: true
- label: I have written a short but informative title.
required: true
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/kodjodevf/mangayomi/issues/new/choose).
required: true

View file

@ -0,0 +1,51 @@
name: 🌐 Source request
description: Suggest a new source for Mangayomi
labels: [Source request]
body:
- type: input
id: name
attributes:
label: Source name
placeholder: |
Example: "Not Real Source"
validations:
required: true
- type: input
id: link
attributes:
label: Source link
placeholder: |
Example: "https://notrealsource.org"
validations:
required: true
- type: input
id: language
attributes:
label: Source language
placeholder: |
Example: "English"
validations:
required: true
- type: textarea
id: other-details
attributes:
label: Other details
placeholder: |
Additional details and attachments.
- type: checkboxes
id: acknowledgements
attributes:
label: Acknowledgements
description: Your issue will be closed if you haven't done these steps.
options:
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue.
required: true
- label: I have written a title with source name.
required: true
- label: I have checked that the extension does not already exist by searching the [GitHub repository](https://github.com/kodjodevf/mangayomi-extensions/) and verified it does not appear in the code base.
required: true

32
.github/workflows/gen_index.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Generate json index
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- name: Generage
run: |
dart run source_generator.dart
- name: Commit and Push Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout main
git add index.json
git add anime_index.json
git add novel_index.json
git commit -m "Update extensions"
git push origin main --force

BIN
1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

BIN
2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

BIN
4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

BIN
5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

BIN
6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

278
CONTRIBUTING-DART.md Normal file
View file

@ -0,0 +1,278 @@
# Contributing
This guide have some instructions and tips on how to create a new Mangayomi extension on Dart extension.
## Prerequisites
Before starting please have installed the recent desktop version of the mangayomi application preferably or if you want with a tablet too.
### Writing your extension
1. Open the app.
2. Go to extension tab :
![1](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/1.png)
3. then click `+` and you will see :
![2](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/2.png)
4. Fill in the fields with your new source that you would like to create,
![3](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/dart-3.png)
NB: only the `ApiUrl` field is optional
then click on save
5. you will see your new source in the extension list
![4](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/dart-4.png)
click to open settings
6. After click on edit code
![5](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/dart-5.png)
7. Finally you can now write the extension
![6](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/dart-6.png)
- This page contains three parts:
- Code editor: where you will write your code
- Fecth result: where you will test the different implemented methods by having a result in the expected format
- Console: which will show you the logs
Once extension is ready you can relocate your code into `mangayomi-extension` project in a `src` or `multisrc` package
Create the folder with the name of the source such as [this example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/dart/anime/src/en/kisskh)
after go either to the anime_source_list.dart file for anime or manga_source_list.dart for the manga and import the extension then
create a Pull Request.
### Source
| Field | Description |
| ----- | ----------- |
| `name` | Name displayed in the "Sources" tab in Mangayomi. |
| `baseUrl` | Base URL of the source without any trailing slashes. |
| `apiUrl` | (Optional, defaults is empty) Api URL of the source with trailing slashes. |
| `lang` | An ISO 639-1 compliant language code (two letters in lower case in most cases, but can also include the country/dialect part by using a simple dash character). |
| `id` | Identifier of your source, automatically set in `Source`. It should only be manually overriden if you need to copy an existing autogenerated ID. |
| `sourceCodeUrl` | contains the URL where the extension source code can be downloaded |
| `sourceCode` | contains the extension source code |
| `isManga` | (Optional, defaults to `true`) specify source type (false for anime and true for manga)|
| `dateFormat` | (Optional, defaults is empty) |
| `iconUrl` | The extension icon URL |
| `version` | The extension version code. This must be incremented with any change to the code. |
| `dateFormatLocale` | (Optional, defaults is empty) |
| `isNsfw` | (Optional, defaults to `false`) Flag to indicate that a source contains NSFW content. |
### Extension call flow
#### Popular manga
a.k.a. the Browse source entry point in the app (invoked by tapping on the source name).
- The app calls `getPopular` which should return a `MPages` containing the first batch of found `MManga` entries.
- This method supports pagination. When user scrolls the manga list and more results must be fetched, the app calls it again with increasing `page` values(starting with `page=1`). This continues while `MPages.hasNextPage` is passed as `true` and `MPages.list` is not empty.
- To show the list properly, the app needs `url`, `title` and `imageUrl`. You **must** set them here. The rest of the fields could be filled later.(refer to Manga Details below).
#### Latest manga
a.k.a. the Latest source entry point in the app (invoked by tapping on the "Latest" button beside the source name).
- Similar to popular manga, but should be fetching the latest entries from a source.
#### Search manga
- When the user searches inside the app, `search` will be called and the rest of the flow is similar to what happens with `getPopular`.
- If search functionality is not available, return `MPages([], false)`
- `getFilterList` will be called to get all filters and filter types.
### Filters
The search flow have support to filters that can be added to a `FilterList` inside the `getFilterList` method. When the user changes the filter's state, they will be passed to the `search` method, and they can be iterated to create the request (by getting the `filter.state` value, where the type varies depending on the `Filter` used). You can check the filter types available [here](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/model/filter.dart) and in the table below.
| Filter | Description |
| ------ | ----------- |
| `HeaderFilter` | A simple header. Useful for separating sections in the list or showing any note or warning to the user. |
| `SeparatorFilter` | A line separator. Useful for visual distinction between sections. |
| `SelectFilter` | A select control, similar to HTML's `<select>`. Only one item can be selected, and the state is the index of the selected one. |
| `TextFilter` | A text control, similar to HTML's `<input type="text">`. |
| `CheckBoxFilter` | A checkbox control, similar to HTML's `<input type="checkbox">`. The state is `true` if it's checked. |
| `TriStateFilter` | A enhanced checkbox control that supports an excluding state |
| `GroupFilter` | A group of filters (preferentially of the same type). The state will be a `List` with all the states. |
| `SortFilter` | A control for sorting, with support for the ordering. The state indicates which item index is selected and if the sorting is `ascending`. |
All control filters can have a default state set. It's usually recommended if the source have filters to make the initial state match the popular manga list, so when the user open the filter sheet, the state is equal and represents the current manga showing.
#### Manga Details
- When user taps on an manga, `getDetail` will be called and the results will be cached.
- A `MManga` entry is identified by its `url`.
- `getDetail` is called to update an manga's details from when it was initialized earlier.
- `MManga.title` is a string containing title.
- `MManga.description` is a string containing description.
- `MManga.author` is a string containing author.
- `MManga.genre` contain list of all genres.
- `MManga.status` is an "enum" value.
- To get the status in enum value from a status string, you can use a `parseStatus` function like in the example below.
`Status` parseStatus(`String status`, `List<dynamic> statusList`)
```bash
final statusList = [
{ "ongoing": 0,
"complete": 1,
"hiatus": 2,
"canceled": 3,
"publishingFinished": 4,
}
];
final status = parseStatus('ongoing', statusList);
print(status); // Status.ongoing
```
Refer to [the values in the `MManga` model](https://github.com/kodjodevf/mangayomi/blob/main/lib/models/manga.dart).
- During a backup, only `url` and `title` are stored. To restore the rest of the manga data, the app calls `getDetail`, so all fields should be (re)filled in if possible.
- If a `MManga` is cached `getDetail` will be only called when the user does a manual update(Swipe-to-Refresh).
- `MManga.chapters` contain list of all manga chapters.
- `MChapter.name` is a string containing a chapter name.
- `MChapter.url` is a string containing a chapter url.
- `MChapter.scanlator` is a string containing a chapter scanlator.
- `MChapter.dateUpload` is a string containing date **expressed in millisecondsSinceEpoch**.
- To get the time in millisecondsSinceEpoch from a date string, you can use a `parseDates` function like in the example below.
`List<dynamic>` parseDates(`List<dynamic> values`, `String dateFormat`, `String dateFormatLocale`,)
```bash
final dates = parseDates(["2023-12-10T11:49:02+000"], "yyyy-MM-dd'T'HH:mm:ss+SSS", "en_US");
```
- If you don't pass `MChapter.dateUpload` and leave it null, the app will use the default date instead, but it's recommended to always fill it if it's available.
#### Chapter pages
- When user opens an chapter, `getPageList` will be called and it will return a `List<String>` or `List<Map<String,dynamic>>` with a list of `{"url":string,"headers":Map<String,String>}` that are used by the reader.
#### Episode Videos
- When user opens an episode, `getVideoList` will be called and it will return a `List<MVideo>` that are used by the player.
## Example sources that can help you understand how to create your source
- [Example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/dart/anime/src/en/kisskh/kisskh.dart)
of Json API usage.
- [Example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/dart/manga/src/en/mangahere/mangahere.dart)
of HTML parsing using xpath selector.
- [Example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/dart/manga/multisrc/madara/madara.dart)
of HTML parsing using HTML DOM selector.
## Some functions already available and usable
### http client
Return Response
```bash
- Simple request
final Client client = Client();
final res = await client.get(Uri.parse("http://example.com"));
print(res.body);
- With headers
final Client client = Client();
final res = await client.get(Uri.parse("http://example.com"),headers:{"Referer": "http://example.com"});
print(res.body);
- With body
final Client client = Client();
final res = await client.post(Uri.parse("http://example.com"),headers:{"Referer": "http://example.com"},'body':{'name':'test'});
print(res.body);
```
### xpath selector
Return result as `List<String>`
Example:
```bash
final String htmlString = '''
<html lang="en">
<body>
<div><a href='https://github.com/kodjodevf'>author</a></div>
<div class="head">div head</div>
<div class="container">
<table>
<tbody>
<tr>
<td id="td1" class="first1">1</td>
<td id="td2" class="first1">2</td>
<td id="td3" class="first2">3</td>
<td id="td4" class="first2 form">4</td>
<td id="td5" class="second1">one</td>
<td id="td6" class="second1">two</td>
<td id="td7" class="second2">three</td>
<td id="td8" class="second2">four</td>
</tr>
</tbody>
</table>
</div>
<div class="end">end</div>
</body>
</html>
''';
List<String> xpathRes = xpath(htmlString,'//div/a/@href');
print(xpathRes); // [https://github.com/kodjodevf]
print(xpathRes.first); // https://github.com/kodjodevf
```
### HTML DOM selector
Example:
```bash
final String htmlString = '''
<html lang="en">
<body>
<div><a href='https://github.com/kodjodevf'>author</a></div>
<div class="head">div head</div>
<div class="container">
<table>
<tbody>
<tr>
<td id="td1" class="first1">1</td>
<td id="td2" class="first1">2</td>
<td id="td3" class="first2">3</td>
<td id="td4" class="first2 form">4</td>
<td id="td5" class="second1">one</td>
<td id="td6" class="second1">two</td>
<td id="td7" class="second2">three</td>
<td id="td8" class="second2">four</td>
</tr>
</tbody>
</table>
</div>
<div class="end">end</div>
</body>
</html>
''';
MDocument document = parseHtml(htmlString);
print(document.selectFirst("a").attr("href")); // https://github.com/kodjodevf
print(document.selectFirst("td").text); // 1
```
See [`MDocument` model](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/model/document.dart) and [`MElement` model](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/model/element.dart) to see available methods.
### String utils
- `String` substringAfter(`String text`, `String pattern`)
- `String` substringAfterLast(`String text`, `String pattern`)
- `String` substringBefore(`String text`, `String pattern`)
- `String` substringBeforeLast(`String text`, `String pattern`)
- `String` getUrlWithoutDomain(`String url`)
### Crypto utils
- `String` unpackJs(`String code`);
- `Future<String>` evalJs(`String code`);
- `String` deobfuscateJsPassword(`String inputString`)
- `String` encryptAESCryptoJS(`String plainText`, `String passphrase`)
- `String` decryptAESCryptoJS(`String encrypted`, `String passphrase`)
- `String` cryptoHandler(`String text`, `String iv`, `String secretKeyString`, `bool encrypt`)
## Help
If you need a help or have some questions, ask a community in our [Discord server](https://discord.com/invite/EjfBuYahsP).

205
CONTRIBUTING-JS.md Normal file
View file

@ -0,0 +1,205 @@
# Contributing
This guide have some instructions and tips on how to create a new Mangayomi extension on JavaScript extension.
## Prerequisites
Before starting please have installed the recent desktop version of the mangayomi application preferably or if you want with a tablet too.
### Writing your extension
1. Open the app.
2. Go to extension tab :
![1](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/1.png)
3. then click `+` and you will see :
![2](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/2.png)
4. Fill in the fields with your new source that you would like to create,
![3](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/3.png)
NB: only the `ApiUrl` field is optional
then click on save
5. you will see your new source in the extension list
![4](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/4.png)
click to open settings
6. After click on edit code
![5](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/5.png)
7. Finally you can now write the extension
![6](https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/screenshots/6.png)
- This page contains three parts:
- Code editor: where you will write your code
- Fecth result: where you will test the different implemented methods by having a result in the expected format
- Console: which will show you the logs
Once extension is ready you can relocate your code into `mangayomi-extension` project in a `src` or `multisrc` package and create a Pull Request.
### Source
| Field | Description |
| ----- | ----------- |
| `name` | Name displayed in the "Sources" tab in Mangayomi. |
| `baseUrl` | Base URL of the source without any trailing slashes. |
| `apiUrl` | (Optional, defaults is empty) Api URL of the source with trailing slashes. |
| `lang` | An ISO 639-1 compliant language code (two letters in lower case in most cases, but can also include the country/dialect part by using a simple dash character). |
| `id` | Identifier of your source, automatically set in `Source`. It should only be manually overriden if you need to copy an existing autogenerated ID. |
| `isManga` | (Optional, defaults to `true`) specify source type (false for anime and true for manga)|
| `dateFormat` | (Optional, defaults is empty) |
| `iconUrl` | The extension icon URL |
| `version` | The extension version code. This must be incremented with any change to the code. |
| `dateFormatLocale` | (Optional, defaults is empty) |
| `isNsfw` | (Optional, defaults to `false`) Flag to indicate that a source contains NSFW content. |
### Extension call flow
#### Popular manga
a.k.a. the Browse source entry point in the app (invoked by tapping on the source name).
- The app calls `getPopular` which should return a JSON
```bash
{
'list': array of {'url':string,'name':string,'link':string},
hasNextPage: Boolean
}
```
- This method supports pagination. When user scrolls the manga list and more results must be fetched, the app calls it again with increasing `page` values(starting with `page=1`). This continues while `hasNextPage` is passed as `true` and `list` is not empty.
#### Latest manga
a.k.a. the Latest source entry point in the app (invoked by tapping on the "Latest" button beside the source name).
- Similar to popular manga, but should be fetching the latest entries from a source.
#### Search manga
- When the user searches inside the app, `search` will be called and the rest of the flow is similar to what happens with `getPopular`.
- `getFilterList` will be called to get all filters and filter types.
#### Manga Details
- When user taps on an manga, `getDetail` will be called and the results will be cached.
- `getDetail` is called to update an manga's details from when it was initialized earlier.
- `title` is a string containing title.
- `description` is a string containing description.
- `author` is a string containing author.
- `genre` contain array of all genres.
- `status` is an "integer" value.
You can refer to this example to see the correspondence:
```bash
0=>"ongoing", 1=>"complete", 2=>"hiatus", 3=>"canceled", 4=>"publishingFinished", 5=>unknow
```
- `chapters` or `episodes` contain all of all manga chapters or anime episodes.
- `name` is a string containing a chapter name.
- `url` is a string containing a chapter url.
- `scanlator` is a string containing a chapter scanlator.
- `dateUpload` is a string containing date **expressed in millisecondsSinceEpoch**.
- If you don't pass `dateUpload` and leave it null, the app will use the default date instead, but it's recommended to always fill it if it's available.
#### Chapter pages
- When user opens an chapter, `getPageList` will be called and it will return an array of string or an array of map like `{ url:string,headers:map }` that are used by the reader.
#### Episode Videos
- When user opens an episode, `getVideoList` will be called and it will return a
```bash
array of {'url':string,'originalUrl':string,'quality':string}
```
that are used by the player.
## Example sources that can help you understand how to create your source
- [Example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/javascript/anime/src/de/aniworld.js)
of HTML parsing using HTML DOM selector.
- [Example](https://github.com/kodjodevf/mangayomi-extensions/blob/main/javascript/anime/src/en/allanime.js)
of Json API usage.
## Some functions already available and usable
### http client
Return Response
```bash
- Simple request
const client = new Client();
const res = await client.get("http://example.com");
console.log(res.body);
- With headers
const client = new Client();
const res = await client.get("http://example.com",{"Referer": "http://example.com"});
console.log(res.body);
- With body
const client = new Client();
const res = await client.post("http://example.com",{"Referer": "http://example.com"},{'name':'test'});
console.log(res.body);
```
### HTML DOM selector
Example:
```bash
const htmlString = `
<html lang="en">
<body>
<div><a href='https://github.com/kodjodevf'>author</a></div>
<div class="head">div head</div>
<div class="container">
<table>
<tbody>
<tr>
<td id="td1" class="first1">1</td>
<td id="td2" class="first1">2</td>
<td id="td3" class="first2">3</td>
<td id="td4" class="first2 form">4</td>
<td id="td5" class="second1">one</td>
<td id="td6" class="second1">two</td>
<td id="td7" class="second2">three</td>
<td id="td8" class="second2">four</td>
</tr>
</tbody>
</table>
</div>
<div class="end">end</div>
</body>
</html>`
const document = new Document(htmlString);
console.log(document.selectFirst("a").attr("href")); // https://github.com/kodjodevf
console.log(document.selectFirst("td").text); // 1
```
See [`dom_selector`](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/javascript/dom_selector.dart) to see available methods.
### String utils
- this.substringAfter(`string: pattern`)
- this.substringAfterLast(`string: pattern`)
- this.substringBefore(`string: pattern`)
- this.substringBeforeLast(`string: pattern`)
- this.substringBetween(`string: left`, `string: right`)
### Crypto utils
- unpackJs(`string: code`);
- deobfuscateJsPassword(`string: inputString`)
- encryptAESCryptoJS(`string: plainText`, `string: passphrase`)
- decryptAESCryptoJS(`string: encrypted`, `string: passphrase`)
- cryptoHandler(`string: text`, `string: iv`, `string: secretKeyString`, `Boolean: encrypt`)
## Help
If you need a help or have some questions, ask a community in our [Discord server](https://discord.com/invite/EjfBuYahsP).

177
LICENSE Normal file
View file

@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

32
README.md Normal file
View file

@ -0,0 +1,32 @@
# Mangayomi Extensions
This repository contains the available extension catalogues for the [Mangayomi](https://github.com/kodjodevf/mangayomi) app.
# Contributing
Contributions are welcome!
To get started with development, see [CONTRIBUTING-DART.md](./CONTRIBUTING-DART.md) for create sources in Dart or [CONTRIBUTING-JS.md](./CONTRIBUTING-JS.md) for create sources in JavaScript.
## License
Copyright 2023 Moustapha Kodjo Amadou
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
## Disclaimer
The developer of this application does not have any affiliation with the content providers available.

1
anime_index.json Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

View file

@ -0,0 +1,58 @@
import '../../model/source.dart';
import 'multisrc/datalifeengine/sources.dart';
import 'multisrc/dopeflix/sources.dart';
import 'multisrc/zorotheme/sources.dart';
import 'src/all/animeworldindia/sources.dart';
import 'src/all/nyaa/source.dart';
import 'src/ar/okanime/source.dart';
import 'src/de/animetoast/source.dart';
import 'src/en/animepahe/source.dart';
import 'src/en/dramacool/source.dart';
import 'src/en/gogoanime/source.dart';
import 'src/en/nineanimetv/source.dart';
import 'src/es/animeonlineninja/source.dart';
import 'src/fr/animesama/source.dart';
import 'src/fr/anizone/source.dart';
import 'src/hi/yomovies/source.dart';
import 'src/en/kisskh/source.dart';
import 'src/en/uhdmovies/source.dart';
import 'src/fr/animesultra/source.dart';
import 'src/fr/franime/source.dart';
import 'src/fr/otakufr/source.dart';
import 'src/id/nimegami/source.dart';
import 'src/id/oploverz/source.dart';
import 'src/id/otakudesu/source.dart';
import 'src/it/animesaturn/source.dart';
import 'src/pt/animesvision/source.dart';
import 'src/sq/filma24/source.dart';
import 'src/tr/diziwatch/source.dart';
List<Source> dartAnimesourceList = [
gogoanimeSource,
franimeSource,
otakufr,
animesultraSource,
...zorothemeSourcesList,
kisskhSource,
okanimeSource,
otakudesu,
nimegami,
oploverz,
...dopeflixSourcesList,
animesaturn,
uhdmoviesSource,
...datalifeengineSourcesList,
filma24,
dramacoolSource,
yomoviesSource,
animesamaSource,
nineanimetv,
...animeworldindiaSourcesList,
nyaaSource,
animepaheSource,
animetoast,
animesvision,
diziwatchSource,
aniZoneSource,
animeonlineninjaSource
];

View file

@ -0,0 +1,415 @@
import 'dart:convert';
import 'package:mangayomi/bridge_lib.dart';
class DataLifeEngine extends MProvider {
DataLifeEngine({required this.source});
MSource source;
final Client client =
Client(source, json.encode({"useDartHttpClient": true}));
@override
bool get supportsLatest => false;
@override
String get baseUrl => getPreferenceValue(source.id, "overrideBaseUrl");
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl${getPath(source)}page/$page")))
.body;
return animeFromElement(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
return MPages([], false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String res = "";
if (query.isNotEmpty) {
if (query.length < 4)
throw "La recherche est suspendue! La chaîne de recherche est vide ou contient moins de 4 caractères.";
final headers = {
"Host": Uri.parse(baseUrl).host,
"Origin": baseUrl,
"Referer": "$baseUrl/"
};
final cleanQuery = query.replaceAll(" ", "+");
if (page == 1) {
res = (await client.post(
Uri.parse(
"$baseUrl?do=search&subaction=search&story=$cleanQuery"),
headers: headers))
.body;
} else {
res = (await client.post(
Uri.parse(
"$baseUrl?do=search&subaction=search&search_start=$page&full_search=0&result_from=11&story=$cleanQuery"),
headers: headers))
.body;
}
} else {
String url = "";
for (var filter in filters) {
if (filter.type == "CategoriesFilter") {
if (filter.state != 0) {
url = "$baseUrl${filter.values[filter.state].value}page/$page/";
}
} else if (filter.type == "GenresFilter") {
if (filter.state != 0) {
url = "$baseUrl${filter.values[filter.state].value}page/$page/";
}
}
}
res = (await client.get(Uri.parse(url))).body;
}
return animeFromElement(res);
}
@override
Future<MManga> getDetail(String url) async {
String res =
(await client.get(Uri.parse("$baseUrl${getUrlWithoutDomain(url)}")))
.body;
MManga anime = MManga();
final description = xpath(res, '//span[@itemprop="description"]/text()');
anime.description = description.isNotEmpty ? description.first : "";
anime.genre = xpath(res, '//span[@itemprop="genre"]/a/text()');
List<MChapter>? episodesList = [];
if (source.name == "French Anime") {
final epsData = xpath(res, '//div[@class="eps"]/text()');
for (var epData in epsData.first.split('\n')) {
final data = epData.split('!');
MChapter ep = MChapter();
ep.name = "Episode ${data.first}";
ep.url = data.last;
episodesList.add(ep);
}
} else {
final doc = parseHtml(res);
final elements = doc
.select(".hostsblock div:has(a)")
.where((MElement e) => e.outerHtml.contains("loadVideo('https://"))
.toList();
if (elements.isNotEmpty) {
for (var element in elements) {
element = element as MElement;
MChapter ep = MChapter();
ep.name = element.className
.replaceAll("ep", "Episode ")
.replaceAll("vs", " VOSTFR")
.replaceAll("vf", " VF");
ep.url = element
.select("a")
.map((MElement e) => substringBefore(
substringAfter(e.attr('onclick'), "loadVideo('"), "')"))
.toList()
.join(",")
.replaceAll("/vd.php?u=", "");
ep.scanlator = element.className.contains('vf') ? 'VF' : 'VOSTFR';
episodesList.add(ep);
}
} else {
MChapter ep = MChapter();
ep.name = "Film";
ep.url = doc
.select("a")
.where((MElement e) => e.outerHtml.contains("loadVideo('https://"))
.map((MElement e) => substringBefore(
substringAfter(e.attr('onclick'), "loadVideo('"), "')"))
.toList()
.join(",")
.replaceAll("/vd.php?u=", "");
episodesList.add(ep);
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
List<MVideo> videos = [];
final sUrls = url.split(',');
for (var sUrl in sUrls) {
List<MVideo> a = [];
if (sUrl.contains("dood") || sUrl.contains("d000")) {
a = await doodExtractor(sUrl, "DoodStream");
} else if (["streamhide", "guccihide", "streamvid", "dhtpre"]
.any((a) => sUrl.contains(a))) {
a = await streamHideExtractor(sUrl);
} else if (sUrl.contains("uqload")) {
a = await uqloadExtractor(sUrl);
} else if (sUrl.contains("upstream")) {
a = await upstreamExtractor(sUrl);
} else if (sUrl.contains("sibnet")) {
a = await sibnetExtractor(sUrl);
} else if (sUrl.contains("ok.ru")) {
a = await okruExtractor(sUrl);
} else if (sUrl.contains("vidmoly")) {
a = await vidmolyExtractor(sUrl);
} else if (sUrl.contains("streamtape")) {
a = await streamTapeExtractor(sUrl, "");
} else if (sUrl.contains("voe.sx")) {
a = await voeExtractor(sUrl, "");
}
videos.addAll(a);
}
return videos;
}
MPages animeFromElement(String res) {
final htmls = parseHtml(res).select("div#dle-content > div.mov");
List<MManga> animeList = [];
for (var h in htmls) {
final html = h.innerHtml;
final url = xpath(html, '//a/@href').first;
final name = xpath(html, '//a/text()').first;
final image = xpath(html, '//div[contains(@class,"mov")]/img/@src').first;
final season = xpath(html, '//div/span[@class="block-sai"]/text()');
MManga anime = MManga();
anime.name =
"$name ${season.isNotEmpty ? season.first.replaceAll("\n", " ") : ""}";
anime.imageUrl = "$baseUrl$image";
anime.link = url;
animeList.add(anime);
}
final hasNextPage = xpath(res, '//span[@class="pnext"]/a/@href').isNotEmpty;
return MPages(animeList, hasNextPage);
}
Future<List<MVideo>> streamHideExtractor(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final masterUrl = substringBefore(
substringAfter(
substringAfter(
substringAfter(unpackJs(res), "sources:"), "file:\""),
"src:\""),
'"');
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
List<MVideo> videos = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "StreamHideVid - $quality";
videos.add(video);
}
return videos;
}
Future<List<MVideo>> upstreamExtractor(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final js = xpath(res, '//script[contains(text(), "m3u8")]/text()');
if (js.isEmpty) {
return [];
}
final masterUrl =
substringBefore(substringAfter(unpackJs(js.first), "{file:\""), "\"}");
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
List<MVideo> videos = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Upstream - $quality";
videos.add(video);
}
return videos;
}
Future<List<MVideo>> uqloadExtractor(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final js = xpath(res, '//script[contains(text(), "sources:")]/text()');
if (js.isEmpty) {
return [];
}
final videoUrl =
substringBefore(substringAfter(js.first, "sources: [\""), '"');
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Uqload"
..headers = {"Referer": "${Uri.parse(url).origin}/"};
return [video];
}
Future<List<MVideo>> vidmolyExtractor(String url) async {
final headers = {
'Referer': 'https://vidmoly.to',
};
List<MVideo> videos = [];
final playListUrlResponse = (await client.get(Uri.parse(url))).body;
final playlistUrl =
RegExp(r'file:"(\S+?)"').firstMatch(playListUrlResponse)?.group(1) ??
"";
if (playlistUrl.isEmpty) return [];
final masterPlaylistRes =
await client.get(Uri.parse(playlistUrl), headers: headers);
if (masterPlaylistRes.statusCode == 200) {
for (var it
in substringAfter(masterPlaylistRes.body, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Vidmoly $quality"
..headers = headers;
videos.add(video);
}
}
return videos;
}
String getPath() {
if (source.name == "French Anime") return "/animes-vostfr/";
return "/serie-en-streaming/";
}
@override
List<dynamic> getSourcePreferences() {
return [
if (source.name == "Wiflix")
EditTextPreference(
key: "overrideBaseUrl",
title: "Changer l'url de base",
summary: "",
value: "https://wiflix-hd.vip",
dialogTitle: "Changer l'url de base",
dialogMessage: "",
text: "https://wiflix-hd.vip"),
if (source.name == "French Anime")
EditTextPreference(
key: "overrideBaseUrl",
title: "Changer l'url de base",
summary: "",
value: "https://french-anime.com",
dialogTitle: "Changer l'url de base",
dialogMessage: "",
text: "https://french-anime.com"),
];
}
@override
List<dynamic> getFilterList() {
return [
HeaderFilter("La recherche de texte ignore les filtres"),
if (source.name == "French Anime")
SelectFilter("CategoriesFilter", "Catégories", 0, [
SelectFilterOption("<Sélectionner>", ""),
SelectFilterOption("Action", "/genre/action/"),
SelectFilterOption("Aventure", "/genre/aventure/"),
SelectFilterOption("Arts martiaux", "/genre/arts-martiaux/"),
SelectFilterOption("Combat", "/genre/combat/"),
SelectFilterOption("Comédie", "/genre/comedie/"),
SelectFilterOption("Drame", "/genre/drame/"),
SelectFilterOption("Epouvante", "/genre/epouvante/"),
SelectFilterOption("Fantastique", "/genre/fantastique/"),
SelectFilterOption("Fantasy", "/genre/fantasy/"),
SelectFilterOption("Mystère", "/genre/mystere/"),
SelectFilterOption("Romance", "/genre/romance/"),
SelectFilterOption("Shonen", "/genre/shonen/"),
SelectFilterOption("Surnaturel", "/genre/surnaturel/"),
SelectFilterOption("Sci-Fi", "/genre/sci-fi/"),
SelectFilterOption("School life", "/genre/school-life/"),
SelectFilterOption("Ninja", "/genre/ninja/"),
SelectFilterOption("Seinen", "/genre/seinen/"),
SelectFilterOption("Horreur", "/genre/horreur/"),
SelectFilterOption("Tranche de vie", "/genre/tranchedevie/"),
SelectFilterOption("Psychologique", "/genre/psychologique/")
]),
if (source.name == "French Anime")
SelectFilter("GenresFilter", "Genres", 0, [
SelectFilterOption("<Sélectionner>", ""),
SelectFilterOption("Animes VF", "/animes-vf/"),
SelectFilterOption("Animes VOSTFR", "/animes-vostfr/"),
SelectFilterOption("Films VF et VOSTFR", "/films-vf-vostfr/")
]),
if (source.name == "Wiflix")
SelectFilter("CategoriesFilter", "Catégories", 0, [
SelectFilterOption("<Sélectionner>", ""),
SelectFilterOption("Séries", "/serie-en-streaming/"),
SelectFilterOption("Films", "/film-en-streaming/")
]),
if (source.name == "Wiflix")
SelectFilter("GenresFilter", "Genres", 0, [
SelectFilterOption("<Sélectionner>", ""),
SelectFilterOption("Action", "/film-en-streaming/action/"),
SelectFilterOption("Animation", "/film-en-streaming/animation/"),
SelectFilterOption(
"Arts Martiaux", "/film-en-streaming/arts-martiaux/"),
SelectFilterOption("Aventure", "/film-en-streaming/aventure/"),
SelectFilterOption("Biopic", "/film-en-streaming/biopic/"),
SelectFilterOption("Comédie", "/film-en-streaming/comedie/"),
SelectFilterOption(
"Comédie Dramatique", "/film-en-streaming/comedie-dramatique/"),
SelectFilterOption(
"Épouvante Horreur", "/film-en-streaming/horreur/"),
SelectFilterOption("Drame", "/film-en-streaming/drame/"),
SelectFilterOption(
"Documentaire", "/film-en-streaming/documentaire/"),
SelectFilterOption("Espionnage", "/film-en-streaming/espionnage/"),
SelectFilterOption("Famille", "/film-en-streaming/famille/"),
SelectFilterOption("Fantastique", "/film-en-streaming/fantastique/"),
SelectFilterOption("Guerre", "/film-en-streaming/guerre/"),
SelectFilterOption("Historique", "/film-en-streaming/historique/"),
SelectFilterOption("Musical", "/film-en-streaming/musical/"),
SelectFilterOption("Policier", "/film-en-streaming/policier/"),
SelectFilterOption("Romance", "/film-en-streaming/romance/"),
SelectFilterOption(
"Science-Fiction", "/film-en-streaming/science-fiction/"),
SelectFilterOption("Spectacles", "/film-en-streaming/spectacles/"),
SelectFilterOption("Thriller", "/film-en-streaming/thriller/"),
SelectFilterOption("Western", "/film-en-streaming/western/"),
]),
];
}
}
DataLifeEngine main(MSource source) {
return DataLifeEngine(source: source);
}

View file

@ -0,0 +1,19 @@
import '../../../../model/source.dart';
import 'src/frenchanime/frenchanime.dart';
import 'src/wiflix/wiflix.dart';
const _datalifeengineVersion = "0.0.6";
const _datalifeengineSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/datalifeengine/datalifeengine.dart";
List<Source> get datalifeengineSourcesList => _datalifeengineSourcesList;
List<Source> _datalifeengineSourcesList = [
//French Anime (FR)
frenchanimeSource,
//Wiflix (FR)
wiflixSource,
]
.map((e) => e
..sourceCodeUrl = _datalifeengineSourceCodeUrl
..version = _datalifeengineVersion)
.toList();

View file

@ -0,0 +1,13 @@
import '../../../../../../model/source.dart';
Source get frenchanimeSource => _frenchanimeSource;
Source _frenchanimeSource = Source(
name: "French Anime",
baseUrl: "https://french-anime.com",
lang: "fr",
typeSource: "datalifeengine",
itemType: ItemType.anime,
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/datalifeengine/src/frenchanime/icon.png",
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View file

@ -0,0 +1,13 @@
import '../../../../../../model/source.dart';
Source get wiflixSource => _wiflixSource;
Source _wiflixSource = Source(
name: "Wiflix",
baseUrl: "https://wiflix-hd.vip",
lang: "fr",
typeSource: "datalifeengine",
itemType: ItemType.anime,
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/datalifeengine/src/wiflix/icon.png",
);

View file

@ -0,0 +1,548 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class DopeFlix extends MProvider {
DopeFlix({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "preferred_domain");
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(
"$baseUrl/${getPreferenceValue(source.id, "preferred_popular_page")}?page=$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse("$baseUrl/home"))).body;
List<MManga> animeList = [];
final path =
'//section[contains(text(),"${getPreferenceValue(source.id, "preferred_latest_page")}")]/div/div[@class="film_list-wrap"]/div[@class="flw-item"]/div[@class="film-poster"]';
final urls = xpath(res, '$path/a/@href');
final names = xpath(res, '$path/a/@title');
final images = xpath(res, '$path/img/@data-src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "$baseUrl";
if (query.isNotEmpty) {
url += "/search/${query.replaceAll(" ", "-")}?page=$page";
} else {
url += "/filter/?page=$page";
for (var filter in filters) {
if (filter.type == "TypeFilter") {
final type = filter.values[filter.state].value;
url += "${ll(url)}type=$type";
} else if (filter.type == "QualityFilter") {
final quality = filter.values[filter.state].value;
url += "${ll(url)}quality=$quality";
} else if (filter.type == "ReleaseYearFilter") {
final year = filter.values[filter.state].value;
url += "${ll(url)}release_year=$year";
} else if (filter.type == "GenresFilter") {
final genre = (filter.state as List).where((e) => e.state).toList();
if (genre.isNotEmpty) {
url += "${ll(url)}genre=";
for (var st in genre) {
url += "${st.value}-";
}
}
} else if (filter.type == "CountriesFilter") {
final country = (filter.state as List).where((e) => e.state).toList();
if (country.isNotEmpty) {
url += "${ll(url)}country=";
for (var st in country) {
url += "${st.value}-";
}
}
}
}
}
final res = (await client.get(Uri.parse(url))).body;
return parseAnimeList(res);
}
@override
Future<MManga> getDetail(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
MManga anime = MManga();
final description = xpath(res, '//div[@class="description"]/text()');
if (description.isNotEmpty) {
anime.description = description.first.replaceAll("Overview:", "");
}
final author = xpath(res, '//div[contains(text(),"Production")]/a/text()');
if (author.isNotEmpty) {
anime.author = author.first;
}
anime.genre = xpath(res, '//div[contains(text(),"Genre")]/a/text()');
List<MChapter> episodesList = [];
final id = xpath(res, '//div[@class="detail_page-watch"]/@data-id').first;
final dataType =
xpath(res, '//div[@class="detail_page-watch"]/@data-type').first;
if (dataType == "1") {
MChapter episode = MChapter();
episode.name = "Movie";
episode.url = "$baseUrl/ajax/movie/episodes/$id";
episodesList.add(episode);
} else {
final resS =
(await client.get(Uri.parse("$baseUrl/ajax/v2/tv/seasons/$id"))).body;
final seasonIds =
xpath(resS, '//a[@class="dropdown-item ss-item"]/@data-id');
final seasonNames =
xpath(resS, '//a[@class="dropdown-item ss-item"]/text()');
for (int i = 0; i < seasonIds.length; i++) {
final seasonId = seasonIds[i];
final seasonName = seasonNames[i];
final html = (await client
.get(Uri.parse("$baseUrl/ajax/v2/season/episodes/$seasonId")))
.body;
final epsHtmls = parseHtml(html).select("div.eps-item");
for (var epH in epsHtmls) {
final epHtml = epH.outerHtml;
final episodeId =
xpath(epHtml, '//div[contains(@class,"eps-item")]/@data-id')
.first;
final epNum =
xpath(epHtml, '//div[@class="episode-number"]/text()').first;
final epName = xpath(epHtml, '//h3[@class="film-name"]/text()').first;
MChapter episode = MChapter();
episode.name = "$seasonName $epNum $epName";
episode.url = "$baseUrl/ajax/v2/episode/servers/$episodeId";
episodesList.add(episode);
}
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl/$url"))).body;
final vidsHtmls = parseHtml(res).select("ul.fss-list a.btn-play");
List<MVideo> videos = [];
for (var vidH in vidsHtmls) {
final vidHtml = vidH.outerHtml;
final id = xpath(vidHtml, '//a/@data-id').first;
final name = xpath(vidHtml, '//span/text()').first;
final resSource =
(await client.get(Uri.parse("$baseUrl/ajax/sources/$id"))).body;
final vidUrl =
substringBefore(substringAfter(resSource, "\"link\":\""), "\"");
List<MVideo> a = [];
String masterUrl = "";
String type = "";
if (name.contains("DoodStream")) {
a = await doodExtractor(vidUrl, "DoodStream");
} else if (["Vidcloud", "UpCloud"].contains(name)) {
final id = substringBefore(substringAfter(vidUrl, "/embed-4/"), "?");
final serverUrl = substringBefore(vidUrl, "/embed");
final resServer = (await client.get(
Uri.parse("$serverUrl/ajax/embed-4/getSources?id=$id"),
headers: {"X-Requested-With": "XMLHttpRequest"}))
.body;
final encrypted = getMapValue(resServer, "encrypted");
String videoResJson = "";
if (encrypted == "true") {
final ciphered = getMapValue(resServer, "sources");
List<List<int>> indexPairs = await generateIndexPairs();
var password = '';
String ciphertext = ciphered;
int index = 0;
for (List<int> item in json.decode(json.encode(indexPairs))) {
int start = item.first + index;
int end = start + item.last;
String passSubstr = ciphered.substring(start, end);
password += passSubstr;
ciphertext = ciphertext.replaceFirst(passSubstr, "");
index += item.last;
}
videoResJson = decryptAESCryptoJS(ciphertext, password);
masterUrl = ((json.decode(videoResJson) as List<Map<String, dynamic>>)
.first)['file'];
type = ((json.decode(videoResJson) as List<Map<String, dynamic>>)
.first)['type'];
} else {
masterUrl =
((json.decode(resServer)["sources"] as List<Map<String, dynamic>>)
.first)['file'];
type =
((json.decode(resServer)["sources"] as List<Map<String, dynamic>>)
.first)['type'];
}
final tracks = (json.decode(resServer)['tracks'] as List)
.where((e) => e['kind'] == 'captions' ? true : false)
.toList();
List<MTrack> subtitles = [];
for (var sub in tracks) {
try {
MTrack subtitle = MTrack();
subtitle
..label = sub["label"]
..file = sub["file"];
subtitles.add(subtitle);
} catch (_) {}
}
subtitles = sortSubs(subtitles, source.id);
if (type == "hls") {
final masterPlaylistRes =
(await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${(masterUrl as String).split("/").sublist(0, (masterUrl as String).split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$name - $quality"
..subtitles = subtitles;
a.add(video);
}
} else {
MVideo video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = "$name - Default"
..subtitles = subtitles;
a.add(video);
}
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
Future<List<List<int>>> generateIndexPairs() async {
final res = (await client.get(Uri.parse(
"https://rabbitstream.net/js/player/prod/e4-player.min.js")))
.body;
String script = substringBefore(substringAfter(res, "const "), "()");
script = script.substring(0, script.lastIndexOf(','));
final list = script
.split(",")
.map((String e) {
String value = substringAfter(e, "=");
if (value.contains("0x")) {
return int.parse(substringAfter(value, "0x"), radix: 16);
} else {
return int.parse(value);
}
})
.toList()
.skip(1)
.toList();
return chunked(list, 2)
.map((List<int> list) => list.reversed.toList())
.toList();
}
List<List<int>> chunked(List<int> list, int size) {
List<List<int>> chunks = [];
for (int i = 0; i < list.length; i += size) {
int end = list.length;
if (i + size < list.length) {
end = i + size;
}
chunks.add(list.sublist(i, end));
}
return chunks;
}
MPages parseAnimeList(String res) {
List<MManga> animeList = [];
final path =
'//div[@class="film_list-wrap"]/div[@class="flw-item"]/div[@class="film-poster"]';
final urls = xpath(res, '$path/a/@href');
final names = xpath(res, '$path/a/@title');
final images = xpath(res, '$path/img/@data-src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final pages = xpath(
res, '//ul[contains(@class,"pagination")]/li/a[@title="Next"]/@title');
return MPages(animeList, pages.isNotEmpty);
}
@override
List<dynamic> getFilterList() {
return [
SelectFilter("TypeFilter", "Type", 0, [
SelectFilterOption("All", "all"),
SelectFilterOption("Movies", "movies"),
SelectFilterOption("TV Shows", "tv")
]),
SelectFilter("QualityFilter", "Quality", 0, [
SelectFilterOption("All", "all"),
SelectFilterOption("HD", "HD"),
SelectFilterOption("SD", "SD"),
SelectFilterOption("CAM", "CAM")
]),
SelectFilter("ReleaseYearFilter", "Released at", 0, [
SelectFilterOption("All", "all"),
SelectFilterOption("2024", "2024"),
SelectFilterOption("2023", "2023"),
SelectFilterOption("2022", "2022"),
SelectFilterOption("2021", "2021"),
SelectFilterOption("2020", "2020"),
SelectFilterOption("2019", "2019"),
SelectFilterOption("2018", "2018"),
SelectFilterOption("Older", "older-2018")
]),
SeparatorFilter(),
GroupFilter("GenresFilter", "Genre", [
CheckBoxFilter("Action", "10"),
CheckBoxFilter("Action & Adventure", "24"),
CheckBoxFilter("Adventure", "18"),
CheckBoxFilter("Animation", "3"),
CheckBoxFilter("Biography", "37"),
CheckBoxFilter("Comedy", "7"),
CheckBoxFilter("Crime", "2"),
CheckBoxFilter("Documentary", "11"),
CheckBoxFilter("Drama", "4"),
CheckBoxFilter("Family", "9"),
CheckBoxFilter("Fantasy", "13"),
CheckBoxFilter("History", "19"),
CheckBoxFilter("Horror", "14"),
CheckBoxFilter("Kids", "27"),
CheckBoxFilter("Music", "15"),
CheckBoxFilter("Mystery", "1"),
CheckBoxFilter("News", "34"),
CheckBoxFilter("Reality", "22"),
CheckBoxFilter("Romance", "12"),
CheckBoxFilter("Sci-Fi & Fantasy", "31"),
CheckBoxFilter("Science Fiction", "5"),
CheckBoxFilter("Soap", "35"),
CheckBoxFilter("Talk", "29"),
CheckBoxFilter("Thriller", "16"),
CheckBoxFilter("TV Movie", "8"),
CheckBoxFilter("War", "17"),
CheckBoxFilter("War & Politics", "28"),
CheckBoxFilter("Western", "6")
]),
GroupFilter("CountriesFilter", "Countries", [
CheckBoxFilter("Argentina", "11"),
CheckBoxFilter("Australia", "151"),
CheckBoxFilter("Austria", "4"),
CheckBoxFilter("Belgium", "44"),
CheckBoxFilter("Brazil", "190"),
CheckBoxFilter("Canada", "147"),
CheckBoxFilter("China", "101"),
CheckBoxFilter("Czech Republic", "231"),
CheckBoxFilter("Denmark", "222"),
CheckBoxFilter("Finland", "158"),
CheckBoxFilter("France", "3"),
CheckBoxFilter("Germany", "96"),
CheckBoxFilter("Hong Kong", "93"),
CheckBoxFilter("Hungary", "72"),
CheckBoxFilter("India", "105"),
CheckBoxFilter("Ireland", "196"),
CheckBoxFilter("Israel", "24"),
CheckBoxFilter("Italy", "205"),
CheckBoxFilter("Japan", "173"),
CheckBoxFilter("Luxembourg", "91"),
CheckBoxFilter("Mexico", "40"),
CheckBoxFilter("Netherlands", "172"),
CheckBoxFilter("New Zealand", "122"),
CheckBoxFilter("Norway", "219"),
CheckBoxFilter("Poland", "23"),
CheckBoxFilter("Romania", "170"),
CheckBoxFilter("Russia", "109"),
CheckBoxFilter("South Africa", "200"),
CheckBoxFilter("South Korea", "135"),
CheckBoxFilter("Spain", "62"),
CheckBoxFilter("Sweden", "114"),
CheckBoxFilter("Switzerland", "41"),
CheckBoxFilter("Taiwan", "119"),
CheckBoxFilter("Thailand", "57"),
CheckBoxFilter("United Kingdom", "180"),
CheckBoxFilter("United States of America", "129")
]),
];
}
@override
List<dynamic> getSourcePreferences() {
return [
if (source.name == "DopeBox")
ListPreference(
key: "preferred_domain",
title: "Preferred domain",
summary: "",
valueIndex: 0,
entries: ["dopebox.to", "dopebox.se"],
entryValues: ["https://dopebox.to", "https://dopebox.se"]),
if (source.name == "SFlix")
ListPreference(
key: "preferred_domain",
title: "Preferred domain",
summary: "",
valueIndex: 0,
entries: ["sflix.to", "sflix.se"],
entryValues: ["https://sflix.to", "https://sflix.se"]),
ListPreference(
key: "preferred_quality",
title: "Preferred Quality",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080p", "720p", "480p", "360p"]),
ListPreference(
key: "preferred_subLang",
title: "Preferred sub language",
summary: "",
valueIndex: 1,
entries: [
"Arabic",
"English",
"French",
"German",
"Hungarian",
"Italian",
"Japanese",
"Portuguese",
"Romanian",
"Russian",
"Spanish"
],
entryValues: [
"Arabic",
"English",
"French",
"German",
"Hungarian",
"Italian",
"Japanese",
"Portuguese",
"Romanian",
"Russian",
"Spanish"
]),
ListPreference(
key: "preferred_latest_page",
title: "Preferred latest page",
summary: "",
valueIndex: 0,
entries: ["Movies", "TV Shows"],
entryValues: ["Latest Movies", "Latest TV Shows"]),
ListPreference(
key: "preferred_popular_page",
title: "Preferred popular page",
summary: "",
valueIndex: 0,
entries: ["Movies", "TV Shows"],
entryValues: ["movie", "tv-show"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
List<MTrack> sortSubs(List<MTrack> subs, int sourceId) {
String lang = getPreferenceValue(sourceId, "preferred_subLang");
subs.sort((MTrack a, MTrack b) {
int langMatchA = 0;
if (a.label.toLowerCase().contains(lang.toLowerCase())) {
langMatchA = 1;
}
int langMatchB = 0;
if (b.label.toLowerCase().contains(lang.toLowerCase())) {
langMatchB = 1;
}
return langMatchB - langMatchA;
});
return subs;
}
String ll(String url) {
if (url.contains("?")) {
return "&";
}
return "?";
}
}
DopeFlix main(MSource source) {
return DopeFlix(source: source);
}

View file

@ -0,0 +1,19 @@
import '../../../../model/source.dart';
import 'src/dopebox/dopebox.dart';
import 'src/sflix/sflix.dart';
const _dopeflixVersion = "0.0.55";
const _dopeflixSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/dopeflix/dopeflix.dart";
List<Source> get dopeflixSourcesList => _dopeflixSourcesList;
List<Source> _dopeflixSourcesList = [
//DopeBox (EN)
dopeboxSource,
//SFlix (EN)
sflixSource,
]
.map((e) => e
..sourceCodeUrl = _dopeflixSourceCodeUrl
..version = _dopeflixVersion)
.toList();

View file

@ -0,0 +1,13 @@
import '../../../../../../model/source.dart';
Source get dopeboxSource => _dopeboxSource;
Source _dopeboxSource = Source(
name: "DopeBox",
baseUrl: "https://dopebox.to",
lang: "en",
typeSource: "dopeflix",
itemType: ItemType.anime,
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/dopeflix/src/dopebox/icon.png",
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

View file

@ -0,0 +1,13 @@
import '../../../../../../model/source.dart';
Source get sflixSource => _sflixSource;
Source _sflixSource = Source(
name: "SFlix",
baseUrl: "https://sflix.to",
lang: "en",
typeSource: "dopeflix",
itemType: ItemType.anime,
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/dopeflix/src/sflix/icon.png",
);

View file

@ -0,0 +1,20 @@
import '../../../../model/source.dart';
import 'src/hianime/hianime.dart';
import 'src/kaido/kaido.dart';
const _zorothemeVersion = "0.1.2";
const _zorothemeSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/zorotheme.dart";
List<Source> get zorothemeSourcesList => _zorothemeSourcesList;
List<Source> _zorothemeSourcesList = [
//AniWatch.to (EN)
aniwatchSource,
//Kaido.to (EN)
kaidoSource,
]
.map((e) => e
..sourceCodeUrl = _zorothemeSourceCodeUrl
..appMinVerReq = "0.4.0"
..version = _zorothemeVersion)
.toList();

View file

@ -0,0 +1,14 @@
import '../../../../../../model/source.dart';
Source get aniwatchSource => _aniwatchSource;
Source _aniwatchSource = Source(
id: 814067600,
name: "HiAnime",
baseUrl: "https://hianime.to",
itemType: ItemType.anime,
lang: "en",
typeSource: "zorotheme",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/src/hianime/icon.png",
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -0,0 +1,13 @@
import '../../../../../../model/source.dart';
Source get kaidoSource => _kaidoSource;
Source _kaidoSource = Source(
name: "Kaido.to",
baseUrl: "https://kaido.to",
lang: "en",
itemType: ItemType.anime,
typeSource: "zorotheme",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/src/kaido/icon.png",
);

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,396 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AnimeWorldIndia extends MProvider {
AnimeWorldIndia({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/advanced-search/page/$page/?s_lang=${source.lang}&s_orderby=viewed")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/advanced-search/page/$page/?s_lang=${source.lang}&s_orderby=update")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url =
"${source.baseUrl}/advanced-search/page/$page/?s_keyword=$query&s_lang=${source.lang}";
for (var filter in filters) {
if (filter.type == "TypeFilter") {
final type = filter.values[filter.state].value;
url += "${ll(url)}s_type=$type";
} else if (filter.type == "StatusFilter") {
final status = filter.values[filter.state].value;
url += "${ll(url)}s_status=$status";
} else if (filter.type == "StyleFilter") {
final style = filter.values[filter.state].value;
url += "${ll(url)}s_sub_type=$style";
} else if (filter.type == "YearFilter") {
final year = filter.values[filter.state].value;
url += "${ll(url)}s_year=$year";
} else if (filter.type == "SortFilter") {
final sort = filter.values[filter.state].value;
url += "${ll(url)}s_orderby=$sort";
} else if (filter.type == "GenresFilter") {
final genre = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}s_genre=";
if (genre.isNotEmpty) {
for (var st in genre) {
String value = st.value;
url += value.toLowerCase().replaceAll(" ", "-");
if (genre.length > 1) {
url += "%2C";
}
}
if (genre.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
}
}
final res = (await client.get(Uri.parse(url))).body;
return parseAnimeList(res);
}
@override
Future<MManga> getDetail(String url) async {
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final document = parseHtml(res);
final isMovie =
document.xpath('//li/a[contains(text(),"Movie")]/text()').isNotEmpty;
if (isMovie) {
anime.status = MStatus.completed;
} else {
final eps = xpath(
res, '//ul/li/a[contains(@href,"${source.baseUrl}/watch")]/text()');
if (eps.isNotEmpty) {
final epParts = eps.first
.substring(3)
.replaceAll(" ", "")
.replaceAll("\n", "")
.split('/');
if (epParts.length == 2) {
if (epParts[0].compareTo(epParts[1]) == 0) {
anime.status = MStatus.completed;
} else {
anime.status = MStatus.ongoing;
}
}
}
}
anime.description = document.selectFirst("div[data-synopsis]")?.text ?? "";
anime.author = document
.xpath('//li[contains(text(),"Producers:")]/span/a/text()')
.join(', ');
anime.genre = document.xpath(
'//span[@class="leading-6"]/a[contains(@class,"border-opacity-30")]/text()');
final seasonsJson = json.decode(substringBeforeLast(
substringBefore(
substringAfter(res, "var season_list = "), "var season_label ="),
";")) as List<Map<String, dynamic>>;
bool isSingleSeason = seasonsJson.length == 1;
List<MChapter>? episodesList = [];
for (var i = 0; i < seasonsJson.length; i++) {
final seasonJson = seasonsJson[i];
final seasonName = isSingleSeason ? "" : "Season ${i + 1}";
final episodesJson =
(seasonJson["episodes"]["all"] as List<Map<String, dynamic>>)
.reversed
.toList();
for (var j = 0; j < episodesJson.length; j++) {
final episodeJson = episodesJson[j];
final episodeTitle = episodeJson["metadata"]["title"] ?? "";
String episodeName = "";
if (isMovie) {
episodeName = "Movie";
} else {
if (seasonName.isNotEmpty) {
episodeName = "$seasonName - ";
}
episodeName += "Episode ${j + 1} ";
if (episodeTitle.isNotEmpty) {
episodeName += "- $episodeTitle";
}
}
MChapter episode = MChapter();
episode.name = episodeName;
episode.dateUpload =
"${int.parse(episodeJson["metadata"]["released"] ?? "0") * 1000}";
episode.url = "/wp-json/kiranime/v1/episode?id=${episodeJson["id"]}";
episodesList.add(episode);
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body;
var resJson = substringBefore(
substringAfterLast(res, "\"players\":"), ",\"noplayer\":");
var streams = (json.decode(resJson) as List<Map<String, dynamic>>)
.where((e) =>
(e["type"] == "stream" ? true : false) &&
(e["url"] as String).isNotEmpty)
.toList()
.where((e) => language(source.lang).isEmpty ||
language(source.lang) == e["language"]
? true
: false)
.toList();
List<MVideo> videos = [];
for (var stream in streams) {
String videoUrl = stream["url"];
final language = stream["language"];
final video = await mystreamExtractor(videoUrl, language);
videos.addAll(video);
}
return sortVideos(videos, source.id);
}
MPages parseAnimeList(String res) {
List<MManga> animeList = [];
final document = parseHtml(res);
for (var element in document.select("div.col-span-1")) {
MManga anime = MManga();
anime.name =
element.selectFirst("div.font-medium.line-clamp-2.mb-3").text;
anime.link = element.selectFirst("a").getHref;
anime.imageUrl =
"${source.baseUrl}${getUrlWithoutDomain(element.selectFirst("img").getSrc)}";
animeList.add(anime);
}
final hasNextPage = xpath(res,
'//li/span[@class="page-numbers current"]/parent::li//following-sibling::li/a/@href')
.isNotEmpty;
return MPages(animeList, hasNextPage);
}
String language(String lang) {
final languages = {
"all": "",
"bn": "bengali",
"en": "english",
"hi": "hindi",
"ja": "japanese",
"ml": "malayalam",
"mr": "marathi",
"ta": "tamil",
"te": "telugu"
};
return languages[lang] ?? "";
}
Future<List<MVideo>> mystreamExtractor(String url, String language) async {
List<MVideo> videos = [];
final res = (await client.get(Uri.parse(url))).body;
final streamCode = substringBefore(
substringAfter(substringAfter(res, "sniff("), ", \""), '"');
final streamUrl =
"${substringBefore(url, "/watch")}/m3u8/$streamCode/master.txt?s=1&cache=1";
final masterPlaylistRes = (await client.get(Uri.parse(streamUrl))).body;
List<MTrack> audios = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-MEDIA:TYPE=AUDIO")
.split("#EXT-X-MEDIA:TYPE=AUDIO")) {
final line =
substringBefore(substringAfter(it, "#EXT-X-MEDIA:TYPE=AUDIO"), "\n");
final audioUrl = substringBefore(substringAfter(line, "URI=\""), "\"");
MTrack audio = MTrack();
audio
..label = substringBefore(substringAfter(line, "NAME=\""), "\"")
..file = audioUrl;
audios.add(audio);
}
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "[$language] MyStream - $quality"
..audios = audios;
videos.add(video);
}
return videos;
}
@override
List<dynamic> getFilterList() {
return [
SelectFilter("TypeFilter", "Type", 0, [
SelectFilterOption("Any", "all"),
SelectFilterOption("TV", "tv"),
SelectFilterOption("Movie", "movies"),
]),
SelectFilter("StatusFilter", "Status", 0, [
SelectFilterOption("Any", "all"),
SelectFilterOption("Currently Airing", "airing"),
SelectFilterOption("Finished Airing", "completed"),
]),
SelectFilter("StyleFilter", "Style", 0, [
SelectFilterOption("Any", "all"),
SelectFilterOption("Anime", "anime"),
SelectFilterOption("Cartoon", "cartoon"),
]),
SelectFilter("YearFilter", "Year", 0, [
SelectFilterOption("Any", "all"),
SelectFilterOption("2024", "2024"),
SelectFilterOption("2023", "2023"),
SelectFilterOption("2022", "2022"),
SelectFilterOption("2021", "2021"),
SelectFilterOption("2020", "2020"),
SelectFilterOption("2019", "2019"),
SelectFilterOption("2018", "2018"),
SelectFilterOption("2017", "2017"),
SelectFilterOption("2016", "2016"),
SelectFilterOption("2015", "2015"),
SelectFilterOption("2014", "2014"),
SelectFilterOption("2013", "2013"),
SelectFilterOption("2012", "2012"),
SelectFilterOption("2011", "2011"),
SelectFilterOption("2010", "2010"),
SelectFilterOption("2009", "2009"),
SelectFilterOption("2008", "2008"),
SelectFilterOption("2007", "2007"),
SelectFilterOption("2006", "2006"),
SelectFilterOption("2005", "2005"),
SelectFilterOption("2004", "2004"),
SelectFilterOption("2003", "2003"),
SelectFilterOption("2002", "2002"),
SelectFilterOption("2001", "2001"),
SelectFilterOption("2000", "2000"),
SelectFilterOption("1999", "1999"),
SelectFilterOption("1998", "1998"),
SelectFilterOption("1997", "1997"),
SelectFilterOption("1996", "1996"),
SelectFilterOption("1995", "1995"),
SelectFilterOption("1994", "1994"),
SelectFilterOption("1993", "1993"),
SelectFilterOption("1992", "1992"),
SelectFilterOption("1991", "1991"),
SelectFilterOption("1990", "1990")
]),
SelectFilter("SortFilter", "Sort", 0, [
SelectFilterOption("Default", "default"),
SelectFilterOption("Ascending", "title_a_z"),
SelectFilterOption("Descending", "title_z_a"),
SelectFilterOption("Updated", "update"),
SelectFilterOption("Published", "date"),
SelectFilterOption("Most Viewed", "viewed"),
SelectFilterOption("Favourite", "favorite"),
]),
GroupFilter("GenresFilter", "Genres", [
CheckBoxFilter("Action", "Action"),
CheckBoxFilter("Adult Cast", "Adult Cast"),
CheckBoxFilter("Adventure", "Adventure"),
CheckBoxFilter("Animation", "Animation"),
CheckBoxFilter("Comedy", "Comedy"),
CheckBoxFilter("Detective", "Detective"),
CheckBoxFilter("Drama", "Drama"),
CheckBoxFilter("Ecchi", "Ecchi"),
CheckBoxFilter("Family", "Family"),
CheckBoxFilter("Fantasy", "Fantasy"),
CheckBoxFilter("Isekai", "Isekai"),
CheckBoxFilter("Kids", "Kids"),
CheckBoxFilter("Martial Arts", "Martial Arts"),
CheckBoxFilter("Mecha", "Mecha"),
CheckBoxFilter("Military", "Military"),
CheckBoxFilter("Mystery", "Mystery"),
CheckBoxFilter("Otaku Culture", "Otaku Culture"),
CheckBoxFilter("Reality", "Reality"),
CheckBoxFilter("Romance", "Romance"),
CheckBoxFilter("School", "School"),
CheckBoxFilter("Sci-Fi", "Sci-Fi"),
CheckBoxFilter("Seinen", "Seinen"),
CheckBoxFilter("Shounen", "Shounen"),
CheckBoxFilter("Slice of Life", "Slice of Life"),
CheckBoxFilter("Sports", "Sports"),
CheckBoxFilter("Super Power", "Super Power"),
CheckBoxFilter("SuperHero", "SuperHero"),
CheckBoxFilter("Supernatural", "Supernatural"),
CheckBoxFilter("TV Movie", "TV Movie"),
]),
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Preferred Quality",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p", "240p"],
entryValues: ["1080", "720", "480", "360", "240"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
String ll(String url) {
if (url.contains("?")) {
return "&";
}
return "?";
}
}
AnimeWorldIndia main(MSource source) {
return AnimeWorldIndia(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -0,0 +1,33 @@
import '../../../../../model/source.dart';
const _animeworldindiaVersion = "0.0.3";
const _animeworldindiaSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/all/animeworldindia/animeworldindia.dart";
String _iconUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/all/animeworldindia/icon.png";
List<String> _languages = [
"all",
"en",
"bn",
"hi",
"ja",
"ml",
"mr",
"ta",
"te",
];
List<Source> get animeworldindiaSourcesList => _animeworldindiaSourcesList;
List<Source> _animeworldindiaSourcesList = _languages
.map((e) => Source(
name: 'AnimeWorld India',
baseUrl: "https://anime-world.in",
lang: e,
typeSource: "multiple",
iconUrl: _iconUrl,
version: _animeworldindiaVersion,
itemType: ItemType.anime,
sourceCodeUrl: _animeworldindiaSourceCodeUrl))
.toList();

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -0,0 +1,138 @@
import 'package:mangayomi/bridge_lib.dart';
class Nyaa extends MProvider {
Nyaa({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/?f=0&c=${getPreferenceValue(source.id, "preferred_categorie_page")}&q=&s=downloads&o=desc&p=$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/?f=0&c=${getPreferenceValue(source.id, "preferred_categorie_page")}&q=$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "";
url =
"${source.baseUrl}/?f=0&c=${getPreferenceValue(source.id, "preferred_categorie_page")}&q=${query.replaceAll(" ", "+")}&p=$page";
for (var filter in filters) {
if (filter.type == "SortFilter") {
url += "${ll(url)}s=${filter.values[filter.state.index].value}";
final asc = filter.state.ascending ? "&o=asc" : "&o=desc";
url += "${ll(url)}$asc";
}
}
final res = (await client.get(Uri.parse(url))).body;
return parseAnimeList(res);
}
@override
Future<MManga> getDetail(String url) async {
MManga anime = MManga();
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
String description =
(document.xpathFirst('//div[@class="panel-body"]/text()') ?? "")
.replaceAll("\n", "");
description +=
"\n\n${(document.xpathFirst('//div[@class="panel panel-default"]/text()') ?? "").trim().replaceAll("\n", "")}";
anime.description = description;
MChapter ep = MChapter();
ep.name = "Torrent";
ep.url =
"${source.baseUrl}/download/${substringAfterLast(url, '/')}.torrent";
anime.chapters = [ep];
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
var video = MVideo();
video
..url = url
..originalUrl = url
..quality = "";
return [video];
}
@override
List<dynamic> getFilterList() {
return [
SortFilter("SortFilter", "Sort by", SortState(0, true), [
SelectFilterOption("None", ""),
SelectFilterOption("Size", "size"),
SelectFilterOption("Date", "id"),
SelectFilterOption("Seeders", "seeders"),
SelectFilterOption("Leechers", "leechers"),
SelectFilterOption("Download", "downloads")
])
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_categorie_page",
title: "Preferred categorie page",
summary: "",
valueIndex: 0,
entries: ["Anime", "Live Action"],
entryValues: ["1_0", "4_0"]),
];
}
MPages parseAnimeList(String res) {
List<MManga> animeList = [];
final document = parseHtml(res);
final values = document
.select("body > div > div.table-responsive > table > tbody > tr");
for (var value in values) {
MManga anime = MManga();
anime.imageUrl =
"${source.baseUrl}${getUrlWithoutDomain(value.selectFirst("td:nth-child(1) > a > img").getSrc)}";
MElement firstElement = value
.select("td > a")
.where((MElement e) =>
e.outerHtml.contains("/view/") &&
!e.outerHtml.contains("#comments"))
.toList()
.first;
anime.link =
"${source.baseUrl}${getUrlWithoutDomain(firstElement.getHref)}";
anime.name = firstElement.attr("title");
animeList.add(anime);
}
final hasNextPage =
xpath(res, '//ul[@class="pagination"]/li[contains(text(),"»")]/a/@href')
.isNotEmpty;
return MPages(animeList, hasNextPage);
}
String ll(String url) {
if (url.contains("?")) {
return "&";
}
return "?";
}
}
Nyaa main(MSource source) {
return Nyaa(source: source);
}

View file

@ -0,0 +1,19 @@
import '../../../../../model/source.dart';
const _nyaaVersion = "0.0.25";
const _nyaaSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/all/nyaa/nyaa.dart";
String _iconUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/all/nyaa/icon.png";
Source get nyaaSource => _nyaaSource;
Source _nyaaSource = Source(
name: 'Nyaa',
baseUrl: "https://nyaa.si",
lang: "all",
typeSource: "torrent",
iconUrl: _iconUrl,
version: _nyaaVersion,
itemType: ItemType.anime,
sourceCodeUrl: _nyaaSourceCodeUrl);

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View file

@ -0,0 +1,223 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class OkAnime extends MProvider {
OkAnime({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(source.baseUrl))).body;
List<MManga> animeList = [];
String path =
'//div[@class="section" and contains(text(),"افضل انميات")]/div[@class="section-content"]/div/div/div[contains(@class,"anime-card")]';
final urls = xpath(res, '$path/div[@class="anime-title")]/h4/a/@href');
final names = xpath(res, '$path/div[@class="anime-title")]/h4/a/text()');
final images = xpath(res, '$path/div[@class="anime-image")]/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client
.get(Uri.parse("${source.baseUrl}/espisode-list?page=$page")))
.body;
List<MManga> animeList = [];
String path = '//*[contains(@class,"anime-card")]';
final urls = xpath(res, '$path/div[@class="anime-title")]/h4/a/@href');
final names = xpath(res, '$path/div[@class="anime-title")]/h4/a/text()');
final images = xpath(res, '$path/div[@class="episode-image")]/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage =
xpath(res, '//li[@class="page-item"]/a[@rel="next"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
String url = "${source.baseUrl}/search/?s=$query";
if (page > 1) {
url += "&page=$page";
}
final res = (await client.get(Uri.parse(url))).body;
List<MManga> animeList = [];
String path = '//*[contains(@class,"anime-card")]';
final urls = xpath(res, '$path/div[@class="anime-title")]/h4/a/@href');
final names = xpath(res, '$path/div[@class="anime-title")]/h4/a/text()');
final images = xpath(res, '$path/div[@class="anime-image")]/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage =
xpath(res, '//li[@class="page-item"]/a[@rel="next"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"يعرض الان": 0, "مكتمل": 1}
];
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final status = xpath(res,
'//*[@class="full-list-info" and contains(text(),"حالة الأنمي")]/small/a/text()');
if (status.isNotEmpty) {
anime.status = parseStatus(status.first, statusList);
}
anime.description = xpath(res, '//*[@class="review-content"]/text()').first;
anime.genre = xpath(res, '//*[@class="review-author-info"]/a/text()');
final epUrls = xpath(res,
'//*[contains(@class,"anime-card")]/div[@class="anime-title")]/h5/a/@href')
.reversed
.toList();
final names = xpath(res,
'//*[contains(@class,"anime-card")]/div[@class="anime-title")]/h5/a/text()')
.reversed
.toList();
List<MChapter>? episodesList = [];
for (var i = 0; i < epUrls.length; i++) {
MChapter episode = MChapter();
episode.name = names[i];
episode.url = epUrls[i];
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final urls = xpath(res, '//*[@id="streamlinks"]/a/@data-src');
final qualities = xpath(res, '//*[@id="streamlinks"]/a/span/text()');
final hosterSelection = preferenceHosterSelection(source.id);
List<MVideo> videos = [];
for (var i = 0; i < urls.length; i++) {
final url = urls[i];
final quality = getQuality(qualities[i]);
List<MVideo> a = [];
if (url.contains("https://doo") && hosterSelection.contains("Dood")) {
a = await doodExtractor(url, "DoodStream - $quality");
} else if (url.contains("mp4upload") &&
hosterSelection.contains("Mp4upload")) {
a = await mp4UploadExtractor(url, null, "", "");
} else if (url.contains("ok.ru") && hosterSelection.contains("Okru")) {
a = await okruExtractor(url);
} else if (url.contains("voe.sx") && hosterSelection.contains("Voe")) {
a = await voeExtractor(url, "VoeSX $quality");
} else if (containsVidBom(url) && hosterSelection.contains("VidBom")) {
a = await vidBomExtractor(url);
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Preferred Quality",
summary: "",
valueIndex: 1,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"]),
MultiSelectListPreference(
key: "hoster_selection",
title: "Enable/Disable Hosts",
summary: "",
entries: ["Dood", "Voe", "Mp4upload", "VidBom", "Okru"],
entryValues: ["Dood", "Voe", "Mp4upload", "VidBom", "Okru"],
values: ["Dood", "Voe", "Mp4upload", "VidBom", "Okru"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
List<String> preferenceHosterSelection(int sourceId) {
return getPreferenceValue(sourceId, "hoster_selection");
}
String getQuality(String quality) {
quality = quality.replaceAll(" ", "");
if (quality == "HD") {
return "720p";
} else if (quality == "FHD") {
return "1080p";
} else if (quality == "SD") {
return "480p";
}
return "240p";
}
bool containsVidBom(String url) {
url = url;
final list = ["vidbam", "vadbam", "vidbom", "vidbm"];
for (var n in list) {
if (url.contains(n)) {
return true;
}
}
return false;
}
}
OkAnime main(MSource source) {
return OkAnime(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get okanimeSource => _okanimeSource;
const _okanimeVersion = "0.0.55";
const _okanimeSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/ar/okanime/okanime.dart";
Source _okanimeSource = Source(
name: "Okanime",
baseUrl: "https://www.okanime.xyz",
lang: "ar",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/ar/okanime/icon.png",
sourceCodeUrl: _okanimeSourceCodeUrl,
version: _okanimeVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,235 @@
import 'package:mangayomi/bridge_lib.dart';
class AnimeToast extends MProvider {
AnimeToast({required this.source});
MSource source;
final Client client = Client(source);
@override
bool get supportsLatest => false;
@override
String get baseUrl => source.baseUrl;
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(baseUrl))).body;
final document = parseHtml(res);
final elements = document.select("div.row div.col-md-4 div.video-item");
List<MManga> animeList = [];
for (var element in elements) {
MManga anime = MManga();
anime.name = element.selectFirst("div.item-thumbnail a").attr("title");
anime.link = getUrlWithoutDomain(
element.selectFirst("div.item-thumbnail a").attr("href"));
anime.imageUrl =
element.selectFirst("div.item-thumbnail a img").attr("src");
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res =
(await client.get(Uri.parse("$baseUrl/page/$page/?s=$query"))).body;
final document = parseHtml(res);
final elements = document.select("div.item-thumbnail a[href]");
List<MManga> animeList = [];
for (var element in elements) {
MManga anime = MManga();
anime.name = element.attr("title");
anime.link = getUrlWithoutDomain(element.attr("href"));
anime.imageUrl = element.selectFirst("a img").attr("src");
animeList.add(anime);
}
return MPages(
animeList, document.selectFirst("li.next a")?.attr("href") != null);
}
@override
Future<MManga> getDetail(String url) async {
MManga anime = MManga();
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
anime.imageUrl = document.selectFirst(".item-content p img").attr("src");
anime.genre =
(document.xpathFirst('//p[contains(text(),"Genre:")]/text()') ?? "")
.replaceAll("Genre:", "")
.split(",");
anime.description = document.selectFirst("div.item-content div + p").text;
final categoryTag = document.xpath('//*[@rel="category tag"]/text()');
if (categoryTag.isNotEmpty) {
if (categoryTag.contains("Airing")) {
anime.status = MStatus.ongoing;
} else {
anime.status = MStatus.completed;
}
}
List<MChapter>? episodesList = [];
if (categoryTag.contains("Serie")) {
List<MElement> elements = [];
if (document.selectFirst("#multi_link_tab0")?.attr("id") != null) {
elements = document.select("#multi_link_tab0");
} else {
elements = document.select("#multi_link_tab1");
}
for (var element in elements) {
final episodeElement = element.selectFirst("a");
final epT = episodeElement.text;
if (epT.contains(":") || epT.contains("-")) {
final url = episodeElement.attr("href");
final document = parseHtml((await client.get(Uri.parse(url))).body);
final nUrl = document.selectFirst("#player-embed a").attr("href");
final nDoc = parseHtml((await client.get(Uri.parse(nUrl))).body);
final nEpEl = nDoc.select("div.tab-pane a");
for (var epElement in nEpEl) {
MChapter ep = MChapter();
ep.name = epElement.text;
ep.url = getUrlWithoutDomain(epElement.attr("href"));
episodesList.add(ep);
}
} else {
final episodeElements = element.select("a");
for (var epElement in episodeElements) {
MChapter ep = MChapter();
ep.name = epElement.text;
ep.url = getUrlWithoutDomain(epElement.attr("href"));
episodesList.add(ep);
}
}
}
} else {
MChapter ep = MChapter();
ep.name = document.selectFirst("h1.light-title")?.text ?? "Film";
ep.url = getUrlWithoutDomain(
document.selectFirst("link[rel=canonical]").attr("href"));
episodesList.add(ep);
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
List<String> preferenceHosterSelection() {
return getPreferenceValue(source.id, "hoster_selection");
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
final fEp = document.selectFirst("div.tab-pane");
List<MVideo> videos = [];
List<MElement> ep = [];
int epcu = 100;
if (fEp.text.contains(":") || fEp.text.contains("-")) {
final tx = document.select("div.tab-pane");
for (var e in tx) {
final sUrl = e.selectFirst("a").attr("href");
final doc = parseHtml((await client.get(Uri.parse(sUrl))).body);
final nUrl = doc.selectFirst("#player-embed a").attr("href");
final nDoc = parseHtml((await client.get(Uri.parse(nUrl))).body);
epcu = int.tryParse(substringAfter(
document.selectFirst("div.tab-pane a.current-link")?.text ?? "",
"Ep.")) ??
100;
ep = nDoc.select("div.tab-pane a");
}
} else {
epcu = int.tryParse(substringAfter(
document.selectFirst("div.tab-pane a.current-link")?.text ?? "",
"Ep.")) ??
100;
ep = document.select("div.tab-pane a");
}
final hosterSelection = preferenceHosterSelection();
for (var e in ep) {
if (int.tryParse(substringAfter(e.text, "Ep.")) == epcu) {
final epUrl = e.attr("href");
final newdoc = parseHtml((await client.get(Uri.parse(epUrl))).body);
final elements = newdoc.select("#player-embed");
for (var element in elements) {
final link = element.selectFirst("a").getHref ?? "";
if (link.contains("https://voe.sx") &&
hosterSelection.contains("voe")) {
videos.addAll(await voeExtractor(link, "Voe"));
}
}
for (var element in elements) {
List<MVideo> a = [];
final link = element.selectFirst("iframe").getSrc ?? "";
if ((link.contains("https://dood") ||
link.contains("https://ds2play") ||
link.contains("https://d0")) &&
hosterSelection.contains("dood")) {
a = await doodExtractor(link, "DoodStream");
} else if (link.contains("filemoon") &&
hosterSelection.contains("filemoon")) {
a = await filemoonExtractor(link, "", "");
} else if (link.contains("mp4upload") &&
hosterSelection.contains("mp4upload")) {
a = await mp4UploadExtractor(url, null, "", "");
}
videos.addAll(a);
}
}
}
return sortVideos(videos);
}
List<MVideo> sortVideos(List<MVideo> videos) {
String server = getPreferenceValue(source.id, "preferred_hoster");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.toLowerCase().contains(server)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.toLowerCase().contains(server)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_hoster",
title: "Standard-Hoster",
summary: "",
valueIndex: 0,
entries: ["Voe", "DoodStream", "Filemoon", "Mp4upload"],
entryValues: ["voe", "doodStream", "filemoon", "mp4upload"]),
MultiSelectListPreference(
key: "hoster_selection",
title: "Hoster auswählen",
summary: "",
entries: ["Voe", "DoodStream", "Filemoon", "Mp4upload"],
entryValues: ["voe", "dood", "filemoon", "mp4upload"],
values: ["voe", "dood", "filemoon", "mp4upload"]),
];
}
}
AnimeToast main(MSource source) {
return AnimeToast(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get animetoast => _animetoast;
const _animetoastVersion = "0.0.2";
const _animetoastCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/de/animetoast/animetoast.dart";
Source _animetoast = Source(
name: "AnimeToast",
baseUrl: "https://animetoast.cc",
lang: "de",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/de/animetoast/icon.png",
sourceCodeUrl: _animetoastCodeUrl,
version: _animetoastVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,353 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
import 'dart:math';
class AnimePahe extends MProvider {
AnimePahe(this.source);
final MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "preferred_domain");
@override
Map<String, String> get headers => {'cookie': '__ddg1_=;__ddg2_=;'};
@override
Future<MPages> getPopular(int page) async {
return await getLatestUpdates(page);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse("$baseUrl/api?m=airing&page=$page"),
headers: headers))
.body;
final jsonResult = json.decode(res);
final hasNextPage = jsonResult["current_page"] < jsonResult["last_page"];
List<MManga> animeList = [];
for (var item in jsonResult["data"]) {
MManga anime = MManga();
anime.name = item["anime_title"];
anime.imageUrl = item["snapshot"];
anime.link = "/anime/?anime_id=${item["id"]}&name=${item["anime_title"]}";
anime.artist = item["fansub"];
animeList.add(anime);
}
return MPages(animeList, hasNextPage);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client.get(
Uri.parse("$baseUrl/api?m=search&l=8&q=$query"),
headers: headers))
.body;
final jsonResult = json.decode(res);
List<MManga> animeList = [];
for (var item in jsonResult["data"]) {
MManga anime = MManga();
anime.name = item["title"];
anime.imageUrl = item["poster"];
anime.link = "/anime/?anime_id=${item["id"]}&name=${item["title"]}";
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"Currently Airing": 0, "Finished Airing": 1}
];
MManga anime = MManga();
final id = substringBefore(substringAfterLast(url, "?anime_id="), "&name=");
final name = substringAfterLast(url, "&name=");
final session = await getSession(name, id);
final res = (await client.get(
Uri.parse("$baseUrl/anime/$session?anime_id=$id"),
headers: headers))
.body;
final document = parseHtml(res);
final status =
(document.xpathFirst('//div/p[contains(text(),"Status:")]/text()') ??
"")
.replaceAll("Status:\n", "")
.trim();
anime.status = parseStatus(status, statusList);
anime.name = document.selectFirst("div.title-wrapper > h1 > span").text;
anime.author =
(document.xpathFirst('//div/p[contains(text(),"Studio:")]/text()') ??
"")
.replaceAll("Studio:\n", "")
.trim();
anime.imageUrl = document.selectFirst("div.anime-poster a").attr("href");
anime.genre =
xpath(res, '//*[contains(@class,"anime-genre")]/ul/li/text()');
final synonyms =
(document.xpathFirst('//div/p[contains(text(),"Synonyms:")]/text()') ??
"")
.replaceAll("Synonyms:\n", "")
.trim();
anime.description = document.selectFirst("div.anime-summary").text;
if (synonyms.isNotEmpty) {
anime.description += "\n\n$synonyms";
}
final epUrl = "$baseUrl/api?m=release&id=$session&sort=episode_desc&page=1";
final resEp = (await client.get(Uri.parse(epUrl), headers: headers)).body;
final episodes = await recursivePages(epUrl, resEp, session);
anime.chapters = episodes;
return anime;
}
Future<List<MChapter>> recursivePages(
String url, String res, String session) async {
final jsonResult = json.decode(res);
final page = jsonResult["current_page"];
final hasNextPage = page < jsonResult["last_page"];
List<MManga> animeList = [];
for (var item in jsonResult["data"]) {
MChapter episode = MChapter();
episode.name = "Episode ${item["episode"]}";
episode.url = "/play/$session/${item["session"]}";
episode.dateUpload =
parseDates([item["created_at"]], "yyyy-MM-dd HH:mm:ss", "en")[0];
animeList.add(episode);
}
if (hasNextPage) {
final newUrl = "${substringBeforeLast(url, "&page=")}&page=${page + 1}";
final newRes =
(await client.get(Uri.parse(newUrl), headers: headers)).body;
animeList.addAll(await recursivePages(newUrl, newRes, session));
}
return animeList;
}
Future<String> getSession(String title, String animeId) async {
final res = (await client.get(Uri.parse("$baseUrl/api?m=search&q=$title"),
headers: headers))
.body;
return substringBefore(
substringAfter(
substringAfter(res, "\"id\":$animeId"), "\"session\":\""),
"\"");
}
@override
Future<List<MVideo>> getVideoList(String url) async {
//by default we use rhttp package but it does not support `followRedirects`
//so setting `useDartHttpClient` to true allows us to use a Dart http package that supports `followRedirects`
final client = Client(source, json.encode({"useDartHttpClient": true}));
final res = (await client.get(Uri.parse("$baseUrl$url"), headers: headers));
final document = parseHtml(res.body);
final downloadLinks = document.select("div#pickDownload > a");
final buttons = document.select("div#resolutionMenu > button");
List<MVideo> videos = [];
for (var i = 0; i < buttons.length; i++) {
final btn = buttons[i];
final audio = btn.attr("data-audio"); // Get audio type (jpn/eng). Japanese or Dubbed.
final kwikLink = btn.attr("data-src");
final quality = btn.text;
final paheWinLink = downloadLinks[i].attr("href");
if (getPreferenceValue(source.id, "preffered_link_type")) {
final noRedirectClient = Client(source,
json.encode({"followRedirects": false, "useDartHttpClient": true}));
final kwikHeaders =
(await noRedirectClient.get(Uri.parse("${paheWinLink}/i"))).headers;
final kwikUrl =
"https://${substringAfterLast(getMapValue(json.encode(kwikHeaders), "location"), "https://")}";
final reskwik = (await client
.get(Uri.parse(kwikUrl), headers: {"Referer": "https://kwik.cx/"}));
final matches = RegExp(r'\("(\S+)",\d+,"(\S+)",(\d+),(\d+)')
.firstMatch(reskwik.body);
final token = decrypt(matches!.group(1)!, matches.group(2)!,
matches.group(3)!, int.parse(matches.group(4)!));
final url = RegExp(r'action="([^"]+)"').firstMatch(token)!.group(1)!;
final tok = RegExp(r'value="([^"]+)"').firstMatch(token)!.group(1)!;
var code = 419;
var tries = 0;
String location = "";
while (code != 302 && tries < 20) {
String cookie =
getMapValue(json.encode(res.request.headers), "cookie");
cookie +=
"; ${getMapValue(json.encode(reskwik.headers), "set-cookie").replaceAll("path=/;", "")}";
final resNo = await Client(
source,
json.encode(
{"followRedirects": false, "useDartHttpClient": true}))
.post(Uri.parse(url), headers: {
"referer": reskwik.request.url.toString(),
"cookie": cookie,
"user-agent":
getMapValue(json.encode(res.request.headers), "user-agent")
}, body: {
"_token": tok
});
code = resNo.statusCode;
tries++;
location = getMapValue(json.encode(resNo.headers), "location");
}
if (tries > 19) {
throw ("Failed to extract the stream uri from kwik.");
}
MVideo video = MVideo();
video
..url = location
..originalUrl = location
..quality = quality;
videos.add(video);
} else {
final ress = (await client.get(Uri.parse(kwikLink),
headers: {"Referer": "https://animepahe.com"}));
final script = substringAfterLast(
xpath(ress.body,
'//script[contains(text(),"eval(function")]/text()')
.first,
"eval(function(");
final videoUrl = substringBefore(
substringAfter(unpackJsAndCombine("eval(function($script"),
"const source=\\'"),
"\\';");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = quality
..headers = {"referer": "https://kwik.cx"};
videos.add(video);
}
}
return sortVideos(videos);
}
String getString(String ctn, int sep) {
int b = 10;
String cm =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/";
final n = cm.substring(0, b);
double mx = 0;
for (var index = 0; index < ctn.length; index++) {
mx += (int.tryParse(ctn[ctn.length - index - 1], radix: 10) ?? 0.0)
.toInt() *
(pow(sep, index));
}
var m = '';
while (mx > 0) {
m = n[(mx % b).toInt()] + m;
mx = (mx - (mx % b)) / b;
}
return m.isNotEmpty ? m : '0';
}
String decrypt(String fS, String key, String v1, int v2) {
var html = "";
var i = 0;
final ld = int.parse(v1);
while (i < fS.length) {
var s = "";
while (fS[i] != key[v2]) {
s += fS[i];
i++;
}
for (var index = 0; index < key.length; index++) {
s = s.replaceAll(key[index], index.toString());
}
html += String.fromCharCode(int.parse(getString(s, v2)) - ld);
i++;
}
return html;
}
List<MVideo> sortVideos(List<MVideo> videos) {
String quality = getPreferenceValue(source.id, "preferred_quality");
String preferredAudio = getPreferenceValue(source.id, "preferred_audio"); // get user's audio preference
videos.sort((MVideo a, MVideo b) {
// Prioritize audio first.
// Preferred Audio: Videos with matching preferred audio are ranked highest.
int audioMatchA = a.quality.contains(preferredAudio) ? 1 : 0;
int audioMatchB = b.quality.contains(preferredAudio) ? 1 : 0;
if (audioMatchA != audioMatchB) {
return audioMatchB - audioMatchA;
}
// quality prioritized next
// Preferred Video Quality: If audio matches, videos with preferred video quality are ranked higher.
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_domain",
title: "Preferred domain",
summary: "",
valueIndex: 1,
entries: [
"animepahe.com",
"animepahe.ru",
"animepahe.org"
],
entryValues: [
"https://animepahe.com",
"https://animepahe.ru",
"https://animepahe.org"
]),
SwitchPreferenceCompat(
key: "preffered_link_type",
title: "Use HLS links",
summary: "Enable this if you are having Cloudflare issues.",
value: false),
ListPreference(
key: "preferred_quality",
title: "Preferred Quality",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "360p"],
entryValues: ["1080", "720", "360"]),
ListPreference(
key: "preferred_audio", // Add new preference for audio
title: "Preferred Audio",
summary: "Select your preferred audio language (Japanese or English).",
valueIndex: 0, // Default to Japanese (or whichever you prefer)
entries: ["Japanese", "English"],
entryValues: ["jpn", "eng"]),
];
}
}
AnimePahe main(MSource source) {
return AnimePahe(source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get animepaheSource => _animepaheSource;
const _animepaheVersion = "0.0.5";
const _animepaheSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/animepahe/animepahe.dart";
Source _animepaheSource = Source(
name: "AnimePahe",
baseUrl: "https://www.animepahe.ru",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/animepahe/icon.png",
sourceCodeUrl: _animepaheSourceCodeUrl,
version: _animepaheVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,210 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class DramaCool extends MProvider {
DramaCool({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "overrideBaseUrl");
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl/most-popular-drama?page=$page")))
.body;
final document = parseHtml(res);
return animeFromElement(document.select("ul.list-episode-item li a"),
document.selectFirst("li.next a")?.attr("href") != null);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl/recently-added?page=$page")))
.body;
final document = parseHtml(res);
return animeFromElement(document.select("ul.switch-block a"),
document.selectFirst("li.next a")?.attr("href") != null);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client
.get(Uri.parse("$baseUrl/search?keyword=$query&page=$page")))
.body;
final document = parseHtml(res);
return animeFromElement(document.select("ul.list-episode-item li a"),
document.selectFirst("li.next a")?.attr("href") != null);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"Ongoing": 0, "Completed": 1}
];
url = getUrlWithoutDomain(url);
if (url.contains("-episode-") && url.endsWith(".html")) {
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
url = parseHtml(res).selectFirst("div.category a").attr("href");
}
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
MManga anime = MManga();
anime.description = document
.selectFirst("div.info")
.select("p")
.map((MElement e) {
if (!e.outerHtml.contains("<span")) {
return e.text;
}
return "";
})
.toList()
.join("\n");
final author =
xpath(res, '//p[contains(text(),"Original Network:")]/a/text()');
if (author.isNotEmpty) {
anime.author = author.first;
}
anime.genre = xpath(res, '//p[contains(text(),"Genre:")]/a/text()');
final status = xpath(res, '//p[contains(text(),"Status")]/a/text()');
if (status.isNotEmpty) {
anime.status = parseStatus(status.first, statusList);
}
List<MChapter> episodesList = [];
final episodeListElements = document.select("ul.all-episode li a");
for (var element in episodeListElements) {
var epNum =
substringAfterLast(element.selectFirst("h3").text, "Episode ");
var type = element.selectFirst("span.type")?.text ?? "RAW";
var date = element.selectFirst("span.time")?.text ?? "";
MChapter ep = MChapter();
ep.name = "$type: Episode $epNum".trim();
ep.url = element.getHref;
if (date.isNotEmpty)
ep.dateUpload = parseDates([element.selectFirst("span.time")?.text],
"yyyy-MM-dd HH:mm:ss", "en")
.first;
episodesList.add(ep);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
String iframeUrl = document.selectFirst("iframe")?.getSrc ?? "";
if (iframeUrl.isEmpty) return [];
if (iframeUrl.startsWith("//")) {
iframeUrl = "https:$iframeUrl";
}
var iframeDoc = parseHtml((await client.get(Uri.parse(iframeUrl))).body);
final serverElements = iframeDoc.select("ul.list-server-items li");
List<MVideo> videos = [];
for (var serverElement in serverElements) {
var url = serverElement.attr("data-video");
List<MVideo> a = [];
if (url.contains("dood")) {
a = await doodExtractor(url, "DoodStream");
} else if (url.contains("dwish")) {
a = await streamWishExtractor(url, "StreamWish");
} else if (url.contains("streamtape")) {
a = await streamTapeExtractor(url, "StreamTape");
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
@override
List<dynamic> getSourcePreferences() {
return [
EditTextPreference(
key: "overrideBaseUrl",
title: "Override BaseUrl",
summary: "",
value: "https://dramacool.pa",
dialogTitle: "Override BaseUrl",
dialogMessage: "",
text: "https://dramacool.pa"),
ListPreference(
key: "preferred_quality",
title: "Preferred quality",
summary: "",
valueIndex: 0,
entries: [
"1080p",
"720p",
"480p",
"360p",
"Doodstream",
"StreamTape"
],
entryValues: [
"1080",
"720",
"480",
"360",
"Doodstream",
"StreamTape"
])
];
}
MPages animeFromElement(List<MElement> elements, bool hasNextPage) {
List<MManga> animeList = [];
for (var element in elements) {
MManga anime = MManga();
anime.name = element.selectFirst("h3")?.text ?? "Serie";
anime.imageUrl = (element.selectFirst("img")?.attr("data-original") ?? "")
.replaceAll(" ", "%20") ??
"";
anime.link = element.getHref;
animeList.add(anime);
}
return MPages(animeList, hasNextPage);
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
}
DramaCool main(MSource source) {
return DramaCool(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get dramacoolSource => _dramacoolSource;
const _dramacoolVersion = "0.0.25";
const _dramacoolSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/dramacool/dramacool.dart";
Source _dramacoolSource = Source(
name: "DramaCool",
baseUrl: "https://dramacool.pa",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/dramacool/icon.png",
sourceCodeUrl: _dramacoolSourceCodeUrl,
version: _dramacoolVersion,
itemType: ItemType.anime);

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get gogoanimeSource => _gogoanimeSource;
const _gogoanimeVersion = "0.1.15";
const _gogoanimeSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/gogoanime/gogoanime.dart";
Source _gogoanimeSource = Source(
name: "Gogoanime",
baseUrl: "https://anitaku.to",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/gogoanime/icon.png",
sourceCodeUrl: _gogoanimeSourceCodeUrl,
version: _gogoanimeVersion,
itemType: ItemType.anime);

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -0,0 +1,184 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class KissKh extends MProvider {
KissKh({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/api/DramaList/List?page=$page&type=0&sub=0&country=0&status=0&order=1&pageSize=40")))
.body;
final jsonRes = json.decode(res);
final datas = jsonRes["data"];
List<MManga> animeList = [];
for (var data in datas) {
var anime = MManga();
anime.name = data["title"];
anime.imageUrl = data["thumbnail"] ?? "";
anime.link =
"${source.baseUrl}/api/DramaList/Drama/${data["id"]}?isq=false";
animeList.add(anime);
}
int lastPage = jsonRes["totalCount"];
int pages = jsonRes["page"];
return MPages(animeList, pages < lastPage);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/api/DramaList/List?page=$page&type=0&sub=0&country=0&status=0&order=12&pageSize=40")))
.body;
final jsonRes = json.decode(res);
final datas = jsonRes["data"];
List<MManga> animeList = [];
for (var data in datas) {
var anime = MManga();
anime.name = data["title"];
anime.imageUrl = data["thumbnail"] ?? "";
anime.link =
"${source.baseUrl}/api/DramaList/Drama/${data["id"]}?isq=false";
animeList.add(anime);
}
int lastPage = jsonRes["totalCount"];
int pages = jsonRes["page"];
return MPages(animeList, pages < lastPage);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/api/DramaList/Search?q=$query&type=0")))
.body;
final jsonRes = json.decode(res);
List<MManga> animeList = [];
for (var data in jsonRes) {
var anime = MManga();
anime.name = data["title"];
anime.imageUrl = data["thumbnail"] ?? "";
anime.link =
"${source.baseUrl}/api/DramaList/Drama/${data["id"]}?isq=false";
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"Ongoing": 0, "Completed": 1}
];
final res = (await client.get(Uri.parse(url))).body;
var anime = MManga();
final jsonRes = json.decode(res);
final status = jsonRes["status"] ?? "";
anime.description = jsonRes["description"];
anime.status = parseStatus(status, statusList);
anime.imageUrl = jsonRes["thumbnail"];
var episodes = jsonRes["episodes"];
String type = jsonRes["type"];
final episodesCount = jsonRes["episodesCount"] as int;
final containsAnime = type.contains("Anime");
final containsTVSeries = type.contains("TVSeries");
final containsHollywood = type.contains("Hollywood");
final containsMovie = type.contains("Movie");
List<MChapter>? episodesList = [];
for (var a in episodes) {
MChapter episode = MChapter();
String number = (a["number"] as double).toString().replaceAll(".0", "");
final id = a["id"];
if (containsAnime || containsTVSeries) {
episode.name = "Episode $number";
} else if (containsHollywood && episodesCount == 1 || containsMovie) {
episode.name = "Movie";
} else if (containsHollywood && episodesCount > 1) {
episode.name = "Episode $number";
}
episode.url =
"${source.baseUrl}/api/DramaList/Episode/$id.png?err=false&ts=&time=";
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final id = substringAfter(substringBefore(url, ".png"), "Episode/");
final jsonRes = json.decode(res);
final subRes =
(await client.get(Uri.parse("${source.baseUrl}/api/Sub/$id"))).body;
var jsonSubRes = json.decode(subRes);
List<MTrack> subtitles = [];
for (var sub in jsonSubRes) {
final subUrl = sub["src"] as String;
final label = sub["label"];
if (subUrl.endsWith("txt")) {
var subtitle = await getSubtitle(subUrl, label);
subtitles.add(subtitle);
} else {
var subtitle = MTrack();
subtitle
..label = label
..file = subUrl;
subtitles.add(subtitle);
}
}
final videoUrl = jsonRes["Video"];
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "kisskh"
..subtitles = subtitles
..headers = {
"referer": "https://kisskh.me/",
"origin": "https://kisskh.me"
};
return [video];
}
Future<MTrack> getSubtitle(String subUrl, String subLang) async {
final response = await client.get(Uri.parse(subUrl), headers: {
"referer": "https://kisskh.me/",
"origin": "https://kisskh.me"
});
final subtitleData = response.body;
String decrypted = "\n";
for (String line in subtitleData.split('\n')) {
decrypted += "${decrypt(line.trim())}\n";
}
var subtitle = MTrack();
subtitle
..label = subLang
..file = decrypted;
return subtitle;
}
String decrypt(String data) {
final key = utf8.decode(
[56, 48, 53, 54, 52, 56, 51, 54, 52, 54, 51, 50, 56, 55, 54, 51]);
final iv = utf8.decode(
[54, 56, 53, 50, 54, 49, 50, 51, 55, 48, 49, 56, 53, 50, 55, 51]);
return cryptoHandler(data, iv, key, false);
}
}
KissKh main(MSource source) {
return KissKh(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get kisskhSource => _kisskhSource;
const _kisskhVersion = "0.0.6";
const _kisskhSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/kisskh/kisskh.dart";
Source _kisskhSource = Source(
name: "KissKH",
baseUrl: "https://kisskh.co",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/kisskh/icon.png",
sourceCodeUrl: _kisskhSourceCodeUrl,
version: _kisskhVersion,
itemType: ItemType.anime);

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View file

@ -0,0 +1,548 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class NineAnimeTv extends MProvider {
NineAnimeTv({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client
.get(Uri.parse("${source.baseUrl}/filter?sort=all&page=$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/filter?sort=recently_updated&page=$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "${source.baseUrl}/filter?keyword=$query";
for (var filter in filters) {
if (filter.type == "GenreFilter") {
final genre = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}genre=";
if (genre.isNotEmpty) {
for (var st in genre) {
url += "${st.value}";
if (genre.length > 1) {
url += "%2C";
}
}
if (genre.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
} else if (filter.type == "SeasonFilter") {
final season = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}season=";
if (season.isNotEmpty) {
for (var st in season) {
url += "${st.value}";
if (season.length > 1) {
url += "%2C";
}
}
if (season.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
} else if (filter.type == "YearFilter") {
final year = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}year=";
if (year.isNotEmpty) {
for (var st in year) {
url += "${st.value}";
if (year.length > 1) {
url += "%2C";
}
}
if (year.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
} else if (filter.type == "TypeFilter") {
final type = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}type=";
if (type.isNotEmpty) {
for (var st in type) {
url += "${st.value}";
if (type.length > 1) {
url += "%2C";
}
}
if (type.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
} else if (filter.type == "StatusFilter") {
final status = filter.values[filter.state].value;
url += "${ll(url)}status=$status";
} else if (filter.type == "LanguageFilter") {
final language = (filter.state as List).where((e) => e.state).toList();
url += "${ll(url)}language=";
if (language.isNotEmpty) {
for (var st in language) {
url += "${st.value}";
if (language.length > 1) {
url += "%2C";
}
}
if (language.length > 1) {
url = substringBeforeLast(url, '%2C');
}
}
} else if (filter.type == "SortFilter") {
final sort = filter.values[filter.state].value;
url += "${ll(url)}sort=$sort";
}
}
final res = (await client.get(Uri.parse("$url&page=$page"))).body;
return parseAnimeList(res);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"Currently Airing": 0, "Finished Airing": 1}
];
final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body;
MManga anime = MManga();
final document = parseHtml(res);
final infoElement = document.selectFirst("div.film-infor");
final status = infoElement.xpathFirst(
'//div[contains(text(),"Status:")]/following-sibling::div/span/text()') ??
"";
anime.status = parseStatus(status, statusList);
anime.description =
infoElement.selectFirst("div.film-description > p")?.text ?? "";
anime.author = infoElement.xpathFirst(
'//div[contains(text(),"Studios:")]/following-sibling::div/a/text()') ??
"";
anime.genre = infoElement.xpath(
'//div[contains(text(),"Genre:")]/following-sibling::div/a/text()');
final id = parseHtml(res).selectFirst("div[data-id]").attr("data-id");
final resEp =
(await client.get(Uri.parse("${source.baseUrl}/ajax/episode/list/$id")))
.body;
final html = json.decode(resEp)["html"];
List<MChapter>? episodesList = [];
final epsElements = parseHtml(html).select("a");
for (var epElement in epsElements) {
final id = epElement.attr('data-id');
final title = epElement.attr('title') ?? "";
final epNum = epElement.attr('data-number');
MChapter episode = MChapter();
episode.name = "Episode $epNum $title";
episode.url = id;
episodesList.add(episode);
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(
Uri.parse("${source.baseUrl}/ajax/episode/servers?episodeId=$url")))
.body;
final html = json.decode(res)["html"];
final serverElements = parseHtml(html).select("div.server-item");
List<MVideo> videos = [];
final hosterSelection = preferenceHosterSelection(source.id);
final typeSelection = preferenceTypeSelection(source.id);
for (var serverElement in serverElements) {
final name = serverElement.text;
final id = serverElement.attr("data-id");
final subDub = serverElement.attr("data-type");
final res = (await client
.get(Uri.parse("${source.baseUrl}/ajax/episode/sources?id=$id")))
.body;
final epUrl = json.decode(res)["link"];
List<MVideo> a = [];
if (hosterSelection.contains(name) && typeSelection.contains(subDub)) {
if (name.contains("Vidstreaming")) {
a = await rapidCloudExtractor(epUrl, "Vidstreaming - $subDub");
} else if (name.contains("Vidcloud")) {
a = await rapidCloudExtractor(epUrl, "Vidcloud - $subDub");
}
videos.addAll(a);
}
}
return sortVideos(videos, source.id);
}
MPages parseAnimeList(String res) {
final elements = parseHtml(res).select("div.film_list-wrap > div");
List<MManga> animeList = [];
for (var element in elements) {
MManga anime = MManga();
anime.name = element.selectFirst("div.film-detail > h3 > a").text;
anime.imageUrl = element.selectFirst(" div.film-poster > img").getSrc;
anime.link = element.selectFirst("div.film-detail > h3 > a").getHref;
animeList.add(anime);
}
return MPages(animeList, true);
}
Future<List<MVideo>> rapidCloudExtractor(String url, String name) async {
final serverUrl = ['https://megacloud.tv', 'https://rapid-cloud.co'];
final serverType = url.startsWith('https://megacloud.tv') ? 0 : 1;
final sourceUrl = [
'/embed-2/ajax/e-1/getSources?id=',
'/ajax/embed-6-v2/getSources?id='
];
final sourceSpliter = ['/e-1/', '/embed-6-v2/'];
final id = url.split(sourceSpliter[serverType]).last.split('?').first;
final resServer = (await client.get(
Uri.parse('${serverUrl[serverType]}${sourceUrl[serverType]}$id'),
headers: {"X-Requested-With": "XMLHttpRequest"}))
.body;
final encrypted = getMapValue(resServer, "encrypted");
String videoResJson = "";
List<MVideo> videos = [];
if (encrypted == "true") {
final ciphered = getMapValue(resServer, "sources");
List<List<int>> indexPairs = await generateIndexPairs(serverType);
var password = '';
String ciphertext = ciphered;
int index = 0;
for (List<int> item in json.decode(json.encode(indexPairs))) {
int start = item.first + index;
int end = start + item.last;
String passSubstr = ciphered.substring(start, end);
password += passSubstr;
ciphertext = ciphertext.replaceFirst(passSubstr, "");
index += item.last;
}
videoResJson = decryptAESCryptoJS(ciphertext, password);
} else {
videoResJson = json.encode(
(json.decode(resServer)["sources"] as List<Map<String, dynamic>>));
}
String masterUrl =
((json.decode(videoResJson) as List<Map<String, dynamic>>)
.first)['file'];
String type = ((json.decode(videoResJson) as List<Map<String, dynamic>>)
.first)['type'];
final tracks = (json.decode(resServer)['tracks'] as List)
.where((e) => e['kind'] == 'captions' ? true : false)
.toList();
List<MTrack> subtitles = [];
for (var sub in tracks) {
try {
MTrack subtitle = MTrack();
subtitle
..label = sub["label"]
..file = sub["file"];
subtitles.add(subtitle);
} catch (_) {}
}
if (type == "hls") {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$name - $quality"
..subtitles = subtitles;
videos.add(video);
}
} else {
MVideo video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = "$name - Default"
..subtitles = subtitles;
videos.add(video);
}
return videos;
}
Future<List<List<int>>> generateIndexPairs(int serverType) async {
final jsPlayerUrl = [
"https://megacloud.tv/js/player/a/prod/e1-player.min.js",
"https://rapid-cloud.co/js/player/prod/e6-player-v2.min.js"
];
final scriptText =
(await client.get(Uri.parse(jsPlayerUrl[serverType]))).body;
final switchCode = scriptText.substring(
scriptText.lastIndexOf('switch'), scriptText.indexOf('=partKey'));
List<int> indexes = [];
for (var variableMatch
in RegExp(r'=(\w+)').allMatches(switchCode).toList()) {
final regex = RegExp(
',${(variableMatch as RegExpMatch).group(1)}=((?:0x)?([0-9a-fA-F]+))');
Match? match = regex.firstMatch(scriptText);
if (match != null) {
String value = match.group(1);
if (value.contains("0x")) {
indexes.add(int.parse(substringAfter(value, "0x"), radix: 16));
} else {
indexes.add(int.parse(value));
}
}
}
return chunked(indexes, 2);
}
List<List<int>> chunked(List<int> list, int size) {
List<List<int>> chunks = [];
for (int i = 0; i < list.length; i += size) {
int end = list.length;
if (i + size < list.length) {
end = i + size;
}
chunks.add(list.sublist(i, end));
}
return chunks;
}
@override
List<dynamic> getFilterList() {
return [
GroupFilter("GenreFilter", "Genre", [
CheckBoxFilter("Action", "1"),
CheckBoxFilter("Adventure", "2"),
CheckBoxFilter("Cars", "3"),
CheckBoxFilter("Comedy", "4"),
CheckBoxFilter("Dementia", "5"),
CheckBoxFilter("Demons", "6"),
CheckBoxFilter("Drama", "8"),
CheckBoxFilter("Ecchi", "9"),
CheckBoxFilter("Fantasy", "10"),
CheckBoxFilter("Game", "11"),
CheckBoxFilter("Harem", "35"),
CheckBoxFilter("Historical", "13"),
CheckBoxFilter("Horror", "14"),
CheckBoxFilter("Isekai", "44"),
CheckBoxFilter("Josei", "43"),
CheckBoxFilter("Kids", "15"),
CheckBoxFilter("Magic", "16"),
CheckBoxFilter("Martial Arts", "17"),
CheckBoxFilter("Mecha", "18"),
CheckBoxFilter("Military", "38"),
CheckBoxFilter("Music", "19"),
CheckBoxFilter("Mystery", "7"),
CheckBoxFilter("Parody", "20"),
CheckBoxFilter("Police", "39"),
CheckBoxFilter("Psychological", "40"),
CheckBoxFilter("Romance", "22"),
CheckBoxFilter("Samurai", "21"),
CheckBoxFilter("School", "23"),
CheckBoxFilter("Sci-Fi", "24"),
CheckBoxFilter("Seinen", "42"),
CheckBoxFilter("Shoujo", "25"),
CheckBoxFilter("Shoujo Ai", "26"),
CheckBoxFilter("Shounen", "27"),
CheckBoxFilter("Shounen Ai", "28"),
CheckBoxFilter("Slice of Life", "36"),
CheckBoxFilter("Space", "29"),
CheckBoxFilter("Sports", "30"),
CheckBoxFilter("Super Power", "31"),
CheckBoxFilter("Supernatural", "37"),
CheckBoxFilter("Thriller", "41"),
CheckBoxFilter("Vampire", "32")
]),
GroupFilter("SeasonFilter", "Season", [
CheckBoxFilter("Fall", "3"),
CheckBoxFilter("Summer", "2"),
CheckBoxFilter("Spring", "1"),
CheckBoxFilter("Winter", "4")
]),
GroupFilter("YearFilter", "Year", [
CheckBoxFilter("2024", "2024"),
CheckBoxFilter("2023", "2023"),
CheckBoxFilter("2022", "2022"),
CheckBoxFilter("2021", "2021"),
CheckBoxFilter("2020", "2020"),
CheckBoxFilter("2019", "2019"),
CheckBoxFilter("2018", "2018"),
CheckBoxFilter("2017", "2017"),
CheckBoxFilter("2016", "2016"),
CheckBoxFilter("2015", "2015"),
CheckBoxFilter("2014", "2014"),
CheckBoxFilter("2013", "2013"),
CheckBoxFilter("2012", "2012"),
CheckBoxFilter("2011", "2011"),
CheckBoxFilter("2010", "2010"),
CheckBoxFilter("2009", "2009"),
CheckBoxFilter("2008", "2008"),
CheckBoxFilter("2007", "2007"),
CheckBoxFilter("2006", "2006"),
CheckBoxFilter("2005", "2005"),
CheckBoxFilter("2004", "2004"),
CheckBoxFilter("2003", "2003"),
CheckBoxFilter("2002", "2002"),
CheckBoxFilter("2001", "2001")
]),
SelectFilter("SortFilter", "Sort by", 0, [
SelectFilterOption("All", "all"),
SelectFilterOption("Default", "default"),
SelectFilterOption("Recently Added", "recently_added"),
SelectFilterOption("Recently Updated", "recently_updated"),
SelectFilterOption("Score", "score"),
SelectFilterOption("Name A-Z", "name_az"),
SelectFilterOption("Released Date", "released_date"),
SelectFilterOption("Most Watched", "most_watched")
]),
GroupFilter("TypeFilter", "Type", [
CheckBoxFilter("Movie", "1"),
CheckBoxFilter("TV Series", "2"),
CheckBoxFilter("OVA", "3"),
CheckBoxFilter("ONA", "4"),
CheckBoxFilter("Special", "5"),
CheckBoxFilter("Music", "6")
]),
SelectFilter("StatusFilter", "Status", 0, [
SelectFilterOption("All", "all"),
SelectFilterOption("Finished Airing", "1"),
SelectFilterOption("Currently Airing", "2"),
SelectFilterOption("Not yet aired", "3")
]),
GroupFilter("LanguageFilter", "Language",
[CheckBoxFilter("Sub", "sub"), CheckBoxFilter("Dub", "dub")]),
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Preferred Quality",
summary: "",
valueIndex: 1,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"]),
ListPreference(
key: "preferred_server",
title: "Preferred server",
summary: "",
valueIndex: 0,
entries: ["Vidstreaming", "VidCloud"],
entryValues: ["Vidstreaming", "VidCloud"]),
ListPreference(
key: "preferred_type",
title: "Preferred Type",
summary: "",
valueIndex: 0,
entries: ["Sub", "Dub"],
entryValues: ["sub", "dub"]),
MultiSelectListPreference(
key: "hoster_selection",
title: "Enable/Disable Hosts",
summary: "",
entries: ["Vidstreaming", "VidCloud"],
entryValues: ["Vidstreaming", "Vidcloud"],
values: ["Vidstreaming", "Vidcloud"]),
MultiSelectListPreference(
key: "type_selection",
title: "Enable/Disable Types",
summary: "",
entries: ["Sub", "Dub"],
entryValues: ["sub", "dub"],
values: ["sub", "dub"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
String server = getPreferenceValue(sourceId, "preferred_server");
String type = getPreferenceValue(sourceId, "preferred_type");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality) &&
a.quality.toLowerCase().contains(type.toLowerCase()) &&
a.quality.toLowerCase().contains(server.toLowerCase())) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality) &&
b.quality.toLowerCase().contains(type.toLowerCase()) &&
b.quality.toLowerCase().contains(server.toLowerCase())) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
List<String> preferenceHosterSelection(int sourceId) {
return getPreferenceValue(sourceId, "hoster_selection");
}
List<String> preferenceTypeSelection(int sourceId) {
return getPreferenceValue(sourceId, "type_selection");
}
String ll(String url) {
if (url.contains("?")) {
return "&";
}
return "?";
}
}
NineAnimeTv main(MSource source) {
return NineAnimeTv(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get nineanimetv => _nineanimetv;
const _nineanimetvVersion = "0.0.4";
const _nineanimetvCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/nineanimetv/nineanimetv.dart";
Source _nineanimetv = Source(
name: "9AnimeTv",
baseUrl: "https://9animetv.to",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/nineanimetv/icon.png",
sourceCodeUrl: _nineanimetvCodeUrl,
version: _nineanimetvVersion,
itemType: ItemType.anime);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get uhdmoviesSource => _uhdmoviesSource;
const _uhdmoviesVersion = "0.0.45";
const _uhdmoviesSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/uhdmovies/uhdmovies.dart";
Source _uhdmoviesSource = Source(
name: "UHD Movies",
baseUrl: "https://uhdmovies.fans",
lang: "en",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/uhdmovies/icon.png",
sourceCodeUrl: _uhdmoviesSourceCodeUrl,
version: _uhdmoviesVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,234 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class UHDMovies extends MProvider {
UHDMovies({required this.source});
MSource source;
final Client client = Client(source);
@override
bool get supportsLatest => false;
@override
String get baseUrl => getPreferenceValue(source.id, "pref_domain_new");
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse("$baseUrl/page/$page"))).body;
return animeFromElement(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
return MPages([], false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client.get(
Uri.parse("$baseUrl/page/$page/?s=${query.replaceAll(" ", "+")}")))
.body;
return animeFromElement(res);
}
@override
Future<MManga> getDetail(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl${url}"))).body;
MManga anime = MManga();
final description = xpath(res, '//pre/span/text()');
if (description.isNotEmpty) {
anime.description = description.first;
}
anime.status = MStatus.ongoing;
final episodesTitles = xpath(res,
'//*[contains(@style, "center") or contains(@class, "maxbutton")]/a[contains(@class, "maxbutton") or contains(@href, "?sid=")]/text()');
final episodesUrls = xpath(res,
'//*[contains(@style, "center") or contains(@class, "maxbutton")]/a[contains(@class, "maxbutton") or contains(@href, "?sid=")]/@href');
bool isSeries = false;
if (episodesTitles.first.contains("Episode") ||
episodesTitles.first.contains("Zip") ||
episodesTitles.first.contains("Pack")) {
isSeries = true;
}
List<MChapter>? episodesList = [];
if (!isSeries) {
List<String> moviesTitles = [];
moviesTitles = xpath(res,
'//*[contains(@style, "center") or contains(@class, "maxbutton")]/parent::p//preceding-sibling::p[contains(@style, "center")]/text()');
List<String> titles = [];
if (moviesTitles.isEmpty) {
moviesTitles = xpath(res, '//p[contains(@style, "center")]/text()');
}
for (var title in moviesTitles) {
if (title.isNotEmpty &&
!title.contains('Download') &&
!title.contains('Note:') &&
!title.contains('Copyright')) {
titles.add(title.split('[').first.trim());
}
}
for (var i = 0; i < titles.length; i++) {
final title = titles[i];
final quality = RegExp(r'\d{3,4}p').firstMatch(title)?.group(0) ?? "";
final url = episodesUrls[i];
MChapter ep = MChapter();
ep.name = title;
ep.url = url;
ep.scanlator = quality;
episodesList.add(ep);
}
} else {
List<String> seasonTitles = [];
final episodeTitles = xpath(res,
'//*[contains(@style, "center") or contains(@class, "maxbutton")]/parent::p//preceding-sibling::p[contains(@style, "center") and not(text()^="Episode")]/text()');
List<String> titles = [];
for (var title in episodeTitles) {
if (title.isNotEmpty) {
titles.add(title.split('[').first.trim());
}
}
int number = 0;
for (var i = 0; i < episodesTitles.length; i++) {
final episode = episodesTitles[i];
final episodeUrl = episodesUrls[i];
if (!episode.contains("Zip") || !episode.contains("Pack")) {
if (episode == "Episode 1" && seasonTitles.contains("Episode 1")) {
number++;
} else if (episode == "Episode 1") {
seasonTitles.add(episode);
}
final season =
RegExp(r'S(\d{2})').firstMatch(titles[number])?.group(1) ?? "";
final quality =
RegExp(r'\d{3,4}p').firstMatch(titles[number])?.group(0) ?? "";
MChapter ep = MChapter();
ep.name = "Season $season $episode $quality";
ep.url = episodeUrl;
ep.scanlator = quality;
episodesList.add(ep);
}
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = await getMediaUrl(url);
return await extractVideos(res);
}
@override
List<dynamic> getSourcePreferences() {
return [
EditTextPreference(
key: "pref_domain_new",
title: "Currently used domain",
summary: "",
value: "https://uhdmovies.fans",
dialogTitle: "Currently used domain",
dialogMessage: "",
text: "https://uhdmovies.fans"),
];
}
Future<List<MVideo>> extractVideos(String url) async {
List<MVideo> videos = [];
for (int type = 1; type < 3; type++) {
url = url.replaceAll("/file/", "/wfile/") + "?type=$type";
final res = (await client.get(Uri.parse(url))).body;
final links = xpath(res, '//div[@class="mb-4"]/a/@href');
for (int i = 0; i < links.length; i++) {
final link = links[i];
String decodedLink = link;
if (!link.contains("workers.dev")) {
decodedLink = utf8
.decode(base64Url.decode(substringAfter(link, "download?url=")));
}
MVideo video = MVideo();
video
..url = decodedLink
..originalUrl = decodedLink
..quality = "CF $type Worker ${i + 1}";
videos.add(video);
}
}
return videos;
}
Future<String> getMediaUrl(String url) async {
String res = "";
String host = "";
if (url.contains("?sid=")) {
final finalUrl = await redirectorBypasser(url);
host = Uri.parse(finalUrl).host;
res = (await client.get(Uri.parse(finalUrl))).body;
} else if (url.contains("r?key=")) {
res = (await client.get(Uri.parse(url))).body;
host = Uri.parse(url).host;
} else {
return "";
}
final path = substringBefore(substringAfter(res, "replace(\""), "\"");
if (path == "/404") return "";
return "https://$host$path";
}
Future<String> redirectorBypasser(String url) async {
final res = (await client.get(Uri.parse(url))).body;
String lastDoc = await recursiveDoc(url, res);
final js = xpath(lastDoc, '//script[contains(text(), "/?go=")]/text()');
if (js.isEmpty) return "";
String script = js.first;
String nextUrl =
substringBefore(substringAfter(script, "\"href\",\""), '"');
if (!nextUrl.contains("http")) return "";
String cookieName = substringAfter(nextUrl, "go=");
String cookieValue =
substringBefore(substringAfter(script, "'$cookieName', '"), "'");
final response = (await client.get(Uri.parse(nextUrl),
headers: {"referer": url, "Cookie": "$cookieName=$cookieValue"}))
.body;
final lastRes =
parseHtml(response).selectFirst("meta[http-equiv]").attr("content");
return substringAfter(lastRes, "url=");
}
MPages animeFromElement(String res) {
List<MManga> animeList = [];
final urls = xpath(res, '//*[@class="entry-image"]/a/@href');
final names = xpath(res, '//*[@class="entry-image"]/a/@title');
final images = xpath(res, '//*[@class="entry-image"]/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i].replaceAll("Download", "");
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage = xpath(res, '//a[@class="next page-numbers"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
Future<String> recursiveDoc(String url, String html) async {
final urlR = xpath(html, '//form[@id="landing"]/@action');
if (urlR.isEmpty) return html;
final name = xpath(html, '//input/@name').first;
final value = xpath(html, '//input/@value').first;
final body = {"$name": value};
final response = (await client.post(Uri.parse(urlR.first),
headers: {"referer": url}, body: body))
.body;
return recursiveDoc(url, response);
}
}
UHDMovies main(MSource source) {
return UHDMovies(source: source);
}

View file

@ -0,0 +1,311 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AnimeOnlineNinja extends MProvider {
AnimeOnlineNinja({required this.source});
MSource source;
final Client client = Client(source);
@override
bool get supportsLatest => false;
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("${source.baseUrl}/tendencias"))).body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
String pageStr = page == 1 ? "" : "page/$page/";
final res = (await client.get(Uri.parse(
"${source.baseUrl}/$pageStr?s=${query.replaceAll(" ", "+")}")))
.body;
return parseAnimeList(res,
selector: "div.result-item div.image a",
hasNextPage: parseHtml(res)
.selectFirst(
"div.pagination > *:last-child:not(span):not(.current)")
?.text !=
null);
}
@override
Future<MManga> getDetail(String url) async {
final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body;
MManga anime = MManga();
final document = parseHtml(res);
anime.description = document.selectFirst("div#info").text;
anime.genre = document
.selectFirst("div.sheader")
.select("div.data > div.sgeneros > a")
.map((e) => e.text)
.toList();
List<MChapter>? episodesList = [];
final seasonElements = document.select("div#seasons > div");
if (seasonElements.isEmpty) {
MChapter episode = MChapter();
episode.name = "Película";
episode.url = getUrlWithoutDomain(url);
episodesList.add(episode);
} else {
for (var seasonElement in seasonElements) {
final seasonName = seasonElement.selectFirst("span.se-t").text;
for (var epElement in seasonElement.select("ul.episodios > li")) {
final href = epElement.selectFirst("a[href]");
final epNum = epElement.selectFirst('div.numerando')?.text ?? "0 - 0";
MChapter episode = MChapter();
episode.name =
"Season $seasonName x ${substringAfter(epNum, '- ')} ${href.text}";
episode.url = getUrlWithoutDomain(href!.getHref);
episodesList.add(episode);
}
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse("${source.baseUrl}$url"))).body;
final document = parseHtml(res);
final players = document.select("ul#playeroptionsul li");
List<MVideo> videos = [];
for (var player in players) {
final name = player.selectFirst("span.title").text;
final type = player.attr("data-type");
final id = player.attr("data-post");
final num = player.attr("data-nume");
final resUrl = (await client.get(Uri.parse(
"${source.baseUrl}/wp-json/dooplayer/v1/post/$id?type=$type&source=$num")))
.body;
final url =
substringBefore(substringAfter(resUrl, "\"embed_url\":\""), "\",")
.replaceAll("\\", "");
videos.addAll(await extractVideos(url, name));
}
return sortVideos(videos, source.id);
}
Future<List<MVideo>> extractVideos(String url, String lang) async {
List<MVideo> videos = [];
List<MVideo> a = [];
if (url.contains("saidochesto.top") || lang == "MULTISERVER") {
return await extractFromMulti(url);
} else if (["filemoon", "moon", "filemooon"].any((a) => url.contains(a))) {
a = await filemoonExtractor(url, "$lang Filemoon - ", "");
} else if (["https://dood", "https://ds2play", "https://d0"]
.any((a) => url.contains(a))) {
a = await doodExtractor(url, "$lang DoodStream");
} else if (["streamtape", "stp", "stape"].any((a) => url.contains(a))) {
a = await streamTapeExtractor(url, "$lang StreamTape");
} else if (url.contains("uqload")) {
a = await uqloadExtractor(url, lang);
} else if (url.contains("wolfstream")) {
final resUrl = (await client.get(Uri.parse(url))).body;
final jsData =
parseHtml(resUrl).selectFirst("script:contains(sources)").text;
final videoUrl =
substringBefore(substringAfter(jsData, "{file:\""), "\"");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$lang WolfStream";
a = [video];
} else if (["wishembed", "streamwish", "strwish", "wish"]
.any((a) => url.contains(a))) {
a = await streamWishExtractor(url, "$lang StreamWish");
} else if (url.contains("mp4upload")) {
a = await mp4UploadExtractor(url, null, "$lang", "");
} else if (["vidhide", "filelions.top", "vid."]
.any((a) => url.contains(a))) {
a = await streamHideExtractor(url, lang);
}
videos.addAll(a);
return videos;
}
Future<List<MVideo>> streamHideExtractor(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final masterUrl = substringBefore(
substringAfter(
substringAfter(
substringAfter(unpackJs(res), "sources:"), "file:\""),
"src:\""),
'"');
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
List<MVideo> videos = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$prefix StreamHideVid - $quality";
videos.add(video);
}
return videos;
}
Future<List<MVideo>> uqloadExtractor(String url, String lang) async {
final Client client =
Client(source, json.encode({"useDartHttpClient": true}));
final res = (await client.get(Uri.parse(url))).body;
final js = xpath(res, '//script[contains(text(), "sources:")]/text()');
if (js.isEmpty) {
return [];
}
final videoUrl =
substringBefore(substringAfter(js.first, "sources: [\""), '"');
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$lang Uqload"
..headers = {"Referer": "${Uri.parse(url).origin}/"};
return [video];
}
Future<List<MVideo>> extractFromMulti(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final prefLang = getPreferenceValue(source.id, "preferred_lang");
String langSelector = "";
if (prefLang.isEmpty) {
langSelector = "div";
} else {
langSelector = "div.OD_$prefLang";
}
List<MVideo> videos = [];
for (var element in document.select("div.ODDIV $langSelector > li")) {
final hosterUrl =
substringBefore(substringAfter(element.attr("onclick"), "('"), "')");
String lang = "";
if (langSelector == "div") {
lang = substringBefore(
substringAfter(element.parent?.attr("class"), "OD_", ""), " ");
} else {
lang = prefLang;
}
videos.addAll(await extractVideos(hosterUrl, lang));
}
return videos;
}
MPages parseAnimeList(String res,
{String selector = "article.w_item_a > a", bool hasNextPage = false}) {
final elements = parseHtml(res).select(selector);
List<MManga> animeList = [];
for (var element in elements) {
final url = getUrlWithoutDomain(element.getHref);
if (!url.startsWith("/episodio/")) {
MManga anime = MManga();
final img = element.selectFirst("img");
anime.name = img.attr("alt");
anime.imageUrl = img?.attr("data-src") ??
img?.attr("data-lazy-src") ??
img?.attr("srcset") ??
img?.getSrc;
anime.link = url;
animeList.add(anime);
}
}
return MPages(animeList, hasNextPage);
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_lang",
title: "Preferred language",
summary: "",
valueIndex: 0,
entries: ["SUB", "All", "ES", "LAT"],
entryValues: ["SUB", "", "ES", "LAT"]),
ListPreference(
key: "preferred_server1",
title: "Preferred server",
summary: "",
valueIndex: 0,
entries: [
"Filemoon",
"DoodStream",
"StreamTape",
"Uqload",
"WolfStream",
"saidochesto.top",
"VidHide",
"StreamWish",
"Mp4Upload"
],
entryValues: [
"Filemoon",
"DoodStream",
"StreamTape",
"Uqload",
"WolfStream",
"saidochesto.top",
"VidHide",
"StreamWish",
"Mp4Upload"
]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String prefLang = getPreferenceValue(source.id, "preferred_lang");
String server = getPreferenceValue(sourceId, "preferred_server1");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.toLowerCase().contains(prefLang.toLowerCase()) &&
a.quality.toLowerCase().contains(server.toLowerCase())) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.toLowerCase().contains(prefLang.toLowerCase()) &&
b.quality.toLowerCase().contains(server.toLowerCase())) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
}
AnimeOnlineNinja main(MSource source) {
return AnimeOnlineNinja(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get animeonlineninjaSource => _animeonlineninjaSource;
const _animeonlineninjaVersion = "0.0.3";
const _animeonlineninjaSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/es/animeonlineninja/animeonlineninja.dart";
Source _animeonlineninjaSource = Source(
name: "AnimeOnline.Ninja",
baseUrl: "https://ww3.animeonline.ninja",
lang: "es",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/es/animeonlineninja/icon.png",
sourceCodeUrl: _animeonlineninjaSourceCodeUrl,
version: _animeonlineninjaVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,498 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AnimeSama extends MProvider {
AnimeSama({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final doc = (await client.get(Uri.parse("${source.baseUrl}/#$page"))).body;
final regex = RegExp(r"""^\s*carteClassique\(\s*.*?\s*,\s*"(.*?)".*\)""",
multiLine: true);
var matches = regex.allMatches(doc).toList();
List<List<RegExpMatch>> chunks = chunked(matches, 5);
List<MManga> seasons = [];
if (page > 0 && page <= chunks.length) {
for (RegExpMatch match in chunks[page - 1]) {
seasons.addAll(await fetchAnimeSeasons(
"${source.baseUrl}/catalogue/${match.group(1)}"));
}
}
return MPages(seasons, page < chunks.length);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(source.baseUrl))).body;
var document = parseHtml(res);
final latest = document
.select("h2")
.where((MElement e) =>
e.outerHtml.toLowerCase().contains("derniers épisodes ajoutés"))
.toList();
final seasonElements = (latest.first.parent.nextElementSibling as MElement)
.select("div")
.toList();
List<MManga> seasons = [];
for (var seasonElement in seasonElements) {
seasons.addAll(await fetchAnimeSeasons(
(seasonElement as MElement).getElementsByTagName("a").first.getHref));
}
return MPages(seasons, false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
final res = (await client
.get(Uri.parse("${source.baseUrl}/catalogue/listing_all.php")))
.body;
var databaseElements = parseHtml(res).select(".cardListAnime");
List<MElement> elements = [];
elements = databaseElements
.where((MElement element) => element.select("h1, p").any((MElement e) =>
e.text.toLowerCase().contains(query.toLowerCase().trim())))
.toList();
for (var filter in filters) {
if (filter.type == "TypeFilter") {
final types = (filter.state as List).where((e) => e.state).toList();
elements = elements
.where((MElement element) =>
types.isEmpty ||
types.any((p) => element.className.contains(p.value)))
.toList();
} else if (filter.type == "LanguageFilter") {
final language = (filter.state as List).where((e) => e.state).toList();
elements = elements
.where((MElement element) =>
language.isEmpty ||
language.any((p) => element.className.contains(p.value)))
.toList();
} else if (filter.type == "GenreFilter") {
final included = (filter.state as List)
.where((e) => e.state == 1 ? true : false)
.toList();
final excluded = (filter.state as List)
.where((e) => e.state == 2 ? true : false)
.toList();
if (included.isNotEmpty) {
elements = elements
.where((MElement element) =>
included.every((p) => element.className.contains(p.value)))
.toList();
}
if (excluded.isNotEmpty) {
elements = elements
.where((MElement element) =>
excluded.every((p) => element.className.contains(p.value)))
.toList();
}
}
}
List<List<MElement>> chunks = chunked(elements, 5);
if (chunks.isEmpty) return MPages([], false);
List<MManga> seasons = [];
for (var seasonElement in chunks[page - 1]) {
seasons.addAll(await fetchAnimeSeasons(
seasonElement.getElementsByTagName("a").first.getHref));
}
return MPages(seasons, page < chunks.length);
}
@override
Future<MManga> getDetail(String url) async {
var animeUrl =
"${source.baseUrl}${substringBeforeLast(getUrlWithoutDomain(url), "/")}";
var movie =
int.tryParse(url.split("#").length >= 2 ? url.split("#")[1] : "");
List<Map<String, dynamic>> playersList = [];
for (var lang in ["vostfr", "vf"]) {
final players = await fetchPlayers("$animeUrl/$lang");
if (players.isNotEmpty) {
playersList.add({"players": players, "lang": lang});
}
}
int maxLength = 0;
for (var sublist in playersList) {
for (var innerList in sublist["players"]) {
if (innerList.length > maxLength) {
maxLength = innerList.length;
}
}
}
List<MChapter>? episodesList = [];
for (var episodeNumber = 0; episodeNumber < maxLength; episodeNumber++) {
List<String> langs = [];
bool isVf = false;
int iVostfr = 0;
int iVf = 0;
List<Map<String, dynamic>> players = [];
for (var playerList in playersList) {
for (var player in playerList["players"]) {
if (player.length > episodeNumber) {
isVf = playerList["lang"] == "vf";
if ((isVf && iVf < 2) || (!isVf && iVostfr < 2)) {
var lang = playerList["lang"];
if (!langs.contains(lang)) {
langs.add(lang);
}
players.add({"lang": lang, "player": player[episodeNumber]});
isVf ? iVf++ : iVostfr++;
}
}
}
}
MChapter episode = MChapter();
episode.name = movie == null ? 'Episode ${episodeNumber + 1}' : 'Film';
episode.scanlator = langs.toSet().toList().join(', ').toUpperCase();
episode.url = json.encode(players);
episodesList.add(episode);
}
MManga anime = MManga();
anime.chapters =
movie == null ? episodesList.reversed.toList() : [episodesList[movie]];
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final players = json.decode(url);
List<MVideo> videos = [];
for (var player in players) {
String lang = (player["lang"] as String).toUpperCase();
String playerUrl = player["player"];
List<MVideo> a = [];
if (playerUrl.contains("sendvid")) {
a = await sendVidExtractorr(playerUrl, "$lang ");
} else if (playerUrl.contains("vidmoly")) {
a = await vidmolyExtractor(playerUrl, lang);
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
Future<List<MVideo>> vidmolyExtractor(String url, String lang) async {
final headers = {
'Referer': 'https://vidmoly.to',
};
List<MVideo> videos = [];
final playListUrlResponse = (await client.get(Uri.parse(url))).body;
final playlistUrl =
RegExp(r'file:"(\S+?)"').firstMatch(playListUrlResponse)?.group(1) ??
"";
if (playlistUrl.isEmpty) return [];
final masterPlaylistRes =
await client.get(Uri.parse(playlistUrl), headers: headers);
if (masterPlaylistRes.statusCode == 200) {
for (var it
in substringAfter(masterPlaylistRes.body, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$lang Vidmoly $quality"
..headers = headers;
videos.add(video);
}
}
return videos;
}
Future<List<MVideo>> sendVidExtractorr(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final masterUrl = document.selectFirst("source#video_source")?.attr("src");
if (masterUrl == null) return [];
final masterHeaders = {
"Accept": "*/*",
"Host": Uri.parse(masterUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
List<MVideo> videos = [];
if (masterUrl.contains(".m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
final videoHeaders = {
"Accept": "*/*",
"Host": Uri.parse(videoUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = prefix + "Sendvid:$quality"
..headers = videoHeaders;
videos.add(video);
}
} else {
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = prefix + "Sendvid:default"
..headers = masterHeaders;
videos.add(video);
}
return videos;
}
@override
List<dynamic> getFilterList() {
return [
GroupFilter("TypeFilter", "Type", [
CheckBoxFilter("Anime", "Anime"),
CheckBoxFilter("Film", "Film"),
CheckBoxFilter("Autres", "Autres"),
]),
GroupFilter("LanguageFilter", "Langue", [
CheckBoxFilter("VF", "VF"),
CheckBoxFilter("VOSTFR", "VOSTFR"),
]),
GroupFilter("GenreFilter", "Genre", [
TriStateFilter("Action", "Action"),
TriStateFilter("Aventure", "Aventure"),
TriStateFilter("Combats", "Combats"),
TriStateFilter("Comédie", "Comédie"),
TriStateFilter("Drame", "Drame"),
TriStateFilter("Ecchi", "Ecchi"),
TriStateFilter("École", "School-Life"),
TriStateFilter("Fantaisie", "Fantasy"),
TriStateFilter("Horreur", "Horreur"),
TriStateFilter("Isekai", "Isekai"),
TriStateFilter("Josei", "Josei"),
TriStateFilter("Mystère", "Mystère"),
TriStateFilter("Psychologique", "Psychologique"),
TriStateFilter("Quotidien", "Slice-of-Life"),
TriStateFilter("Romance", "Romance"),
TriStateFilter("Seinen", "Seinen"),
TriStateFilter("Shônen", "Shônen"),
TriStateFilter("Shôjo", "Shôjo"),
TriStateFilter("Sports", "Sports"),
TriStateFilter("Surnaturel", "Surnaturel"),
TriStateFilter("Tournois", "Tournois"),
TriStateFilter("Yaoi", "Yaoi"),
TriStateFilter("Yuri", "Yuri"),
]),
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Qualité préférée",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"]),
ListPreference(
key: "voices_preference",
title: "Préférence des voix",
summary: "",
valueIndex: 0,
entries: ["Préférer VOSTFR", "Préférer VF"],
entryValues: ["vostfr", "vf"]),
];
}
Future<List<MManga>> fetchAnimeSeasons(String url) async {
final res = (await client.get(Uri.parse(url))).body;
var document = parseHtml(res);
String animeName = document.getElementById("titreOeuvre")?.text ?? "";
var seasonRegex = RegExp(r'panneauAnime\("(.*?)",\s*"(.*?)"\);');
var scripts = document
.select("h2 + p + div > script, h2 + div > script")
.map((MElement element) => element.text)
.toList()
.join("");
List<MManga> animeList = [];
List<RegExpMatch> seasonRegexReg = seasonRegex.allMatches(scripts).toList();
for (var animeIndex = 0; animeIndex < seasonRegexReg.length; animeIndex++) {
final seasonName = seasonRegexReg[animeIndex].group(1);
final seasonStem = seasonRegexReg[animeIndex].group(2);
if (seasonName != "nom" && seasonStem != "url") {
if (seasonStem.toLowerCase().contains("film")) {
var moviesUrl = "$url/$seasonStem";
var movies = await fetchPlayers(moviesUrl);
if (movies.isNotEmpty) {
var movieNameRegex =
RegExp("^\\s*newSPF\\(\"(.*)\"\\);", multiLine: true);
var moviesDoc = (await client.get(Uri.parse(moviesUrl))).body;
List<RegExpMatch> matches =
movieNameRegex.allMatches(moviesDoc).toList();
for (var i = 0; i < movies.length; i++) {
var title = "";
if (animeIndex == 0 && movies.length == 1) {
title = animeName;
} else if (matches.length > i) {
title = "$animeName ${(matches[i]).group(1)}";
} else if (movies.length == 1) {
title = "$animeName Film";
} else {
title = "$animeName Film ${i + 1}";
}
MManga anime = MManga();
anime.imageUrl = document.getElementById("coverOeuvre")?.getSrc;
anime.genre = (document.xpathFirst(
'//h2[contains(text(),"Genres")]/following-sibling::a/text()') ??
"")
.split(",");
anime.description = document.xpathFirst(
'//h2[contains(text(),"Synopsis")]/following-sibling::p/text()') ??
"";
anime.name = title;
anime.link = "$moviesUrl#$i";
anime.status = MStatus.completed;
animeList.add(anime);
}
}
} else {
MManga anime = MManga();
anime.imageUrl = document.getElementById("coverOeuvre")?.getSrc;
anime.genre = (document.xpathFirst(
'//h2[contains(text(),"Genres")]/following-sibling::a/text()') ??
"")
.split(",");
anime.description = document.xpathFirst(
'//h2[contains(text(),"Synopsis")]/following-sibling::p/text()') ??
"";
anime.name =
'$animeName ${substringBefore(seasonName, ',').replaceAll('"', "")}';
anime.link = "$url/$seasonStem";
animeList.add(anime);
}
}
}
return animeList;
}
Future<List<List<String>>> fetchPlayers(String url) async {
var docUrl = "$url/episodes.js";
List<List<String>> players = [];
var response = (await client.get(Uri.parse(docUrl))).body;
if (response == "error") {
return [];
}
var sanitizedDoc = sanitizeEpisodesJs(response);
for (var i = 1; i <= 8; i++) {
final numPlayers = getPlayers("eps$i", sanitizedDoc);
if (numPlayers != null) players.add(numPlayers);
}
final asPlayers = getPlayers("epsAS", sanitizedDoc);
if (asPlayers != null) players.add(asPlayers);
if (players.isEmpty) return [];
List<List<String>> finalPlayers = [];
for (var i = 0; i <= players[0].length; i++) {
for (var playerList in players) {
if (playerList.length > i) {
finalPlayers.add(playerList);
}
}
}
return finalPlayers.toSet().toList();
}
List<String>? getPlayers(String playerName, String doc) {
var playerRegex = RegExp('$playerName\\s*=\\s*(\\[.*?\\])', dotAll: true);
var match = playerRegex.firstMatch(doc);
if (match == null) return null;
final regex = RegExp(r"""https?://[^\s\',\[\]]+""");
final matches = regex.allMatches(match.group(1));
List<String> urls = [];
for (var match in matches.toList()) {
urls.add((match as RegExpMatch).group(0).toString());
}
return urls;
}
String sanitizeEpisodesJs(String doc) {
return doc.replaceAll(
RegExp(r'(?<=\[|\,)\s*\"\s*(https?://[^\s\"]+)\s*\"\s*(?=\,|\])'), '');
}
List<List<dynamic>> chunked(List<dynamic> list, int size) {
List<List<dynamic>> chunks = [];
for (int i = 0; i < list.length; i += size) {
int end = list.length;
if (i + size < list.length) {
end = i + size;
}
chunks.add(list.sublist(i, end));
}
return chunks;
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
String voice = getPreferenceValue(sourceId, "voices_preference");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality) &&
a.quality.toLowerCase().contains(voice)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality) &&
b.quality.toLowerCase().contains(voice)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
}
AnimeSama main(MSource source) {
return AnimeSama(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get animesamaSource => _animesama;
const animesamaVersion = "0.0.4";
const animesamaCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesama/animesama.dart";
Source _animesama = Source(
name: "Anime-Sama",
baseUrl: "https://anime-sama.fr",
lang: "fr",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesama/icon.png",
sourceCodeUrl: animesamaCodeUrl,
version: animesamaVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,214 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AnimesUltra extends MProvider {
AnimesUltra({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => source.baseUrl;
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(baseUrl))).body;
List<MManga> animeList = [];
final urls = xpath(res,
'//*[contains(@class,"swiper-slide item-qtip")]/div[@class="item"]/a/@href');
final names = xpath(res,
'//*[contains(@class,"swiper-slide item-qtip")]/div[@class="item"]/a/img/@title');
final images = xpath(res,
'//*[contains(@class,"swiper-slide item-qtip")]/div[@class="item"]/a/img/@data-src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse(baseUrl))).body;
List<MManga> animeList = [];
final urls = xpath(res,
'//*[@class="block_area block_area_home"]/div[@class="tab-content"]/div[contains(@class,"block_area-content block_area-list")]/div[@class="film_list-wrap"]/div[@class="flw-item"]/div[@class="film-poster"]/a/@href');
final names = xpath(res,
'//*[@class="block_area block_area_home"]/div[@class="tab-content"]/div[contains(@class,"block_area-content block_area-list")]/div[@class="film_list-wrap"]/div[@class="flw-item"]/div[@class="film-poster"]/a/@title');
final images = xpath(res,
'//*[@class="block_area block_area_home"]/div[@class="tab-content"]/div[contains(@class,"block_area-content block_area-list")]/div[@class="film_list-wrap"]/div[@class="flw-item"]/div[@class="film-poster"]/img/@data-src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
query = query.trim().replaceAll(" ", "+");
final res = (await client.get(Uri.parse(
"$baseUrl/index.php?do=search&subaction=search&story=$query")))
.body;
List<MManga> animeList = [];
final urls = xpath(res, '//*[@class="film-poster"]/a/@href');
final names = xpath(res, '//*[@class="film-poster"]/a/@title');
final images = xpath(res, '//*[@class="film-poster"]/img/@data-src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList.reversed.toList(), false);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"En cours": 0, "Terminé": 1}
];
final res = (await client.get(Uri.parse(url))).body;
var anime = MManga();
final doc = parseHtml(res);
anime.description =
xpath(res, '//*[@class="film-description m-hide"]/text()').first;
final status = xpath(res,
'//*[@class="item item-title" and contains(text(),"Status:")]/span[2]/text()')
.first;
anime.status = parseStatus(status, statusList);
anime.genre = xpath(res,
'//*[@class="item item-list" and contains(text(),"Genres:")]/a/text()');
anime.author = doc.xpathFirst(
'//*[@class="item item-title" and contains(text(),"Studio:")]/span[2]/text()');
final episodesLength = int.parse(substringBefore(
doc.xpathFirst('//*[@class="film-stats"]/span[7]/text()'), "/")
.replaceAll("Ep", ""));
List<MChapter>? episodesList = [];
for (var i = 0; i < episodesLength; i++) {
var episode = MChapter();
episode.name = "Episode ${i + 1}";
episode.url = url.replaceAll('.html', '/episode-${i + 1}.html');
episodesList.add(episode);
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final resHtml = (await client.get(Uri.parse(url))).body;
final id = url.split('/')[4].split('-')[0];
final resServer = (await client
.get(Uri.parse("$baseUrl/engine/ajax/full-story.php?newsId=$id")))
.body;
final serverIds =
xpath(resHtml, '//*[@class="ps__-list"]/div/@data-server-id');
final serverNames = xpath(resHtml, '//*[@class="ps__-list"]/div/a/text()');
List<String> serverUrls = [];
for (var id in serverIds) {
final serversUrls = xpath(jsonDecode(resServer)["html"],
'//*[@id="content_player_${id}"]/text()')
.first;
serverUrls.add(serversUrls);
}
List<MVideo> videos = [];
for (var i = 0; i < serverNames.length; i++) {
final name = serverNames[i];
final url = serverUrls[i];
List<MVideo> a = [];
if (name.contains("Sendvid")) {
a = await sendVidExtractorr(
url.replaceAll("https:////", "https://"), "");
} else if (name.contains("Sibnet")) {
a = await sibnetExtractor(
"https://video.sibnet.ru/shell.php?videoid=$url");
} else if (name.contains("Mytv")) {
a = await myTvExtractor("https://www.myvi.tv/embed/$url");
} else if (name.contains("Fmoon")) {
a = await filemoonExtractor(url, "", "");
}
videos.addAll(a);
}
return videos;
}
Future<List<MVideo>> sendVidExtractorr(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final masterUrl = document.selectFirst("source#video_source")?.attr("src");
if (masterUrl == null) return [];
final masterHeaders = {
"Accept": "*/*",
"Host": Uri.parse(masterUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
List<MVideo> videos = [];
if (masterUrl.contains(".m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
final videoHeaders = {
"Accept": "*/*",
"Host": Uri.parse(videoUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = prefix + "Sendvid:$quality"
..headers = videoHeaders;
videos.add(video);
}
} else {
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = prefix + "Sendvid:default"
..headers = masterHeaders;
videos.add(video);
}
return videos;
}
}
AnimesUltra main(MSource source) {
return AnimesUltra(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -0,0 +1,17 @@
import '../../../../../model/source.dart';
Source get animesultraSource => _animesultraSource;
const _animesultraVersion = "0.0.75";
const _animesultraSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesultra/animesultra.dart";
Source _animesultraSource = Source(
name: "AnimesUltra",
baseUrl: "https://w2.animesultra.net",
lang: "fr",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesultra/icon.png",
sourceCodeUrl: _animesultraSourceCodeUrl,
version: _animesultraVersion,
itemType: ItemType.anime,
isFullData: false);

View file

@ -0,0 +1,490 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AniZone extends MProvider {
AniZone({required this.source});
final MSource source;
final Client client = Client(source);
// Constants for the xpath
static const String urlXpath =
'//*[contains(@class,"flw-item item-qtip")]/div[@class="film-poster"]/a/@href';
static const String nameXpath =
'//*[contains(@class,"flw-item item-qtip")]/div[@class="film-detail"]/h3/text()';
static const String imageXpath =
'//*[contains(@class,"flw-item item-qtip")]/div[@class="film-poster"]/img/@data-src';
// Methods for fetching the manga list (popular, latest & search)
Future<MPages> _getMangaList(String url) async {
final doc = (await client.get(Uri.parse(url))).body;
List<MManga> animeList = [];
final urls = xpath(doc, urlXpath);
final names = xpath(doc, nameXpath);
final images = xpath(doc, imageXpath);
if (urls.isEmpty || names.isEmpty || images.isEmpty) {
return MPages([], false);
}
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, urls.isNotEmpty);
}
@override
Future<MPages> getPopular(int page) async {
return _getMangaList("${source.baseUrl}/most-popular/?page=$page");
}
@override
Future<MPages> getLatestUpdates(int page) async {
return _getMangaList("${source.baseUrl}/recently-added/?page=$page");
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
String baseUrl = "${source.baseUrl}/filter?keyword=$query";
Map<String, List<String>> filterMap = {
"type": [],
"status": [],
"season": [],
"lang": [],
"genre": []
};
// Regroupement des filtres avec une logique générique
final filterHandlers = {
"TypeFilter": "type",
"LanguageFilter": "lang",
"SaisonFilter": "season",
"StatusFilter": "status",
"GenreFilter": "genre"
};
for (var filter in filterList.filters) {
if (filterHandlers.containsKey(filter.type)) {
var key = filterHandlers[filter.type]!;
for (var stateItem in filter.state as List) {
if (stateItem.state == true) {
filterMap[key]?.add(stateItem.value as String);
}
}
}
}
//add filters to the url dynamically
for (var entry in filterMap.entries) {
List<String> values = entry.value;
if (values.isNotEmpty) {
baseUrl += '&${entry.key}=${values.join("%2C")}';
}
}
return _getMangaList("$baseUrl&page=$page");
}
Future<MManga> getDetail(String url) async {
MManga anime = MManga();
try {
final doc = (await client.get(Uri.parse(url))).body;
final description = xpath(doc, '//p[contains(@class,"short")]/text()');
anime.description = description.isNotEmpty ? description.first : "";
final statusList = xpath(doc,
'//div[contains(@class,"col2")]//div[contains(@class,"item")]//div[contains(@class,"item-content")]/text()');
if (statusList.isNotEmpty) {
if (statusList[0] == "Terminer") {
anime.status = MStatus.completed;
} else if (statusList[0] == "En cours") {
anime.status = MStatus.ongoing;
} else {
anime.status = MStatus.unknown;
}
} else {
anime.status = MStatus.unknown;
}
anime.genre = xpath(doc,
'//div[contains(@class,"item")]//div[contains(@class,"item-content")]//a[contains(@href,"genre")]/text()');
final regex = RegExp(r'(\d+)$');
final match = regex.firstMatch(url);
if (match == null) {
throw Exception('Numéro de l\'épisode non trouvé dans l\'URL.');
}
final res = (await client.get(Uri.parse(
"${source.baseUrl}/ajax/episode/list/${match.group(1)}")))
.body;
List<MChapter> episodesList = [];
final episodeElements =
parseHtml(json.decode(res)["html"]).select(".ep-item");
// Associer chaque titre à son URL et récupérer les vidéos
for (var element in episodeElements) {
MChapter episode = MChapter();
episode.name = element.attr("title");
String id = substringAfterLast(element.attr("href"), "=");
episode.url = "${source.baseUrl}/ajax/episode/servers?episodeId=$id";
episodesList.add(episode);
}
anime.chapters = episodesList.reversed.toList();
return anime;
} catch (e) {
throw Exception('Erreur lors de la récupération des détails: $e');
}
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final videoRes = (await client
.get(Uri.parse(url), headers: {"Referer": "${source.baseUrl}/"}))
.body;
final lang = xpath(videoRes.replaceAll(r'\', ''),
'//div[contains(@class,"item server-item")]/@data-type');
final links = xpath(videoRes.replaceAll(r'\', ''),
'//div[contains(@class,"item server-item")]/@data-id');
final playersNames = xpath(videoRes.replaceAll(r'\', ''),
'//div[contains(@class,"item server-item")]/text()');
List<Map<String, String>> players = [];
for (int j = 0; j < links.length; j++) {
// schema of players https://v1.animesz.xyz/ajax/episode/servers?episodeId=(id_episode)
// schema or url https://v1.animesz.xyz/ajax/episode/sources?id=(player_id)&epid=(id_episode)
if (playersNames.isNotEmpty && playersNames[j] == "sibnet") {
final playerUrl =
"https://video.sibnet.ru/shell.php?videoid=${links[j]}";
players.add({"lang": lang[j], "player": playerUrl});
} else if (playersNames.isNotEmpty && playersNames[j] == "sendvid") {
final playerUrl = "https://sendvid.com/embed/${links[j]}";
players.add({"lang": lang[j], "player": playerUrl});
} else if (playersNames.isNotEmpty && playersNames[j] == "VidCDN") {
final playerUrl =
"https://r.vidcdn.xyz/v1/api/get_sources/${links[j].replaceFirst(RegExp(r'vidcdn$'), '')}";
players.add({"lang": lang[j], "player": playerUrl});
} else if (playersNames.isNotEmpty && playersNames[j] == "Voe") {
final playerUrl = "https://voe.sx/e/${links[j]}";
players.add({"lang": lang[j], "player": playerUrl});
} else if (playersNames.isNotEmpty && playersNames[j] == "Fmoon") {
final playerUrl =
"https://filemoon.sx/e/${links[j]}&data-realid=${links[j]}&epid=${substringAfter(url, "episodeId=")}";
players.add({"lang": lang[j], "player": playerUrl});
}
}
List<MVideo> videos = [];
for (var player in players) {
String lang = (player["lang"] as String).toUpperCase();
String playerUrl = player["player"];
List<MVideo> a = [];
if (playerUrl.contains("sendvid")) {
a = await sendVidExtractorr(playerUrl, "$lang ");
} else if (playerUrl.contains("sibnet.ru")) {
a = await sibnetExtractor(playerUrl, lang);
} else if (playerUrl.contains("voe.sx")) {
a = await voeExtractor(playerUrl, "$lang ");
} else if (playerUrl.contains("vidcdn")) {
a = await vidcdnExtractor(playerUrl, lang);
} else if (playerUrl.contains("filemoon")) {
a = await filemoonExtractor(playerUrl, "$lang Filemoon - ", "");
} else if (playerUrl.contains("vidhide")) {
a = await streamHideExtractor(playerUrl, lang);
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
Future<List<MVideo>> streamHideExtractor(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final masterUrl = substringBefore(
substringAfter(
substringAfter(
substringAfter(unpackJs(res), "sources:"), "file:\""),
"src:\""),
'"');
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
List<MVideo> videos = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "$prefix StreamHideVid - $quality";
videos.add(video);
}
return videos;
}
@override
List<dynamic> getFilterList() {
return [
GroupFilter("TypeFilter", "Type", [
CheckBoxFilter("Film", "1"),
CheckBoxFilter("Anime", "2"),
CheckBoxFilter("OVA", "3"),
CheckBoxFilter("ONA", "4"),
CheckBoxFilter("Special", "5"),
CheckBoxFilter("Music", "6"),
]),
GroupFilter("LanguageFilter", "Langue", [
CheckBoxFilter("VF", "3"),
CheckBoxFilter("VOSTFR", "4"),
CheckBoxFilter("Multicc", "2"),
CheckBoxFilter("EN", "1"),
]),
GroupFilter("SaisonFilter", "Saison", [
CheckBoxFilter("Printemps", "1"),
CheckBoxFilter("Été", "2"),
CheckBoxFilter("Automne", "3"),
CheckBoxFilter("Hiver", "4"),
]),
GroupFilter("StatusFilter", "Statut", [
CheckBoxFilter("Terminés", "1"),
CheckBoxFilter("En cours", "2"),
CheckBoxFilter("Pas encore diffusés", "3"),
]),
GroupFilter("GenreFilter", "Genre", [
CheckBoxFilter("Action", "1"),
CheckBoxFilter("Aventure", "2"),
CheckBoxFilter("Voitures", "3"),
CheckBoxFilter("Comédie", "4"),
CheckBoxFilter("Démence", "5"),
CheckBoxFilter("Démons", "6"),
CheckBoxFilter("Drame", "8"),
CheckBoxFilter("Ecchi", "9"),
CheckBoxFilter("Fantastique", "10"),
CheckBoxFilter("Jeu", "11"),
CheckBoxFilter("Harem", "35"),
CheckBoxFilter("Historique", "13"),
CheckBoxFilter("Horreur", "14"),
CheckBoxFilter("Isekai", "44"),
CheckBoxFilter("Josei", "43"),
CheckBoxFilter("Enfants", "25"),
CheckBoxFilter("Magie", "16"),
CheckBoxFilter("Arts martiaux", "17"),
CheckBoxFilter("Mecha", "18"),
CheckBoxFilter("Militaire", "38"),
CheckBoxFilter("Musique", "19"),
CheckBoxFilter("Mystère", "7"),
CheckBoxFilter("Parodie", "20"),
CheckBoxFilter("Police", "39"),
CheckBoxFilter("Psychologique", "40"),
CheckBoxFilter("Romance", "22"),
CheckBoxFilter("Samouraï", "21"),
CheckBoxFilter("École", "23"),
CheckBoxFilter("Science-Fiction", "24"),
CheckBoxFilter("Seinen", "42"),
CheckBoxFilter("Shoujo Ai", "26"),
CheckBoxFilter("Shoujo", "25"),
CheckBoxFilter("Shounen Ai", "28"),
CheckBoxFilter("Tranche de vie", "36"),
CheckBoxFilter("Shounen", "27"),
CheckBoxFilter("Espace", "29"),
CheckBoxFilter("Sports", "30"),
CheckBoxFilter("Super Pouvoir", "31"),
CheckBoxFilter("Surnaturel", "37"),
CheckBoxFilter("Vampire", "32"),
CheckBoxFilter("Yaoi", "33"),
CheckBoxFilter("Yuri", "34"),
])
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Qualité préférée",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"]),
ListPreference(
key: "voices_preference",
title: "Préférence des voix",
summary: "",
valueIndex: 0,
entries: ["Préférer VOSTFR", "Préférer VF"],
entryValues: ["vostfr", "vf"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
String voice = getPreferenceValue(sourceId, "voices_preference");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality) &&
a.quality.toLowerCase().contains(voice)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality) &&
b.quality.toLowerCase().contains(voice)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
Future<List<MVideo>> sendVidExtractorr(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final masterUrl = document.selectFirst("source#video_source")?.attr("src");
print(masterUrl);
if (masterUrl == null) return [];
final masterHeaders = {
"Accept": "*/*",
"Host": Uri.parse(masterUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
List<MVideo> videos = [];
if (masterUrl.contains(".m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
final videoHeaders = {
"Accept": "*/*",
"Host": Uri.parse(videoUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = prefix + "Sendvid:$quality"
..headers = videoHeaders;
videos.add(video);
}
} else {
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = prefix + "Sendvid:default"
..headers = masterHeaders;
videos.add(video);
}
return videos;
}
Future<List<MVideo>> vidcdnExtractor(String url, String prefix) async {
final res = await client.get(Uri.parse(url));
if (res.statusCode != 200) {
print("Erreur lors de la récupération de la page : ${res.statusCode}");
return [];
}
final jsonResponse = jsonDecode(res.body);
String masterUrl = jsonResponse['sources'][0]['file'] ?? '';
final quality = jsonResponse['quality'] ?? '';
List<MVideo> videos = [];
final masterPlaylistRes = await client.get(Uri.parse(masterUrl));
if (masterPlaylistRes.statusCode != 200) {
print(
"Error lors de la récupération de la playlist M3U8 : ${masterPlaylistRes.statusCode}");
return [];
}
final masterPlaylistBody = masterPlaylistRes.body;
final playlistLines = masterPlaylistBody.split("\n");
for (int i = 0; i < playlistLines.length; i++) {
final line = playlistLines[i];
if (line.startsWith("#EXT-X-STREAM-INF")) {
final resolutionLine = line.split("RESOLUTION=").last;
final resolution = resolutionLine.split(",").first;
final width = int.parse(resolution.split("x").first);
final height = int.parse(resolution.split("x").last);
String videoQuality;
if (height >= 1080) {
videoQuality = "1080p";
} else if (height >= 720) {
videoQuality = "720p";
} else if (height >= 480) {
videoQuality = "480p";
} else if (height >= 360) {
videoQuality = "360p";
} else {
videoQuality = "${height}p";
}
String videoUrl = playlistLines[i + 1].trim();
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.substring(0, masterUrl.lastIndexOf('/'))}/$videoUrl";
}
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = "$prefix VidCDN:$videoQuality";
videos.add(video);
}
}
return videos;
}
}
AniZone main(MSource source) {
return AniZone(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get aniZoneSource => _aniZoneSource;
const _aniZoneVersion = "0.0.2";
const _aniZoneSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/anizone/anizone.dart";
Source _aniZoneSource = Source(
name: "AniZone",
baseUrl: "https://v1.animesz.xyz",
lang: "fr",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/anizone/icon.png",
sourceCodeUrl: _aniZoneSourceCodeUrl,
version: _aniZoneVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,395 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class FrAnime extends MProvider {
FrAnime({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = await dataBase();
return animeResList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = await dataBase();
List list = json.decode(res);
return animeResList(json.encode(list.reversed.toList()));
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = await dataBase();
return animeSeachFetch(res, query);
}
@override
Future<MManga> getDetail(String url) async {
MManga anime = MManga();
String language = "vo".toString();
if (url.contains("lang=")) {
language = substringBefore(substringAfter(url, "lang="), "&");
}
String stem = substringBefore(substringAfterLast(url, "/"), "?");
final res = await dataBase();
final animeByTitleOJson = databaseAnimeByTitleO(res, stem);
final seasons = json.decode(animeByTitleOJson)["saisons"];
var seasonsJson = seasons.first;
if (url.contains("s=")) {
int seasonNumber =
int.parse(substringBefore(substringAfter(url, "s="), "&"));
seasonsJson = seasons[seasonNumber - 1];
}
List<MChapter>? episodesList = [];
final episodes = seasonsJson["episodes"];
for (int i = 0; i < episodes.length; i++) {
final ep = episodes[i];
final lang = ep["lang"];
final vo = lang["vo"];
final vf = lang["vf"];
bool hasVostfr = vo["lecteurs"].isNotEmpty;
bool hasVf = vf["lecteurs"].isNotEmpty;
bool playerIsNotEmpty = false;
if (language == "vo" && hasVostfr) {
playerIsNotEmpty = true;
} else if (language == "vf" && hasVf) {
playerIsNotEmpty = true;
}
if (playerIsNotEmpty) {
MChapter episode = MChapter();
episode.url = "$url&ep=${i + 1}";
String title = ep["title"];
episode.name = title.replaceAll('"', "");
episodesList.add(episode);
}
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
String language = "vo";
String videoBaseUrl = "https://api.franime.fr/api/anime";
if (url.contains("lang=")) {
language = substringBefore(substringAfter(url, "lang="), "&");
}
String stem = substringBefore(substringAfterLast(url, "/"), "?");
final res = await dataBase();
final animeByTitleOJson = databaseAnimeByTitleO(res, stem);
final animeId = json.decode(animeByTitleOJson)["id"];
final seasons = json.decode(animeByTitleOJson)["saisons"];
var seasonsJson = seasons.first;
videoBaseUrl += "/$animeId/";
if (url.contains("s=")) {
int seasonNumber =
int.parse(substringBefore(substringAfter(url, "s="), "&"));
videoBaseUrl += "${seasonNumber - 1}/";
seasonsJson = seasons[seasonNumber - 1];
} else {
videoBaseUrl += "0/";
}
final episodesJson = seasonsJson["episodes"];
var episode = episodesJson.first;
if (url.contains("ep=")) {
int episodeNumber = int.parse(substringAfter(url, "ep="));
episode = episodesJson[episodeNumber - 1];
videoBaseUrl += "${episodeNumber - 1}";
} else {
videoBaseUrl += "0";
}
final lang = episode["lang"];
final vo = lang["vo"];
final vf = lang["vf"];
bool hasVostfr = vo["lecteurs"].isNotEmpty;
bool hasVf = vf["lecteurs"].isNotEmpty;
List<String> vostfrPlayers = vo["lecteurs"];
List<String> vfPlayers = vf["lecteurs"];
List<String> players = [];
if (language == "vo" && hasVostfr) {
players = vostfrPlayers;
} else if (language == "vf" && hasVf) {
players = vfPlayers;
}
List<MVideo> videos = [];
for (var i = 0; i < players.length; i++) {
String apiUrl = "$videoBaseUrl/$language/$i";
String playerName = players[i];
MVideo video = MVideo();
final playerUrl = (await client.get(Uri.parse(apiUrl),
headers: {"Referer": "https://franime.fr/"}))
.body;
List<MVideo> a = [];
print(playerName);
if (playerName.contains("vido")) {
videos.add(video
..url = playerUrl
..originalUrl = playerUrl
..quality = "FRAnime (Vido)");
} else if (playerName.contains("sendvid")) {
a = await sendVidExtractorr(playerUrl, "");
} else if (playerName.contains("sibnet")) {
a = await sibnetExtractor(playerUrl);
}
videos.addAll(a);
}
return videos;
}
MPages animeResList(String res) {
final statusList = [
{"EN COURS": 0, "TERMINÉ": 1}
];
List<MManga> animeList = [];
var jsonResList = json.decode(res);
for (var animeJson in jsonResList) {
final seasons = animeJson["saisons"];
List<bool> vostfrListName = [];
List<bool> vfListName = [];
for (var season in seasons) {
for (var episode in season["episodes"]) {
final lang = episode["lang"];
final vo = lang["vo"];
final vf = lang["vf"];
vostfrListName.add(vo["lecteurs"].isNotEmpty);
vfListName.add(vf["lecteurs"].isNotEmpty);
}
}
String titleO = animeJson["titleO"];
final title = animeJson["title"];
final genre = animeJson["themes"];
final description = animeJson["description"];
final status = parseStatus(animeJson["status"], statusList);
final imageUrl = animeJson["affiche"];
bool hasVostfr = vostfrListName.contains(true);
bool hasVf = vfListName.contains(true);
if (hasVostfr || hasVf) {
for (int i = 0; i < seasons.length; i++) {
MManga anime = MManga();
int ind = i + 1;
anime.genre = genre;
anime.description = description;
String seasonTitle = "".toString();
String lang = "";
if (title.isEmpty) {
seasonTitle = titleO;
} else {
seasonTitle = title;
}
if (seasons.length > 1) {
seasonTitle += " S$ind";
}
if (hasVf) {
seasonTitle += " VF";
lang = "vf".toString();
}
if (hasVostfr) {
seasonTitle += " VOSTFR";
lang = "vo".toString();
}
anime.status = status;
anime.name = seasonTitle;
anime.imageUrl = imageUrl;
anime.link =
"/anime/${titleO.replaceAll(RegExp("[^A-Za-z0-9 ]"), "").replaceAll(" ", "-").toLowerCase()}?lang=$lang&s=$ind";
animeList.add(anime);
}
}
}
return MPages(animeList, true);
}
MPages animeSeachFetch(String res, String query) {
final statusList = [
{"EN COURS": 0, "TERMINÉ": 1}
];
List<MManga> animeList = [];
final jsonResList = json.decode(res);
for (var animeJson in jsonResList) {
MManga anime = MManga();
final titleO = getMapValue(json.encode(animeJson), "titleO");
final titleAlt =
getMapValue(json.encode(animeJson), "titles", encode: true);
final containsEn = getMapValue(titleAlt, "en")
.toString()
.toLowerCase()
.contains(query.toLowerCase());
final containsEnJp = getMapValue(titleAlt, "en_jp")
.toString()
.toLowerCase()
.contains(query.toLowerCase());
final containsJaJp = getMapValue(titleAlt, "ja_jp")
.toString()
.toLowerCase()
.contains(query.toLowerCase());
final containsTitleO = titleO.toLowerCase().contains(query.toLowerCase());
if (containsEn || containsEnJp || containsJaJp || containsTitleO) {
final seasons = animeJson["saisons"];
List<bool> vostfrListName = [];
List<bool> vfListName = [];
for (var season in seasons) {
for (var episode in season["episodes"]) {
final lang = episode["lang"];
final vo = lang["vo"];
final vf = lang["vf"];
vostfrListName.add(vo["lecteurs"].isNotEmpty);
vfListName.add(vf["lecteurs"].isNotEmpty);
}
}
String titleO = animeJson["titleO"];
final title = animeJson["title"];
final genre = animeJson["themes"];
final description = animeJson["description"];
final status = parseStatus(animeJson["status"], statusList);
final imageUrl = animeJson["affiche"];
bool hasVostfr = vostfrListName.contains(true);
bool hasVf = vfListName.contains(true);
if (hasVostfr || hasVf) {
for (int i = 0; i < seasons.length; i++) {
MManga anime = MManga();
int ind = i + 1;
anime.genre = genre;
anime.description = description;
String seasonTitle = "".toString();
String lang = "";
if (title.isEmpty) {
seasonTitle = titleO;
} else {
seasonTitle = title;
}
if (seasons.length > 1) {
seasonTitle += " S$ind";
}
if (hasVf) {
seasonTitle += " VF";
lang = "vf".toString();
}
if (hasVostfr) {
seasonTitle += " VOSTFR";
lang = "vo".toString();
}
anime.status = status;
anime.name = seasonTitle;
anime.imageUrl = imageUrl;
anime.link =
"/anime/${titleO.replaceAll(RegExp("[^A-Za-z0-9 ]"), "").replaceAll(" ", "-").toLowerCase()}?lang=$lang&s=$ind";
animeList.add(anime);
}
}
}
}
return MPages(animeList, true);
}
Future<String> dataBase() async {
return (await client.get(Uri.parse("https://api.franime.fr/api/animes/"),
headers: {"Referer": "https://franime.fr/"}))
.body;
}
String databaseAnimeByTitleO(String res, String titleO) {
final datas = json.decode(res) as List<Map<String, dynamic>>;
for (var data in datas) {
String title =
(data["titleO"] as String).replaceAll(RegExp("[^A-Za-z0-9 ]"), "");
if (title.replaceAll(" ", "-").toLowerCase() == "${titleO}") {
return json.encode(data);
}
}
return "";
}
Future<List<MVideo>> sendVidExtractorr(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final masterUrl = document.selectFirst("source#video_source")?.attr("src");
if (masterUrl == null) return [];
final masterHeaders = {
"Accept": "*/*",
"Host": Uri.parse(masterUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
List<MVideo> videos = [];
if (masterUrl.contains(".m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
final videoHeaders = {
"Accept": "*/*",
"Host": Uri.parse(videoUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = prefix + "Sendvid:$quality"
..headers = videoHeaders;
videos.add(video);
}
} else {
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = prefix + "Sendvid:default"
..headers = masterHeaders;
videos.add(video);
}
return videos;
}
}
FrAnime main(MSource source) {
return FrAnime(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -0,0 +1,18 @@
import '../../../../../model/source.dart';
Source get franimeSource => _franimeSource;
const _franimeVersion = "0.0.75";
const _franimeSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/franime/franime.dart";
Source _franimeSource = Source(
name: "FrAnime",
baseUrl: "https://franime.fr",
apiUrl: "https://api.franime.fr",
lang: "fr",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/franime/icon.png",
sourceCodeUrl: _franimeSourceCodeUrl,
version: _franimeVersion,
itemType: ItemType.anime,
isFullData: true);

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,465 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class OtakuFr extends MProvider {
OtakuFr({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "overrideBaseUrl");
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl/en-cours/page/$page"))).body;
List<MManga> animeList = [];
final urls =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/@href');
final names =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/img/@title');
final images =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage = xpath(res, '//a[@class="next page-link"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(Uri.parse("$baseUrl/page/$page/"))).body;
List<MManga> animeList = [];
final urls = xpath(res, '//*[@class="episode"]/div/a/@href');
final namess = xpath(res, '//*[@class="episode"]/div/a/text()');
List<String> names = [];
for (var name in namess) {
names.add(regExp(
name,
r'(?<=\bS\d\s*|)\d{2}\s*(?=\b(Vostfr|vostfr|VF|Vf|vf|\(VF\)|\(vf\)|\(Vf\)|\(Vostfr\)\b))?',
'',
0,
0)
.replaceAll(' vostfr', '')
.replaceAll(' Vostfr', '')
.replaceAll(' VF', '')
.replaceAll(' Vf', '')
.replaceAll(' vf', '')
.replaceAll(' (VF)', '')
.replaceAll(' (vf)', '')
.replaceAll(' (vf)', '')
.replaceAll(' (Vf)', '')
.replaceAll(' (Vostfr)', ''));
}
final images = xpath(res, '//*[@class="episode"]/div/figure/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage = xpath(res, '//a[@class="next page-link"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "";
if (query.isNotEmpty) {
url = "$baseUrl/toute-la-liste-affiches/page/$page/?q=$query";
} else {
for (var filter in filters) {
if (filter.type == "GenreFilter") {
if (filter.state != 0) {
url = "$baseUrl/${filter.values[filter.state].value}page/$page";
}
} else if (filter.type == "SubPageFilter") {
if (url.isEmpty) {
if (filter.state != 0) {
url = "$baseUrl/${filter.values[filter.state].value}page/$page";
}
}
}
}
}
final res = (await client.get(Uri.parse(url))).body;
List<MManga> animeList = [];
final urls =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/@href');
final names =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/img/@title');
final images =
xpath(res, '//*[@class="list"]/article/div/div/figure/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final nextPage = xpath(res, '//a[@class="next page-link"]/@href');
return MPages(animeList, nextPage.isNotEmpty);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"En cours": 0, "Terminé": 1}
];
String res =
(await client.get(Uri.parse("$baseUrl${getUrlWithoutDomain(url)}")))
.body;
MManga anime = MManga();
final originalUrl = xpath(res,
'//*[@class="breadcrumb"]/li[@class="breadcrumb-item"][2]/a/@href');
if (originalUrl.isNotEmpty) {
res = (await client.get(Uri.parse(originalUrl.first))).body;
}
final description =
xpath(res, '//*[@class="episode fz-sm synop"]/p/text()');
if (description.isNotEmpty) {
anime.description = description.first.replaceAll("Synopsis:", "");
}
final status = xpath(res,
'//*[@class="list-unstyled"]/li[contains(text(),"Statut")]/text()');
if (status.isNotEmpty) {
anime.status =
parseStatus(status.first.replaceAll("Statut: ", ""), statusList);
}
anime.genre = xpath(res,
'//*[@class="list-unstyled"]/li[contains(text(),"Genre")]/ul/li/a/text()');
final epUrls = xpath(res, '//*[@class="list-episodes list-group"]/a/@href');
final dates =
xpath(res, '//*[@class="list-episodes list-group"]/a/span/text()');
final names = xpath(res, '//*[@class="list-episodes list-group"]/a/text()');
List<String> episodes = [];
for (var i = 0; i < names.length; i++) {
final date = dates[i];
final name = names[i];
episodes.add(
"Episode ${regExp(name.replaceAll(date, ""), r".* (\d*) [VvfF]{1,1}", '', 1, 1)}");
}
final dateUploads = parseDates(dates, "dd MMMM yyyy", "fr");
List<MChapter>? episodesList = [];
for (var i = 0; i < episodes.length; i++) {
MChapter episode = MChapter();
episode.name = episodes[i];
episode.url = epUrls[i];
episode.dateUpload = dateUploads[i];
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res =
(await client.get(Uri.parse("$baseUrl${getUrlWithoutDomain(url)}")))
.body;
final servers = parseHtml(res).select("div.tab-content iframe[src]");
List<MVideo> videos = [];
final hosterSelection = preferenceHosterSelection(source.id);
for (var url in servers) {
final urll = url.getSrc != "about:blank" ? url.getSrc : url.getDataSrc;
final resServer = (await client.get(Uri.parse(fixUrl(urll)),
headers: {"X-Requested-With": "XMLHttpRequest"}))
.body;
final serverUrl =
fixUrl(regExp(resServer, r"data-url='([^']+)'", '', 1, 1));
List<MVideo> a = [];
if (serverUrl.contains("https://streamwish") &&
hosterSelection.contains("Streamwish")) {
a = await streamWishExtractor(serverUrl, "StreamWish");
} else if (serverUrl.contains("https://doo") &&
hosterSelection.contains("Doodstream")) {
a = await doodExtractor(serverUrl);
} else if (containsVidBom(serverUrl) &&
hosterSelection.contains("VidBom")) {
a = await vidBomExtractor(serverUrl);
} else if (serverUrl.contains("https://ok.ru") &&
hosterSelection.contains("Okru")) {
a = await okruExtractor(serverUrl);
} else if (serverUrl.contains("upstream") &&
hosterSelection.contains("Upstream")) {
a = await upstreamExtractor(serverUrl);
} else if (serverUrl.contains("sendvid") &&
hosterSelection.contains("Sendvid")) {
a = await sendVidExtractorr(serverUrl, "");
} else if (serverUrl.contains("voe.sx") &&
hosterSelection.contains("Voe")) {
a = await voeExtractor(serverUrl, "");
}
videos.addAll(a);
}
return videos;
}
String fixUrl(String url) {
return regExp(url, r"^(?:(?:https?:)?//|www\.)", 'https://', 0, 0);
}
bool containsVidBom(String url) {
url = url;
final list = ["vidbam", "vadbam", "vidbom", "vidbm"];
for (var n in list) {
if (url.contains(n)) {
return true;
}
}
return false;
}
@override
List<dynamic> getFilterList() {
return [
HeaderFilter("La recherche de texte ignore les filtres"),
SelectFilter("GenreFilter", "Genre", 0, [
SelectFilterOption("<Selectionner>", ""),
SelectFilterOption("Action", "/genre/action/"),
SelectFilterOption("Aventure", "/genre/aventure/"),
SelectFilterOption("Comedie", "/genre/comedie/"),
SelectFilterOption("Crime", "/genre/crime/"),
SelectFilterOption("Démons", "/genre/demons/"),
SelectFilterOption("Drame", "/genre/drame/"),
SelectFilterOption("Ecchi", "/genre/ecchi/"),
SelectFilterOption("Espace", "/genre/espace/"),
SelectFilterOption("Fantastique", "/genre/fantastique/"),
SelectFilterOption("Gore", "/genre/gore/"),
SelectFilterOption("Harem", "/genre/harem/"),
SelectFilterOption("Historique", "/genre/historique/"),
SelectFilterOption("Horreur", "/genre/horreur/"),
SelectFilterOption("Isekai", "/genre/isekai/"),
SelectFilterOption("Jeux", "/genre/jeu/"),
SelectFilterOption("L'école", "/genre/lecole/"),
SelectFilterOption("Magical girls", "/genre/magical-girls/"),
SelectFilterOption("Magie", "/genre/magie/"),
SelectFilterOption("Martial Arts", "/genre/martial-arts/"),
SelectFilterOption("Mecha", "/genre/mecha/"),
SelectFilterOption("Militaire", "/genre/militaire/"),
SelectFilterOption("Musique", "/genre/musique/"),
SelectFilterOption("Mysterieux", "/genre/mysterieux/"),
SelectFilterOption("Parodie", "/genre/Parodie/"),
SelectFilterOption("Police", "/genre/police/"),
SelectFilterOption("Psychologique", "/genre/psychologique/"),
SelectFilterOption("Romance", "/genre/romance/"),
SelectFilterOption("Samurai", "/genre/samurai/"),
SelectFilterOption("Sci-Fi", "/genre/sci-fi/"),
SelectFilterOption("Seinen", "/genre/seinen/"),
SelectFilterOption("Shoujo", "/genre/shoujo/"),
SelectFilterOption("Shoujo Ai", "/genre/shoujo-ai/"),
SelectFilterOption("Shounen", "/genre/shounen/"),
SelectFilterOption("Shounen Ai", "/genre/shounen-ai/"),
SelectFilterOption("Sport", "/genre/sport/"),
SelectFilterOption("Super Power", "/genre/super-power/"),
SelectFilterOption("Surnaturel", "/genre/surnaturel/"),
SelectFilterOption("Suspense", "/genre/suspense/"),
SelectFilterOption("Thriller", "/genre/thriller/"),
SelectFilterOption("Tranche de vie", "/genre/tranche-de-vie/"),
SelectFilterOption("Vampire", "/genre/vampire/")
]),
SelectFilter("SubPageFilter", "Sous page", 0, [
SelectFilterOption("<Selectionner>", ""),
SelectFilterOption("Terminé", "/termine/"),
SelectFilterOption("Film", "/film/"),
])
];
}
@override
List<dynamic> getSourcePreferences() {
return [
EditTextPreference(
key: "overrideBaseUrl",
title: "Changer l'url de base",
summary: "",
value: "https://otakufr.cc",
dialogTitle: "Changer l'url de base",
dialogMessage: "",
text: "https://otakufr.cc"),
ListPreference(
key: "preferred_quality",
title: "Qualité préférée",
summary: "",
valueIndex: 1,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"]),
MultiSelectListPreference(
key: "hoster_selection_",
title: "Enable/Disable Hosts",
summary: "",
entries: [
"Streamwish",
"Doodstream",
"Sendvid",
"VidBom",
"Okru",
"Voe",
"Sibnet",
"Upstream"
],
entryValues: [
"Streamwish",
"Doodstream",
"Sendvid",
"VidBom",
"Okru",
"Voe",
"Sibnet",
"Upstream"
],
values: [
"Streamwish",
"Doodstream",
"Sendvid",
"Vidbm",
"Okru",
"Voe",
"Sibnet",
"Upstream"
]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
List<String> preferenceHosterSelection(int sourceId) {
return getPreferenceValue(sourceId, "hoster_selection_");
}
Future<List<MVideo>> sendVidExtractorr(String url, String prefix) async {
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
final masterUrl = document.selectFirst("source#video_source")?.attr("src");
if (masterUrl == null) return [];
final masterHeaders = {
"Accept": "*/*",
"Host": Uri.parse(masterUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
List<MVideo> videos = [];
if (masterUrl.contains(".m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
final videoHeaders = {
"Accept": "*/*",
"Host": Uri.parse(videoUrl).host,
"Origin": "https://${Uri.parse(url).host}",
"Referer": "https://${Uri.parse(url).host}/",
};
var video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = prefix + "Sendvid:$quality"
..headers = videoHeaders;
videos.add(video);
}
} else {
var video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = prefix + "Sendvid:default"
..headers = masterHeaders;
videos.add(video);
}
return videos;
}
Future<List<MVideo>> upstreamExtractor(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final js = xpath(res, '//script[contains(text(), "m3u8")]/text()');
if (js.isEmpty) {
return [];
}
final masterUrl =
substringBefore(substringAfter(unpackJs(js.first), "{file:\""), "\"}");
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
List<MVideo> videos = [];
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Upstream - $quality";
videos.add(video);
}
return videos;
}
}
OtakuFr main(MSource source) {
return OtakuFr(source: source);
}

View file

@ -0,0 +1,17 @@
import '../../../../../model/source.dart';
Source get otakufr => _otakufr;
const otakufrVersion = "0.0.95";
const otakufrCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/otakufr/otakufr.dart";
Source _otakufr = Source(
name: "OtakuFr",
baseUrl: "https://otakufr.cc",
lang: "fr",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/otakufr/icon.png",
sourceCodeUrl: otakufrCodeUrl,
version: otakufrVersion,
itemType: ItemType.anime,
isFullData: false);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get yomoviesSource => _yomoviesSource;
const _yomoviesVersion = "0.0.25";
const _yomoviesSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/hi/yomovies/yomovies.dart";
Source _yomoviesSource = Source(
name: "YoMovies",
baseUrl: "https://yomovies.boo",
lang: "hi",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/hi/yomovies/icon.png",
sourceCodeUrl: _yomoviesSourceCodeUrl,
version: _yomoviesVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,342 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class YoMovies extends MProvider {
YoMovies({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "overrideBaseUrl");
@override
bool get supportsLatest => false;
@override
Future<MPages> getPopular(int page) async {
String pageNu = page == 1 ? "" : "page/$page/";
final res =
(await client.get(Uri.parse("$baseUrl/most-favorites/$pageNu"))).body;
final document = parseHtml(res);
return animeFromElement(
document.select("div.movies-list > div.ml-item"),
document.selectFirst("ul.pagination > li.active + li")?.getHref !=
null);
}
@override
Future<MPages> getLatestUpdates(int page) async {
return MPages([], false);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "";
String pageNu = page == 1 ? "" : "/page/$page";
if (query.isNotEmpty) {
url = "$baseUrl$pageNu/?s=$query";
} else {
for (var filter in filters) {
if (filter.type.isNotEmpty) {
final first = filter.values[filter.state].value;
if (first.isNotEmpty) {
url = first;
}
}
}
url = "$baseUrl$url$pageNu";
}
final res = (await client.get(Uri.parse(url))).body;
final document = parseHtml(res);
return animeFromElement(
document.select("div.movies-list > div.ml-item"),
document.selectFirst("ul.pagination > li.active + li")?.getHref !=
null);
}
@override
Future<MManga> getDetail(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
MManga anime = MManga();
var infoElement = document.selectFirst("div.mvi-content");
anime.description = infoElement.selectFirst("p.f-desc")?.text ?? "";
anime.genre = xpath(res,
'//div[@class="mvici-left" and contains(text(),"Genre:")]/p/a/text()');
List<MChapter> episodeList = [];
final seasonListElements = document.select("div#seasons > div.tvseason");
if (seasonListElements.isEmpty) {
MChapter ep = MChapter();
ep.name = "Movie";
ep.url = url;
episodeList.add(ep);
} else {
for (var season in seasonListElements) {
var seasonText = season.selectFirst("div.les-title").text.trim();
for (var episode in season.select("div.les-content > a")) {
var epNumber = substringAfter(episode.text.trim(), "pisode ");
MChapter ep = MChapter();
ep.name = "$seasonText Ep. $epNumber";
ep.url = episode.getHref;
episodeList.add(ep);
}
}
}
anime.chapters = episodeList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
url = getUrlWithoutDomain(url);
final res = (await client.get(Uri.parse("$baseUrl$url"))).body;
final document = parseHtml(res);
final serverElements = document.select("div.movieplay > iframe");
List<MVideo> videos = [];
for (var serverElement in serverElements) {
var url = serverElement.getSrc;
List<MVideo> a = [];
if (url.contains("minoplres")) {
a = await minoplresExtractor(url);
}
videos.addAll(a);
}
return sortVideos(videos, source.id);
}
@override
List<dynamic> getSourcePreferences() {
return [
EditTextPreference(
key: "overrideBaseUrl",
title: "Override BaseUrl",
summary: "",
value: "https://yomovies.boo",
dialogTitle: "Override BaseUrl",
dialogMessage: "",
text: "https://yomovies.boo"),
ListPreference(
key: "preferred_quality",
title: "Preferred quality",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"])
];
}
Future<List<MVideo>> minoplresExtractor(String url) async {
List<MVideo> videos = [];
final res =
(await client.get(Uri.parse(url), headers: {"Referer": url})).body;
final script = xpath(res, '//script[contains(text(),"sources:")]/text()');
if (script.isEmpty) return [];
final masterUrl =
substringBefore(substringAfter(script.first, "file:\""), '"');
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Minoplres - $quality";
videos.add(video);
}
return videos;
}
MPages animeFromElement(List<MElement> elements, bool hasNextPage) {
List<MManga> animeList = [];
for (var element in elements) {
MManga anime = MManga();
anime.name = element.selectFirst("div.qtip-title").text;
anime.imageUrl =
element.selectFirst("img[data-original]")?.attr("data-original") ??
"";
anime.link = element.selectFirst("a[href]").getHref;
animeList.add(anime);
}
return MPages(animeList, hasNextPage);
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
@override
List<dynamic> getFilterList() {
return [
HeaderFilter(
"Note: Only one selection at a time works, and it ignores text search"),
SeparatorFilter(),
SelectFilter("BollywoodFilter", "Bollywood", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Bollywood", "/genre/bollywood"),
SelectFilterOption("Trending", "/genre/top-rated"),
SelectFilterOption("Bollywood (2024)",
"/account/?ptype=post&tax_category%5B%5D=bollywood&tax_release-year=2024&wpas=1"),
SelectFilterOption("Bollywood (2023)",
"/account/?ptype=post&tax_category%5B%5D=bollywood&tax_release-year=2023&wpas=1"),
SelectFilterOption("Bollywood (2022)",
"/account/?ptype=post&tax_category%5B%5D=bollywood&tax_release-year=2022&wpas=1"),
SelectFilterOption("Bollywood (2021)",
"/account/?ptype=post&tax_category%5B%5D=bollywood&tax_release-year=2021&wpas=1"),
]),
SelectFilter("DualAudioFilter", "Dual Audio", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Dual Audio", "/genre/dual-audio"),
SelectFilterOption("Hollywood Dubbed",
"/account/?ptype=post&tax_category%5B%5D=dual-audio&wpas=1"),
SelectFilterOption("South Dubbed",
"/account/?ptype=post&tax_category%5B%5D=dual-audio&tax_category%5B%5D=south-special&wpas=1"),
]),
SelectFilter("HollywoodFilter", "Hollywood", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Hollywood", "/genre/hollywood"),
SelectFilterOption("Hollywood (2023)",
"/account/?ptype=post&tax_category%5B%5D=hollywood&tax_release-year=2023&wpas=1"),
SelectFilterOption("Hollywood (2022)",
"/account/?ptype=post&tax_category%5B%5D=hollywood&tax_release-year=2022&wpas=1"),
SelectFilterOption("Hollywood (2021)",
"/account/?ptype=post&tax_category%5B%5D=hollywood&tax_release-year=2021&wpas=1"),
]),
SelectFilter("EnglishSeriesFilter", "Hindi Series", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("English Series", "/series"),
]),
SelectFilter("HindiSeriesFilter", "English Series", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Hindi Series", "/genre/web-series"),
SelectFilterOption("Netflix", "/director/netflix"),
SelectFilterOption("Amazon", "/director/amazon-prime"),
SelectFilterOption("Altbalaji", "/director/altbalaji"),
SelectFilterOption("Zee5", "/director/zee5"),
SelectFilterOption("Voot", "/director/voot-originals"),
SelectFilterOption("Mx Player", "/director/mx-player"),
SelectFilterOption("Hotstar", "/director/hotstar"),
SelectFilterOption("Viu", "/director/viu-originals"),
SelectFilterOption("Sony Liv", "/director/sonyliv-original"),
]),
SelectFilter("GenreFilter", "Genre", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Action", "/genre/action"),
SelectFilterOption("Adventure", "/genre/adventure"),
SelectFilterOption("Animation", "/genre/animation"),
SelectFilterOption("Biography", "/genre/biography"),
SelectFilterOption("Comedy", "/genre/comedy"),
SelectFilterOption("Crime", "/genre/crime"),
SelectFilterOption("Drama", "/genre/drama"),
SelectFilterOption("Music", "/genre/music"),
SelectFilterOption("Mystery", "/genre/mystery"),
SelectFilterOption("Family", "/genre/family"),
SelectFilterOption("Fantasy", "/genre/fantasy"),
SelectFilterOption("Horror", "/genre/horror"),
SelectFilterOption("History", "/genre/history"),
SelectFilterOption("Romance", "/genre/romantic"),
SelectFilterOption("Science Fiction", "/genre/science-fiction"),
SelectFilterOption("Thriller", "/genre/thriller"),
SelectFilterOption("War", "/genre/war"),
]),
SelectFilter("ExtraMoviesFilter", "ExtraMovies", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("ExtraMovies", "/genre/south-special"),
SelectFilterOption("Bengali", "/genre/bengali"),
SelectFilterOption("Marathi", "/genre/marathi"),
SelectFilterOption("Gujarati", "/genre/gujarati"),
SelectFilterOption("Punjabi", "/genre/punjabi"),
SelectFilterOption("Tamil", "/genre/tamil"),
SelectFilterOption("Telugu", "/genre/telugu"),
SelectFilterOption("Malayalam", "/genre/malayalam"),
SelectFilterOption("Kannada", "/genre/kannada"),
SelectFilterOption("Pakistani", "/genre/pakistani"),
]),
SelectFilter("EroticFilter", "Erotic", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Erotic", "/genre/erotic-movies"),
]),
SelectFilter("HotSeriesFilter", "Hot Series", 0, [
SelectFilterOption("<select>", ""),
SelectFilterOption("Hot Series", "/genre/tv-shows"),
SelectFilterOption("Uncut", "/?s=uncut"),
SelectFilterOption("Fliz Movies", "/director/fliz-movies"),
SelectFilterOption("Nuefliks", "/director/nuefliks-exclusive"),
SelectFilterOption("Hotshots", "/director/hotshots"),
SelectFilterOption("Ullu Originals", "/?s=ullu"),
SelectFilterOption("Kooku", "/director/kooku-originals"),
SelectFilterOption("Gupchup", "/director/gupchup-exclusive"),
SelectFilterOption("Feneomovies", "/director/feneomovies"),
SelectFilterOption("Cinemadosti", "/director/cinemadosti"),
SelectFilterOption("Primeflix", "/director/primeflix"),
SelectFilterOption("Gemplex", "/director/gemplex"),
SelectFilterOption("Rabbit", "/director/rabbit-original"),
SelectFilterOption("HotMasti", "/director/hotmasti-originals"),
SelectFilterOption("BoomMovies", "/director/boommovies-original"),
SelectFilterOption("CliffMovies", "/director/cliff-movies"),
SelectFilterOption("MastiPrime", "/director/masti-prime-originals"),
SelectFilterOption("Ek Night Show", "/director/ek-night-show"),
SelectFilterOption("Flixsksmovies", "/director/flixsksmovies"),
SelectFilterOption("Lootlo", "/director/lootlo-original"),
SelectFilterOption("Hootzy", "/director/hootzy-channel"),
SelectFilterOption("Balloons", "/director/balloons-originals"),
SelectFilterOption(
"Big Movie Zoo", "/director/big-movie-zoo-originals"),
SelectFilterOption("Bambooflix", "/director/bambooflix"),
SelectFilterOption("Piliflix", "/director/piliflix-originals"),
SelectFilterOption("11upmovies", "/director/11upmovies-originals"),
SelectFilterOption("Eightshots", "/director/eightshots-originals"),
SelectFilterOption(
"I-Entertainment", "/director/i-entertainment-exclusive"),
SelectFilterOption("Hotprime", "/director/hotprime-originals"),
SelectFilterOption("BananaPrime", "/director/banana-prime"),
SelectFilterOption("HotHitFilms", "/director/hothitfilms"),
SelectFilterOption("Chikooflix", "/director/chikooflix-originals"),
SelectFilterOption("Glamheart", "/?s=glamheart"),
SelectFilterOption("Worldprime", "/director/worldprime-originals"),
]),
];
}
}
YoMovies main(MSource source) {
return YoMovies(source: source);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -0,0 +1,182 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class NimeGami extends MProvider {
NimeGami({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("${source.baseUrl}/page/$page"))).body;
List<MManga> animeList = [];
final urls = xpath(res, '//div[@class="wrapper-2-a"]/article/a/@href');
final names = xpath(res, '//div[@class="wrapper-2-a"]/article/a/@title');
final images =
xpath(res, '//div[@class="wrapper-2-a"]/article/a/div/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, true);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res =
(await client.get(Uri.parse("${source.baseUrl}/page/$page"))).body;
List<MManga> animeList = [];
final urls = xpath(res, '//div[@class="post-article"]/article/div/a/@href');
final names =
xpath(res, '//div[@class="post-article"]/article/div/a/@title');
final images =
xpath(res, '//div[@class="post-article"]/article/div/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, true);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client.get(
Uri.parse("${source.baseUrl}/page/$page/?s=$query&post_type=post")))
.body;
List<MManga> animeList = [];
final urls = xpath(res, '//div[@class="archive-a"]/article/div/a/@href');
final names = xpath(res, '//div[@class="archive-a"]/article/h2/a/@title');
final images =
xpath(res, '//div[@class="archive-a"]/article/div/a/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, true);
}
@override
Future<MManga> getDetail(String url) async {
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final description = xpath(res, '//*[@id="Sinopsis"]/p/text()');
if (description.isNotEmpty) {
anime.description = description.first;
}
final author = xpath(res, '//tbody/tr[5]/td[2]/text()');
if (author.isNotEmpty) {
anime.author = author.first;
}
anime.genre = xpath(res, '//tr/td[@class="info_a"]/a/text()');
final epUrls = xpath(res, '//div[@class="list_eps_stream"]/li/@data')
.reversed
.toList();
final epNums =
xpath(res, '//div[@class="list_eps_stream"]/li/@id').reversed.toList();
final names = xpath(res, '//div[@class="list_eps_stream"]/li/text()')
.reversed
.toList();
List<MChapter>? episodesList = [];
for (var i = 0; i < epUrls.length; i++) {
MChapter episode = MChapter();
episode.name = names[i];
episode.url = json.encode({
"episodeIndex": int.parse(substringAfterLast(epNums[i], '_')),
'urls': json.decode(utf8.decode(base64Url.decode(epUrls[i])))
});
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final resJson = json.decode(url);
final urls = resJson["urls"];
List<MVideo> videos = [];
List<MVideo> a = [];
for (var data in urls) {
final quality = data["format"];
for (var url in data["url"]) {
a = await extractVideos(quality, url);
videos.addAll(a);
}
}
return videos;
}
Future<List<MVideo>> extractVideos(String quality, String url) async {
List<MVideo> videos = [];
if (url.contains("video.nimegami.id")) {
final realUrl = utf8.decode(
base64Url.decode(substringBefore(substringAfter(url, "url="), "&")));
final a = await extractHXFileVideos(realUrl, quality);
videos.addAll(a);
} else if (url.contains("berkasdrive") || url.contains("drive.nimegami")) {
final res = (await client.get(Uri.parse(url))).body;
final source = xpath(res, '//source/@src');
if (source.isNotEmpty) {
videos.add(toVideo(source.first, "Berkasdrive - $quality"));
}
} else if (url.contains("hxfile.co")) {
final a = await extractHXFileVideos(url, quality);
videos.addAll(a);
}
return videos;
}
Future<List<MVideo>> extractHXFileVideos(String url, String quality) async {
if (!url.contains("embed-")) {
url = url.replaceAll(".co/", ".co/embed-") + ".html";
}
final res = (await client.get(Uri.parse(url))).body;
final script = xpath(res,
'//script[contains(text(), "eval") and contains(text(), "p,a,c,k,e,d")]/text()');
if (script.isNotEmpty) {
final videoUrl = substringBefore(
substringAfter(
substringAfter(unpackJs(script.first), "sources:[", ""),
"file\":\"",
""),
'"');
if (videoUrl.isNotEmpty) {
return [toVideo(videoUrl, "HXFile - $quality")];
}
}
return [];
}
MVideo toVideo(String videoUrl, String quality) {
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = quality
..subtitles = [];
return video;
}
}
NimeGami main(MSource source) {
return NimeGami(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get nimegami => _nimegami;
const _nimegamiVersion = "0.0.55";
const _nimegamiCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/nimegami/nimegami.dart";
Source _nimegami = Source(
name: "NimeGami",
baseUrl: "https://nimegami.id",
lang: "id",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/nimegami/icon.png",
sourceCodeUrl: _nimegamiCodeUrl,
version: _nimegamiVersion,
itemType: ItemType.anime);

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,154 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class OploVerz extends MProvider {
OploVerz({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client.get(Uri.parse(
"${source.baseUrl}/anime-list/page/$page/?order=popular")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res = (await client.get(
Uri.parse("${source.baseUrl}/anime-list/page/$page/?order=latest")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res = (await client.get(
Uri.parse("${source.baseUrl}/anime-list/page/$page/?title=$query")))
.body;
return parseAnimeList(res);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"ongoing": 0, "completed": 1}
];
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final status = xpath(res, '//*[@class="alternati"]/span[2]/text()');
if (status.isNotEmpty) {
anime.status = parseStatus(status.first, statusList);
}
anime.description = xpath(res, '//*[@class="desc"]/div/text()').first;
anime.genre = xpath(res, '//*[@class="genre-info"]/a/text()');
final epUrls =
xpath(res, '//div[@class="epsleft")]/span[@class="lchx"]/a/@href');
final names =
xpath(res, '//div[@class="epsleft")]/span[@class="lchx"]/a/text()');
final dates =
xpath(res, '//div[@class="epsleft")]/span[@class="date"]/text()');
final dateUploads = parseDates(dates, "dd/MM/yyyy", "id");
List<MChapter>? episodesList = [];
for (var i = 0; i < epUrls.length; i++) {
MChapter episode = MChapter();
episode.name = names[i];
episode.dateUpload = dateUploads[i];
episode.url = epUrls[i];
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final dataPost = xpath(res,
'//*[@id="server"]/ul/li/div[contains(@id,"player-option")]/@data-post')
.first;
final dataNume = xpath(res,
'//*[@id="server"]/ul/li/div[contains(@id,"player-option")]/@data-nume')
.first;
final dataType = xpath(res,
'//*[@id="server"]/ul/li/div[contains(@id,"player-option")]/@data-type')
.first;
final ress = (await client.post(
Uri.parse("${source.baseUrl}/wp-admin/admin-ajax.php"),
headers: {
"_": "_"
},
body: {
"action": "player_ajax",
"post": dataPost,
"nume": dataNume,
"type": dataType
}))
.body;
final playerLink =
xpath(ress, '//iframe[@class="playeriframe"]/@src').first;
final resPlayer = (await client.get(Uri.parse(playerLink))).body;
var resJson = substringBefore(substringAfter(resPlayer, "= "), "<");
var streams = json.decode(resJson)["streams"] as List<Map<String, dynamic>>;
List<MVideo> videos = [];
for (var stream in streams) {
String videoUrl = stream["play_url"];
final quality = getQuality(stream["format_id"]);
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = quality;
videos.add(video);
}
return videos;
}
String getQuality(int formatId) {
if (formatId == 18) {
return "Google - 360p";
} else if (formatId == 22) {
return "Google - 720p";
}
return "Unknown Resolution";
}
MPages parseAnimeList(String res) {
List<MManga> animeList = [];
final urls = xpath(res, '//div[@class="relat"]/article/div/div/a/@href');
final names = xpath(res, '//div[@class="relat"]/article/div/div/a/@title');
final images =
xpath(res, '//div[@class="relat"]/article/div/div/a/div/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final pages = xpath(res, '//div[@class="pagination"]/a/@href');
final pageNumberCurrent = xpath(res,
'//div[@class="pagination"]/span[@class="page-numbers current"]/text()');
bool hasNextPage = true;
if (pageNumberCurrent.isNotEmpty && pages.isNotEmpty) {
hasNextPage = !(pages.length == int.parse(pageNumberCurrent.first));
}
return MPages(animeList, hasNextPage);
}
}
OploVerz main(MSource source) {
return OploVerz(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get oploverz => _oploverz;
const _oploverzVersion = "0.0.5";
const _oploverzCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/oploverz/oploverz.dart";
Source _oploverz = Source(
name: "Oploverz",
baseUrl: "https://oploverz.gold",
lang: "id",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/oploverz/icon.png",
sourceCodeUrl: _oploverzCodeUrl,
version: _oploverzVersion,
itemType: ItemType.anime);

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -0,0 +1,241 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class OtakuDesu extends MProvider {
OtakuDesu({required this.source});
MSource source;
final Client client = Client(source);
@override
String get baseUrl => getPreferenceValue(source.id, "overrideBaseUrl");
@override
Future<MPages> getPopular(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl/complete-anime/page/$page")))
.body;
return parseAnimeList(res);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res =
(await client.get(Uri.parse("$baseUrl/ongoing-anime/page/$page"))).body;
return parseAnimeList(res);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final res =
(await client.get(Uri.parse("$baseUrl/?s=$query&post_type=anime")))
.body;
List<MManga> animeList = [];
final images = xpath(res, '//ul[@class="chivsrc"]/li/img/@src');
final names = xpath(res, '//ul[@class="chivsrc"]/li/h2/a/text()');
final urls = xpath(res, '//ul[@class="chivsrc"]/li/h2/a/@href');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, false);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"Ongoing": 0, "Completed": 1}
];
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final status = xpath(
res, '//*[@class="infozingle"]/p[contains(text(), "Status")]/text()');
if (status.isNotEmpty) {
anime.status = parseStatus(status.first.split(':').last, statusList);
}
final description = xpath(res, '//*[@class="sinopc"]/text()');
if (description.isNotEmpty) {
anime.description = description.first;
}
final genre = xpath(
res, '//*[@class="infozingle"]/p[contains(text(), "Genre")]/text()');
if (genre.isNotEmpty) {
anime.genre = genre.first.split(':').last.split(',');
}
final epUrls = xpath(res, '//div[@class="episodelist"]/ul/li/span/a/@href');
final names = xpath(res, '//div[@class="episodelist"]/ul/li/span/a/text()');
final dates = xpath(
res, '//div[@class="episodelist"]/ul/li/span[@class="zeebr"]/text()');
final dateUploads = parseDates(dates, "d MMMM,yyyy", "id");
List<MChapter>? episodesList = [];
for (var i = 1; i < epUrls.length; i++) {
MChapter episode = MChapter();
episode.name = names[i];
episode.dateUpload = dateUploads[i];
episode.url = epUrls[i];
episodesList.add(episode);
}
anime.chapters = episodesList;
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
List<MVideo> videos = [];
final res = (await client.get(Uri.parse(url))).body;
final script =
xpath(res, '//script[contains(text(), "{action:")]/text()').first;
final nonceAction =
substringBefore(substringAfter(script, "{action:\""), '"');
final action = substringBefore(substringAfter(script, "action:\""), '"');
final resNonceAction = (await client.post(
Uri.parse("$baseUrl/wp-admin/admin-ajax.php"),
headers: {"_": "_"},
body: {"action": nonceAction}))
.body;
final nonce = substringBefore(substringAfter(resNonceAction, ":\""), '"');
final mirrorstream =
xpath(res, '//*[@class="mirrorstream"]/ul/li/a/@data-content');
for (var stream in mirrorstream) {
List<MVideo> a = [];
final decodedData = json.decode(utf8.decode(base64Url.decode(stream)));
final q = decodedData["q"];
final id = decodedData["id"];
final i = decodedData["i"];
final res = (await client
.post(Uri.parse("$baseUrl/wp-admin/admin-ajax.php"), headers: {
"_": "_"
}, body: {
"i": i,
"id": id,
"q": q,
"nonce": nonce,
"action": action
}))
.body;
final html = utf8.decode(
base64Url.decode(substringBefore(substringAfter(res, ":\""), '"')));
String url = xpath(html, '//iframe/@src').first;
if (url.contains("yourupload")) {
final id = substringBefore(substringAfter(url, "id="), "&");
url = "https://yourupload.com/embed/$id";
a = await yourUploadExtractor(url, null, "YourUpload - $q", null);
} else if (url.contains("filelions")) {
a = await streamWishExtractor(url, "FileLions");
} else if (url.contains("desustream")) {
final response = (await Client().get(Uri.parse(url)));
final res = response.body;
final script =
xpath(res, '//script[contains(text(), "sources")]/text()').first;
final videoUrl = substringBefore(
substringAfter(substringAfter(script, "sources:[{"), "file':'"),
"'");
if (videoUrl.endsWith(".mp4")) {
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "DesuStream - $q";
videos.add(video);
}
} else if (url.contains("mp4upload")) {
final res = (await client.get(Uri.parse(url))).body;
final script =
xpath(res, '//script[contains(text(), "player.src")]/text()').first;
final videoUrl =
substringBefore(substringAfter(script, "src: \""), '"');
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = "Mp4upload - $q";
videos.add(video);
}
videos.addAll(a);
}
return sortVideos(videos);
}
List<MVideo> sortVideos(List<MVideo> videos) {
String quality = getPreferenceValue(source.id, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
MPages parseAnimeList(String res) {
List<MManga> animeList = [];
final urls =
xpath(res, '//div[@class="detpost"]/div[@class="thumb"]/a/@href');
final names = xpath(res,
'//div[@class="detpost"]/div[@class="thumb"]/a/div[@class="thumbz"]/h2/text()');
final images = xpath(res,
'//div[@class="detpost"]/div[@class="thumb"]/a/div[@class="thumbz"]/img/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = names[i];
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
final pages = xpath(
res, '//div[@class="pagenavix"]/a[@class="next page-numbers"]/@href');
return MPages(animeList, pages.isNotEmpty);
}
List<dynamic> getSourcePreferences() {
return [
EditTextPreference(
key: "overrideBaseUrl",
title: "Override BaseUrl",
summary: "",
value: "https://otakudesu.cloud",
dialogTitle: "Override BaseUrl",
dialogMessage: "",
text: "https://otakudesu.cloud"),
ListPreference(
key: "preferred_quality",
title: "Preferred quality",
summary: "",
valueIndex: 1,
entries: ["1080p", "720p", "480p", "360p"],
entryValues: ["1080", "720", "480", "360"])
];
}
}
OtakuDesu main(MSource source) {
return OtakuDesu(source: source);
}

View file

@ -0,0 +1,16 @@
import '../../../../../model/source.dart';
Source get otakudesu => _otakudesu;
const _otakudesuVersion = "0.0.55";
const _otakudesuCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/otakudesu/otakudesu.dart";
Source _otakudesu = Source(
name: "OtakuDesu",
baseUrl: "https://otakudesu.cloud",
lang: "id",
typeSource: "single",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/otakudesu/icon.png",
sourceCodeUrl: _otakudesuCodeUrl,
version: _otakudesuVersion,
itemType: ItemType.anime);

View file

@ -0,0 +1,362 @@
import 'package:mangayomi/bridge_lib.dart';
import 'dart:convert';
class AnimeSaturn extends MProvider {
AnimeSaturn({required this.source});
MSource source;
final Client client = Client(source);
@override
Future<MPages> getPopular(int page) async {
final res = (await client
.get(Uri.parse("${source.baseUrl}/animeincorso?page=$page")))
.body;
List<MManga> animeList = [];
final urls = xpath(res,
'//*[@class="sebox"]/div[@class="msebox"]/div[@class="headsebox"]/div[@class="tisebox"]/h2/a/@href');
final names = xpath(res,
'//*[@class="sebox"]/div[@class="msebox"]/div[@class="headsebox"]/div[@class="tisebox"]/h2/a/text()');
final images = xpath(res,
'//*[@class="sebox"]/div[@class="msebox"]/div[@class="bigsebox"]/div/img[@class="attachment-post-thumbnail size-post-thumbnail wp-post-image"]/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = formatTitle(names[i]);
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, true);
}
@override
Future<MPages> getLatestUpdates(int page) async {
final res =
(await client.get(Uri.parse("${source.baseUrl}/newest?page=$page")))
.body;
List<MManga> animeList = [];
final urls = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@href');
final names = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@title');
final images = xpath(res,
'//*[@class="card mb-4 shadow-sm"]/a/img[@class="new-anime"]/@src');
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = formatTitle(names[i]);
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, true);
}
@override
Future<MPages> search(String query, int page, FilterList filterList) async {
final filters = filterList.filters;
String url = "";
if (query.isNotEmpty) {
url = "${source.baseUrl}/animelist?search=$query";
} else {
url = "${source.baseUrl}/filter?";
int variantgenre = 0;
int variantstate = 0;
int variantyear = 0;
for (var filter in filters) {
if (filter.type == "GenreFilter") {
final genre = (filter.state as List).where((e) => e.state).toList();
if (genre.isNotEmpty) {
for (var st in genre) {
url += "&categories%5B${variantgenre}%5D=${st.value}";
variantgenre++;
}
}
} else if (filter.type == "YearList") {
final years = (filter.state as List).where((e) => e.state).toList();
if (years.isNotEmpty) {
for (var st in years) {
url += "&years%5B${variantyear}%5D=${st.value}";
variantyear++;
}
}
} else if (filter.type == "StateList") {
final states = (filter.state as List).where((e) => e.state).toList();
if (states.isNotEmpty) {
for (var st in states) {
url += "&states%5B${variantstate}%5D=${st.value}";
variantstate++;
}
}
} else if (filter.type == "LangList") {
final lang = filter.values[filter.state].value;
if (lang.isNotEmpty) {
url += "&language%5B0%5D=$lang";
}
}
}
url += "&page=$page";
}
final res = (await client.get(Uri.parse(url))).body;
List<MManga> animeList = [];
List<String> urls = [];
List<String> names = [];
List<String> images = [];
if (query.isNotEmpty) {
urls = xpath(res,
'//*[@class="list-group"]/li[@class="list-group-item bg-dark-as-box-shadow"]/div[@class="item-archivio"]/div[@class="info-archivio"]/h3/a[@class="badge badge-archivio badge-light"]/@href');
names = xpath(res,
'//*[@class="list-group"]/li[@class="list-group-item bg-dark-as-box-shadow"]/div[@class="item-archivio"]/div[@class="info-archivio"]/h3/a[@class="badge badge-archivio badge-light"]/text()');
images = xpath(res,
'//*[@class="list-group"]/li[@class="list-group-item bg-dark-as-box-shadow"]/div[@class="item-archivio"]/a/img/@src');
} else {
urls = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/@href');
names = xpath(res, '//*[@class="card mb-4 shadow-sm"]/a/text()');
images = xpath(res,
'//*[@class="card mb-4 shadow-sm"]/a/img[@class="new-anime"]/@src');
}
for (var i = 0; i < names.length; i++) {
MManga anime = MManga();
anime.name = formatTitle(names[i]);
anime.imageUrl = images[i];
anime.link = urls[i];
animeList.add(anime);
}
return MPages(animeList, query.isEmpty);
}
@override
Future<MManga> getDetail(String url) async {
final statusList = [
{"In corso": 0, "Finito": 1}
];
final res = (await client.get(Uri.parse(url))).body;
MManga anime = MManga();
final detailsList = xpath(res,
'//div[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100 text-white"]/text()');
if (detailsList.isNotEmpty) {
final details = detailsList.first;
anime.status = parseStatus(
details.substring(
details.indexOf("Stato:") + 6, details.indexOf("Data di uscita:")),
statusList);
anime.author = details.substring(7, details.indexOf("Stato:"));
}
final description = xpath(res, '//*[@id="shown-trama"]/text()');
final descriptionFull = xpath(res, '//*[@id="full-trama"]/text()');
if (description.isNotEmpty) {
anime.description = description.first;
} else {
anime.description = "";
}
if (descriptionFull.isNotEmpty) {
if (descriptionFull.first.length > anime.description.length) {
anime.description = descriptionFull.first;
}
}
anime.genre = xpath(res,
'//*[@class="container shadow rounded bg-dark-as-box mb-3 p-3 w-100"]/a/text()');
final epUrls = xpath(res,
'//*[@class="btn-group episodes-button episodi-link-button"]/a/@href');
final titles = xpath(res,
'//*[@class="btn-group episodes-button episodi-link-button"]/a/text()');
List<MChapter>? episodesList = [];
for (var i = 0; i < epUrls.length; i++) {
MChapter episode = MChapter();
episode.name = titles[i];
episode.url = epUrls[i];
episodesList.add(episode);
}
anime.chapters = episodesList.reversed.toList();
return anime;
}
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse(url))).body;
final urlVid = xpath(res, '//a[contains(@href,"/watch")]/@href').first;
final resVid = (await client.get(Uri.parse(urlVid))).body;
String masterUrl = "";
if (resVid.contains("jwplayer(")) {
masterUrl = substringBefore(substringAfter(resVid, "file: \""), "\"");
} else {
masterUrl = parseHtml(resVid).selectFirst("source").attr("src");
}
List<MVideo> videos = [];
if (masterUrl.endsWith("playlist.m3u8")) {
final masterPlaylistRes = (await client.get(Uri.parse(masterUrl))).body;
for (var it in substringAfter(masterPlaylistRes, "#EXT-X-STREAM-INF:")
.split("#EXT-X-STREAM-INF:")) {
final quality =
"${substringBefore(substringBefore(substringAfter(substringAfter(it, "RESOLUTION="), "x"), ","), "\n")}p";
String videoUrl = substringBefore(substringAfter(it, "\n"), "\n");
if (!videoUrl.startsWith("http")) {
videoUrl =
"${masterUrl.split("/").sublist(0, masterUrl.split("/").length - 1).join("/")}/$videoUrl";
}
MVideo video = MVideo();
video
..url = videoUrl
..originalUrl = videoUrl
..quality = quality;
videos.add(video);
}
} else {
MVideo video = MVideo();
video
..url = masterUrl
..originalUrl = masterUrl
..quality = "Qualità predefinita";
videos.add(video);
}
return sortVideos(videos, source.id);
}
String formatTitle(String titlestring) {
return titlestring
.replaceAll("(ITA) ITA", "Dub ITA")
.replaceAll("(ITA)", "Dub ITA")
.replaceAll("Sub ITA", "");
}
@override
List<dynamic> getFilterList() {
return [
HeaderFilter("Ricerca per titolo ignora i filtri e viceversa"),
GroupFilter("GenreFilter", "Generi", [
CheckBoxFilter("Arti Marziali", "Arti Marziali"),
CheckBoxFilter("Avventura", "Avventura"),
CheckBoxFilter("Azione", "Azione"),
CheckBoxFilter("Bambini", "Bambini"),
CheckBoxFilter("Commedia", "Commedia"),
CheckBoxFilter("Demenziale", "Demenziale"),
CheckBoxFilter("Demoni", "Demoni"),
CheckBoxFilter("Drammatico", "Drammatico"),
CheckBoxFilter("Ecchi", "Ecchi"),
CheckBoxFilter("Fantasy", "Fantasy"),
CheckBoxFilter("Gioco", "Gioco"),
CheckBoxFilter("Harem", "Harem"),
CheckBoxFilter("Hentai", "Hentai"),
CheckBoxFilter("Horror", "Horror"),
CheckBoxFilter("Josei", "Josei"),
CheckBoxFilter("Magia", "Magia"),
CheckBoxFilter("Mecha", "Mecha"),
CheckBoxFilter("Militari", "Militari"),
CheckBoxFilter("Mistero", "Mistero"),
CheckBoxFilter("Musicale", "Musicale"),
CheckBoxFilter("Parodia", "Parodia"),
CheckBoxFilter("Polizia", "Polizia"),
CheckBoxFilter("Psicologico", "Psicologico"),
CheckBoxFilter("Romantico", "Romantico"),
CheckBoxFilter("Samurai", "Samurai"),
CheckBoxFilter("Sci-Fi", "Sci-Fi"),
CheckBoxFilter("Scolastico", "Scolastico"),
CheckBoxFilter("Seinen", "Seinen"),
CheckBoxFilter("Sentimentale", "Sentimentale"),
CheckBoxFilter("Shoujo Ai", "Shoujo Ai"),
CheckBoxFilter("Shoujo", "Shoujo"),
CheckBoxFilter("Shounen Ai", "Shounen Ai"),
CheckBoxFilter("Shounen", "Shounen"),
CheckBoxFilter("Slice of Life", "Slice of Life"),
CheckBoxFilter("Soprannaturale", "Soprannaturale"),
CheckBoxFilter("Spazio", "Spazio"),
CheckBoxFilter("Sport", "Sport"),
CheckBoxFilter("Storico", "Storico"),
CheckBoxFilter("Superpoteri", "Superpoteri"),
CheckBoxFilter("Thriller", "Thriller"),
CheckBoxFilter("Vampiri", "Vampiri"),
CheckBoxFilter("Veicoli", "Veicoli"),
CheckBoxFilter("Yaoi", "Yaoi"),
CheckBoxFilter("Yuri", "Yuri"),
]),
GroupFilter("YearList", "Anno di Uscita", [
for (var i = 1969; i < 2022; i++)
CheckBoxFilter(i.toString(), i.toString()),
]),
GroupFilter("StateList", "Stato", [
CheckBoxFilter("In corso", "0"),
CheckBoxFilter("Finito", "1"),
CheckBoxFilter("Non rilasciato", "2"),
CheckBoxFilter("Droppato", "3"),
]),
SelectFilter("LangList", "Lingua", 0, [
SelectFilterOption("", ""),
SelectFilterOption("Subbato", "0"),
SelectFilterOption("Doppiato", "1"),
]),
];
}
@override
List<dynamic> getSourcePreferences() {
return [
ListPreference(
key: "preferred_quality",
title: "Qualità preferita",
summary: "",
valueIndex: 0,
entries: ["1080p", "720p", "480p", "360p", "240p", "144p"],
entryValues: ["1080", "720", "480", "360", "240", "144"]),
];
}
List<MVideo> sortVideos(List<MVideo> videos, int sourceId) {
String quality = getPreferenceValue(sourceId, "preferred_quality");
videos.sort((MVideo a, MVideo b) {
int qualityMatchA = 0;
if (a.quality.contains(quality)) {
qualityMatchA = 1;
}
int qualityMatchB = 0;
if (b.quality.contains(quality)) {
qualityMatchB = 1;
}
if (qualityMatchA != qualityMatchB) {
return qualityMatchB - qualityMatchA;
}
final regex = RegExp(r'(\d+)p');
final matchA = regex.firstMatch(a.quality);
final matchB = regex.firstMatch(b.quality);
final int qualityNumA = int.tryParse(matchA?.group(1) ?? '0') ?? 0;
final int qualityNumB = int.tryParse(matchB?.group(1) ?? '0') ?? 0;
return qualityNumB - qualityNumA;
});
return videos;
}
}
AnimeSaturn main(MSource source) {
return AnimeSaturn(source: source);
}

Some files were not shown because too many files have changed in this diff Show more