All scraping code removed
This commit is contained in:
parent
c61bc27a7b
commit
df90fc5361
106 changed files with 666 additions and 5319 deletions
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using ScrapingDomainServices;
|
||||
using FileLiberator;
|
||||
|
||||
namespace LibationWinForm.BookLiberation
|
||||
{
|
||||
|
|
@ -39,21 +39,6 @@ namespace LibationWinForm.BookLiberation
|
|||
downloadPdf.Begin += (_, __) => wireUpDownloadable(downloadPdf);
|
||||
return downloadPdf;
|
||||
}
|
||||
public static ScrapeBookDetails GetWiredUpScrapeBookDetails()
|
||||
{
|
||||
var scrapeBookDetails = new ScrapeBookDetails();
|
||||
scrapeBookDetails.Begin += (_, __) => wireUpDownloadable(scrapeBookDetails);
|
||||
|
||||
scrapeBookDetails.NoLongerAvailableAction = noLongerAvailableUI;
|
||||
|
||||
return scrapeBookDetails;
|
||||
}
|
||||
static ScrapeBookDetails.NoLongerAvailableEnum noLongerAvailableUI(string title, string url)
|
||||
{
|
||||
var nla = new NoLongerAvailableForm(title, url);
|
||||
nla.ShowDialog();
|
||||
return nla.EnumResult;
|
||||
}
|
||||
|
||||
// subscribed to Begin event because a new form should be created+processed+closed on each iteration
|
||||
private static void wireUpDownloadable(IDownloadable downloadable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue