mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix #261
This commit is contained in:
@@ -150,7 +150,7 @@ class AnimePahe extends MProvider {
|
|||||||
);
|
);
|
||||||
|
|
||||||
final location =
|
final location =
|
||||||
"https://${substringAfterLast(res.headers["location"], "https://")}";
|
"https://${substringAfterLast(getMapValue(json.encode(res.headers), "location"), "https://")}";
|
||||||
|
|
||||||
if (location == '$baseUrl/anime') {
|
if (location == '$baseUrl/anime') {
|
||||||
final res = (await client.get(
|
final res = (await client.get(
|
||||||
@@ -165,8 +165,7 @@ class AnimePahe extends MProvider {
|
|||||||
"\"",
|
"\"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final uri = Uri.parse(location);
|
return substringAfterLast(location, '/');
|
||||||
return uri.pathSegments.last;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get animepaheSource => _animepaheSource;
|
Source get animepaheSource => _animepaheSource;
|
||||||
const _animepaheVersion = "0.0.7";
|
const _animepaheVersion = "0.0.75";
|
||||||
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