mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
fix
This commit is contained in:
@@ -148,7 +148,11 @@ class AnimePahe extends MProvider {
|
|||||||
Uri.parse("$baseUrl/a/$animeId"),
|
Uri.parse("$baseUrl/a/$animeId"),
|
||||||
headers: headers,
|
headers: headers,
|
||||||
);
|
);
|
||||||
if (res.statusCode == 302) {
|
|
||||||
|
final location =
|
||||||
|
"https://${substringAfterLast(res.headers["location"], "https://")}";
|
||||||
|
|
||||||
|
if (location == '$baseUrl/anime') {
|
||||||
final res = (await client.get(
|
final res = (await client.get(
|
||||||
Uri.parse("$baseUrl/api?m=search&q=$title"),
|
Uri.parse("$baseUrl/api?m=search&q=$title"),
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@@ -161,8 +165,6 @@ class AnimePahe extends MProvider {
|
|||||||
"\"",
|
"\"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final location =
|
|
||||||
"https://${substringAfterLast(res.headers["location"], "https://")}";
|
|
||||||
final uri = Uri.parse(location);
|
final uri = Uri.parse(location);
|
||||||
return uri.pathSegments.last;
|
return uri.pathSegments.last;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get animepaheSource => _animepaheSource;
|
Source get animepaheSource => _animepaheSource;
|
||||||
const _animepaheVersion = "0.0.65";
|
const _animepaheVersion = "0.0.7";
|
||||||
const _animepaheSourceCodeUrl =
|
const _animepaheSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/animepahe/animepahe.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/animepahe/animepahe.dart";
|
||||||
Source _animepaheSource = Source(
|
Source _animepaheSource = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user