Skip to content

Commit

Permalink
#19 不要な変更を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed Mar 15, 2024
1 parent a1c442b commit b8b9c37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Epub/KoeBook.Epub/Services/ScrapingNaroService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public bool IsMatchSite(Uri uri)
public async ValueTask<EpubDocument> ScrapingAsync(string url, string coverFilePath, string imageDirectory, Guid id, CancellationToken ct)
{
var config = Configuration.Default.WithDefaultLoader();

using var context = BrowsingContext.New(config);
var doc = await context.OpenAsync(url, ct).ConfigureAwait(false);

Expand Down Expand Up @@ -135,7 +134,7 @@ public record BookInfo(int? allcount, int? noveltype, int? general_all_no);

private record SectionWithChapterTitle(string? title, Section section);

private async Task<SectionWithChapterTitle> ReadPageAsync(string url, bool isRensai, string imageDirectory, CancellationToken ct)
private static async Task<SectionWithChapterTitle> ReadPageAsync(string url, bool isRensai, string imageDirectory, CancellationToken ct)
{
var config = Configuration.Default.WithDefaultLoader();
using var context = BrowsingContext.New(config);
Expand Down

0 comments on commit b8b9c37

Please sign in to comment.