Progress toward purging static current locale
This commit is contained in:
parent
901572e7bb
commit
82318ffab7
4 changed files with 17 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using AudibleApi;
|
||||
using DataLayer;
|
||||
using Dinah.Core;
|
||||
using Dinah.Core.ErrorHandling;
|
||||
|
|
@ -42,7 +43,8 @@ namespace FileLiberator
|
|||
|
||||
private async Task<string> downloadBookAsync(LibraryBook libraryBook, string tempAaxFilename)
|
||||
{
|
||||
var api = await AudibleApiActions.GetApiAsync();
|
||||
var locale = Localization.Get(libraryBook.Book.Locale);
|
||||
var api = await AudibleApiActions.GetApiAsync(locale);
|
||||
|
||||
var actualFilePath = await PerformDownloadAsync(
|
||||
tempAaxFilename,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue