This version is powered by the Audible API. Legacy scraping code is still present but is commented out. All future check-ins are not guaranteed to have any scraping code
This commit is contained in:
parent
664fcc50e2
commit
c61bc27a7b
@ -29,6 +29,7 @@ namespace DtoImporterService
|
||||
var libraryBook = new LibraryBook(
|
||||
context.Books.Local.Single(b => b.AudibleProductId == newItem.ProductId),
|
||||
newItem.DateAdded
|
||||
// needed for scraping
|
||||
//,FileManager.FileUtility.RestoreDeclawed(newLibraryDTO.DownloadBookLink)
|
||||
);
|
||||
context.Library.Add(libraryBook);
|
||||
|
||||
@ -87,7 +87,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AudibleApiDTOs.Tests", "..\
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AudibleApiClientExample", "..\audible api\AudibleApi\_Demos\AudibleApiClientExample\AudibleApiClientExample.csproj", "{282EEE16-F569-47E1-992F-C6DB8AEC7AA6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationService", "ApplicationService\ApplicationService.csproj", "{B95650EA-25F0-449E-BA5D-99126BC5D730}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApplicationServices", "ApplicationServices\ApplicationServices.csproj", "{B95650EA-25F0-449E-BA5D-99126BC5D730}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@ -358,7 +358,7 @@ namespace LibationWinForm
|
||||
private async void scanLibraryToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
// legacy/scraping method
|
||||
//await indexDialog(new ScanLibraryDialog());
|
||||
//await indexDialog(new ScanLibraryDialog());
|
||||
// new/api method
|
||||
await indexDialog(new IndexLibraryDialog());
|
||||
}
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
-- begin LEGACY CODE ---------------------------------------------------------------------------------------------------------------------
|
||||
-- end LEGACY CODE ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- begin AUDIBLE DETAILS ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
alternate book id (eg BK_RAND_006061) is called 'sku' , 'sku_lite' , 'prod_id' , 'product_id' in different parts of the site
|
||||
|
||||
-- end AUDIBLE DETAILS ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- begin SOLUTION LAYOUT ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@ -39,7 +39,7 @@ namespace ScrapingDomainServices
|
||||
//// var adhTitle = product.Title.Split('&')[0]
|
||||
|
||||
// legacy/scraping method
|
||||
//await performDownloadAsync(libraryBook, tempAaxFilename);
|
||||
//await performDownloadAsync(libraryBook, tempAaxFilename);
|
||||
// new/api method
|
||||
tempAaxFilename = await performApiDownloadAsync(libraryBook, tempAaxFilename);
|
||||
|
||||
|
||||
10
__TODO.txt
10
__TODO.txt
@ -1,11 +1,7 @@
|
||||
-- begin REPLACE SCRAPING WITH API ---------------------------------------------------------------------------------------------------------------------
|
||||
library import UI
|
||||
move biz logic out of UI (Form1.scanLibraryToolStripMenuItem_Click)
|
||||
- non-db dependent: InternalUtilities. see: SearchEngineActions
|
||||
InternalUtilities.AudibleApiExtensions may not belong here. not sure
|
||||
- db dependent: eg DtoImporterService
|
||||
|
||||
|
||||
make a github release version
|
||||
in REFERENCE.txt, say which version still has legacy scraping code in tact
|
||||
remove scraping code. don't 'move' it
|
||||
|
||||
MOVE TO LEGACY
|
||||
--------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user