mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
fix AnimePahe
This commit is contained in:
@@ -133,7 +133,7 @@ class AnimePahe extends MProvider {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<List<MVideo>> getVideoList(String url) async {
|
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 document = parseHtml(res.body);
|
||||||
final buttons = document.select("div#resolutionMenu > button");
|
final buttons = document.select("div#resolutionMenu > button");
|
||||||
@@ -149,7 +149,8 @@ class AnimePahe extends MProvider {
|
|||||||
.first,
|
.first,
|
||||||
"eval(function(");
|
"eval(function(");
|
||||||
final videoUrl = substringBefore(
|
final videoUrl = substringBefore(
|
||||||
substringAfter(unpackJsAndCombine("eval(function($script"), "const source=\\'"),
|
substringAfter(
|
||||||
|
unpackJsAndCombine("eval(function($script"), "const source=\\'"),
|
||||||
"\\';");
|
"\\';");
|
||||||
MVideo video = MVideo();
|
MVideo video = MVideo();
|
||||||
video
|
video
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../model/source.dart';
|
import '../../../../model/source.dart';
|
||||||
|
|
||||||
Source get animepaheSource => _animepaheSource;
|
Source get animepaheSource => _animepaheSource;
|
||||||
const _animepaheVersion = "0.0.2";
|
const _animepaheVersion = "0.0.25";
|
||||||
const _animepaheSourceCodeUrl =
|
const _animepaheSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/en/animepahe/animepahe.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/en/animepahe/animepahe.dart";
|
||||||
Source _animepaheSource = Source(
|
Source _animepaheSource = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user