Possible fix for #72
RegexMatching was off for last element sometimes on bato
This commit is contained in:
parent
3381909afd
commit
5352cca058
@ -205,7 +205,8 @@ public class Bato : MangaConnector
|
|||||||
|
|
||||||
string weirdString = images.OuterHtml;
|
string weirdString = images.OuterHtml;
|
||||||
string weirdString2 = Regex.Match(weirdString, @"props=\""(.*)}\""").Groups[1].Value;
|
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;
|
return urls;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user