From 7a61f56b2427d5030e032f9d395470249246de1d Mon Sep 17 00:00:00 2001 From: IruzzArcana Date: Fri, 11 Apr 2025 01:26:46 +0100 Subject: [PATCH] HiAnime - Fix serverType --- dart/anime/multisrc/zorotheme/sources.dart | 2 +- dart/anime/multisrc/zorotheme/zorotheme.dart | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dart/anime/multisrc/zorotheme/sources.dart b/dart/anime/multisrc/zorotheme/sources.dart index d223d0d7..6a18b502 100644 --- a/dart/anime/multisrc/zorotheme/sources.dart +++ b/dart/anime/multisrc/zorotheme/sources.dart @@ -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"; diff --git a/dart/anime/multisrc/zorotheme/zorotheme.dart b/dart/anime/multisrc/zorotheme/zorotheme.dart index 430cbfd6..2debce13 100644 --- a/dart/anime/multisrc/zorotheme/zorotheme.dart +++ b/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=',