mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
@@ -123,8 +123,8 @@ class OtakuDesu extends MProvider {
|
|||||||
"action": action
|
"action": action
|
||||||
}))
|
}))
|
||||||
.body;
|
.body;
|
||||||
final html = utf8.decode(
|
final resJson = json.decode(res);
|
||||||
base64Url.decode(substringBefore(substringAfter(res, ":\""), '"')));
|
final html = utf8.decode(base64Url.decode(resJson["data"]));
|
||||||
String url = xpath(html, '//iframe/@src').first;
|
String url = xpath(html, '//iframe/@src').first;
|
||||||
if (url.contains("yourupload")) {
|
if (url.contains("yourupload")) {
|
||||||
final id = substringBefore(substringAfter(url, "id="), "&");
|
final id = substringBefore(substringAfter(url, "id="), "&");
|
||||||
@@ -136,10 +136,10 @@ class OtakuDesu extends MProvider {
|
|||||||
final response = (await Client().get(Uri.parse(url)));
|
final response = (await Client().get(Uri.parse(url)));
|
||||||
final res = response.body;
|
final res = response.body;
|
||||||
final script =
|
final script =
|
||||||
xpath(res, '//script[contains(text(), "sources")]/text()').first;
|
xpath(res, '//script[contains(text(), "file")]/text()').first;
|
||||||
final videoUrl = substringBefore(
|
final regex = RegExp(r'file:"(https?://[^"]+)"');
|
||||||
substringAfter(substringAfter(script, "sources:[{"), "file':'"),
|
final match = regex.firstMatch(script);
|
||||||
"'");
|
final videoUrl = match.group(1);
|
||||||
if (videoUrl.endsWith(".mp4")) {
|
if (videoUrl.endsWith(".mp4")) {
|
||||||
MVideo video = MVideo();
|
MVideo video = MVideo();
|
||||||
video
|
video
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get otakudesu => _otakudesu;
|
Source get otakudesu => _otakudesu;
|
||||||
const _otakudesuVersion = "0.0.55";
|
const _otakudesuVersion = "0.0.56";
|
||||||
const _otakudesuCodeUrl =
|
const _otakudesuCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/otakudesu/otakudesu.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/id/otakudesu/otakudesu.dart";
|
||||||
Source _otakudesu = Source(
|
Source _otakudesu = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user