Possible fix for #72

RegexMatching was off for last element sometimes on bato
This commit is contained in:
glax 2023-10-23 17:01:26 +02:00
parent 3381909afd
commit 5352cca058

View File

@ -205,7 +205,8 @@ public class Bato : MangaConnector
string weirdString = images.OuterHtml;
string weirdString2 = Regex.Match(weirdString, @"props=\""(.*)}\""").Groups[1].Value;
string[] urls = Regex.Matches(weirdString2, @"https:\/\/[A-z\-0-9\.\?\&\;\=\/]*").Select(m => m.Value.Replace("\\"]", "").Replace("amp;", "")).ToArray();
string[] urls = Regex.Matches(weirdString2, @"(https:\/\/[A-z\-0-9\.\?\&\;\=\/]+)\\")
.Select(match => match.Groups[1].Value.Replace("&", "&")).ToArray();
return urls;
}