Cleaning up tags and url regexes, closes #6
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -142,8 +142,8 @@ public abstract class AbstractScraper : IScraper
|
||||
public virtual async Task<Novel> ScrapeNovel(string url)
|
||||
{
|
||||
|
||||
var baseUrl = new Regex(BaseUrlPattern).Match(url).Value;
|
||||
var novelUrl = new Regex(UrlMatchPattern).Match(url).Value;
|
||||
var baseUrl = new Regex(BaseUrlPattern, RegexOptions.IgnoreCase).Match(url).Value;
|
||||
var novelUrl = new Regex(UrlMatchPattern, RegexOptions.IgnoreCase).Match(url).Value;
|
||||
var doc = await GetPage(novelUrl);
|
||||
if (string.IsNullOrEmpty(doc.Text))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user