Progress toward purging static current locale

This commit is contained in:
Robert McRackan committed 2020-08-21 09:29:33 -04:00
1 parent 901572e7bb
commit 82318ffab7
4 files changed
+17 -8

No files matched your search

+3 -1
View File
@@ -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,