Show a dialog when Audible throttles a download license.

CustomerThrottled was treated as a generic License Denied, so non-Plus titles got no explanation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Robert McRackan
2026-09-02 20:04:44 -04:00
parent 66bf8b9de9
commit 74a028acaa
11 changed files with 180 additions and 21 deletions

View File

@@ -814,15 +814,20 @@ public class ProcessQueueViewModel : ReactiveObject
await book.LibraryBook.UpdateBookStatusAsync(LiberatedStatus.Error);
}
else if (result == ProcessBookResult.LicenseDeniedPossibleOutage
|| result == ProcessBookResult.LicenseDeniedThrottled
|| (result == ProcessBookResult.LicenseDenied && book.LibraryBook.IsAudiblePlus))
{
bool show;
lock (resultLock) { show = !shownLicenseGuidanceMessage; shownLicenseGuidanceMessage = true; }
if (show)
{
var body = result == ProcessBookResult.LicenseDeniedPossibleOutage
? ContentLicenseDeniedUserMessage.BuildDialogBodyForPossibleOutage(book.LibraryBook.Book.TitleWithSubtitle)
: ContentLicenseDeniedUserMessage.BuildDialogBodyForPlusCatalog(book.LibraryBook.Book.TitleWithSubtitle);
var title = book.LibraryBook.Book.TitleWithSubtitle;
var body = result switch
{
ProcessBookResult.LicenseDeniedPossibleOutage => ContentLicenseDeniedUserMessage.BuildDialogBodyForPossibleOutage(title),
ProcessBookResult.LicenseDeniedThrottled => ContentLicenseDeniedUserMessage.BuildDialogBodyForThrottling(title),
_ => ContentLicenseDeniedUserMessage.BuildDialogBodyForPlusCatalog(title)
};
await MessageBoxBase.Show(
body,
ContentLicenseDeniedUserMessage.DialogCaption,