mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
HiAnime - Fix serverType
This commit is contained in:
@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
|
||||
import 'src/hianime/hianime.dart';
|
||||
import 'src/kaido/kaido.dart';
|
||||
|
||||
const _zorothemeVersion = "0.1.5";
|
||||
const _zorothemeVersion = "0.1.6";
|
||||
const _zorothemeSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/multisrc/zorotheme/zorotheme.dart";
|
||||
|
||||
|
||||
@@ -237,11 +237,7 @@ class ZoroTheme extends MProvider {
|
||||
final headers = {'Referer': 'https://megacloud.club/'};
|
||||
final serverUrl = ['https://megacloud.tv', 'https://rapid-cloud.co'];
|
||||
|
||||
final serverType =
|
||||
url.startsWith('https://megacloud.tv') ||
|
||||
url.startsWith('https://megacloud.club')
|
||||
? 0
|
||||
: 1;
|
||||
final serverType = RegExp(r'https://megacloud\..*').hasMatch(url) ? 0 : 1;
|
||||
final sourceUrl = [
|
||||
'/embed-2/ajax/e-1/getSources?id=',
|
||||
'/ajax/embed-6-v2/getSources?id=',
|
||||
|
||||
Reference in New Issue
Block a user