mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
Changes
This commit is contained in:
@@ -26,6 +26,7 @@ import 'src/it/animesaturn/source.dart';
|
|||||||
import 'src/pt/animesvision/source.dart';
|
import 'src/pt/animesvision/source.dart';
|
||||||
import 'src/sq/filma24/source.dart';
|
import 'src/sq/filma24/source.dart';
|
||||||
import 'src/tr/diziwatch/source.dart';
|
import 'src/tr/diziwatch/source.dart';
|
||||||
|
import 'src/en/donghuastream/source.dart';
|
||||||
|
|
||||||
List<Source> dartAnimesourceList = [
|
List<Source> dartAnimesourceList = [
|
||||||
gogoanimeSource,
|
gogoanimeSource,
|
||||||
@@ -55,4 +56,5 @@ List<Source> dartAnimesourceList = [
|
|||||||
animeonlineninjaSource,
|
animeonlineninjaSource,
|
||||||
kisskhSource,
|
kisskhSource,
|
||||||
vumetoSource,
|
vumetoSource,
|
||||||
|
donghuastreamSource,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ class DonghuaStream extends MProvider {
|
|||||||
String name = '${servers[i].attr("data-index")}: ${servers[i].text}';
|
String name = '${servers[i].attr("data-index")}: ${servers[i].text}';
|
||||||
String valueHtml = utf8.decode(base64Url.decode(servers[i].attr('value')));
|
String valueHtml = utf8.decode(base64Url.decode(servers[i].attr('value')));
|
||||||
String serverUrl = xpath(valueHtml,'//iframe/@src')[0];
|
String serverUrl = xpath(valueHtml,'//iframe/@src')[0];
|
||||||
print('$name,$serverUrl');
|
|
||||||
if(serverUrl.startsWith('https://geo.dailymotion.com/player')){
|
if(serverUrl.startsWith('https://geo.dailymotion.com/player')){
|
||||||
String videoId = RegExp(r'[?&]video=([a-zA-Z0-9]+)').firstMatch(serverUrl).group(1)!;
|
String videoId = RegExp(r'[?&]video=([a-zA-Z0-9]+)').firstMatch(serverUrl).group(1)!;
|
||||||
return dailymotionUrlFetcher(videoId,name);
|
return dailymotionUrlFetcher(videoId,name);
|
||||||
@@ -121,7 +120,6 @@ class DonghuaStream extends MProvider {
|
|||||||
|
|
||||||
Future<List<MVideo>> dailymotionUrlFetcher(String videoID, String name) async {
|
Future<List<MVideo>> dailymotionUrlFetcher(String videoID, String name) async {
|
||||||
String metaDataUrl = 'https://www.dailymotion.com/player/metadata/video/$videoID';
|
String metaDataUrl = 'https://www.dailymotion.com/player/metadata/video/$videoID';
|
||||||
print(metaDataUrl);
|
|
||||||
final res = (await client.get(Uri.parse(metaDataUrl))).body;
|
final res = (await client.get(Uri.parse(metaDataUrl))).body;
|
||||||
final jsonRes = json.decode(res);
|
final jsonRes = json.decode(res);
|
||||||
String masterUrl = jsonRes["qualities"]["auto"][0]["url"];
|
String masterUrl = jsonRes["qualities"]["auto"][0]["url"];
|
||||||
|
|||||||
Reference in New Issue
Block a user