Refactor and novel18 support (added cookie support in general to AbstractScraper.cs
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:
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Treestar.Shared.Models.DBDomain;
|
||||
using Common.Models.DBDomain;
|
||||
using WebNovelPortalAPI.Middleware;
|
||||
|
||||
namespace WebNovelPortalAPI.Controllers
|
||||
|
||||
@@ -8,10 +8,10 @@ using DBConnection.Repositories.Interfaces;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Treestar.Shared.Models.DBDomain;
|
||||
using Treestar.Shared.Models.DTO;
|
||||
using Treestar.Shared.Models.DTO.Requests;
|
||||
using Treestar.Shared.Models.DTO.Responses;
|
||||
using Common.Models.DBDomain;
|
||||
using Common.Models.DTO;
|
||||
using Common.Models.DTO.Requests;
|
||||
using Common.Models.DTO.Responses;
|
||||
using WebNovelPortalAPI.Exceptions;
|
||||
using WebNovelPortalAPI.Scrapers;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace WebNovelPortalAPI.Controllers
|
||||
{
|
||||
throw new NoMatchingScraperException(url);
|
||||
}
|
||||
var novel = scraper.ScrapeNovel(url);
|
||||
var novel = await scraper.ScrapeNovel(url);
|
||||
return novel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user