Skip to content

Commit

Permalink
Possible fix for #72
Browse files Browse the repository at this point in the history
RegexMatching was off for last element sometimes on bato
  • Loading branch information
C9Glax committed Oct 23, 2023
1 parent 3381909 commit 5352cca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tranga/MangaConnectors/Bato.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ private string[] ParseImageUrlsFromHtml(string mangaUrl)

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;
}
Expand Down

0 comments on commit 5352cca

Please sign in to comment.