Merge pull request #215 from IruzzArcana/main

HiAnime - Fix serverType
This commit is contained in:
Moustapha Kodjo Amadou
2025-04-11 11:46:06 +01:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -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";

View File

@@ -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=',