fix AnimePahe

This commit is contained in:
kodjomoustapha
2024-03-02 14:58:17 +01:00
parent 6e76a467ab
commit 7a7e18d40e
2 changed files with 4 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ class AnimePahe extends MProvider {
@override
Future<List<MVideo>> getVideoList(String url) async {
final res = (await client.get(Uri.parse("${source.baseUrl}$url")));
final res = (await client.get(Uri.parse("$baseUrl$url")));
final document = parseHtml(res.body);
final buttons = document.select("div#resolutionMenu > button");
@@ -149,7 +149,8 @@ class AnimePahe extends MProvider {
.first,
"eval(function(");
final videoUrl = substringBefore(
substringAfter(unpackJsAndCombine("eval(function($script"), "const source=\\'"),
substringAfter(
unpackJsAndCombine("eval(function($script"), "const source=\\'"),
"\\';");
MVideo video = MVideo();
video

View File

@@ -1,7 +1,7 @@
import '../../../../model/source.dart';
Source get animepaheSource => _animepaheSource;
const _animepaheVersion = "0.0.2";
const _animepaheVersion = "0.0.25";
const _animepaheSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/en/animepahe/animepahe.dart";
Source _animepaheSource = Source(