Files
Libation/Source/LibationUiBase/WidevineRecommendationUserMessage.cs
William Tanksley Jr 452b0ebf2c refactor(recovery): remove defensive AAX fallback workaround (#2083) (#2147)
AudibleApi 14.1.3 preserves and rethrows the primary ApiErrorException
when the secondary AAX download fallback fails, rather than swallowing
it and throwing ApplicationException("Book has no codec specified").

With AudibleApi 14.1.3:
- Bump AudibleApi package reference to 14.1.3
- Remove NoCodecSpecifiedMarker, NoAvailableCodecsMarker, and
  IsAaxFallbackMissingCodecError from WidevineRecommendation
- Restore ShouldRecommendWidevine signature to take ApiErrorException
- Update catch clauses in ProcessBookViewModel and _ProcessableOptionsBase
  to catch ApiErrorException directly
- Remove obsolete codec-missing tests in WidevineRecommendationTests
2026-11-12 18:41:28 -07:00

31 lines
1.3 KiB
C#

using FileLiberator;
namespace LibationUiBase;
/// <summary>
/// User-facing copy when ADRM licenserequest fails with Sable acr:null (Widevine required).
/// Shared by WinForms, Avalonia, and the process queue.
/// </summary>
public static class WidevineRecommendationUserMessage
{
public const string DialogCaption = "Widevine DRM Enabled";
public const string QueueStatusText = "Widevine enabled (re-login needed)";
/// <summary>One line for the per-book process log in the queue UI.</summary>
public static string BuildLogSummary(string bookTitleWithSubtitle, string? maskedAccount = null)
=> WidevineRecommendation.BuildLogSummary(bookTitleWithSubtitle, maskedAccount);
/// <summary>Shown once per queue run when the pattern is detected and Widevine was enabled.</summary>
public static string BuildDialogBody(string bookTitleWithSubtitle)
=> $"""
Libation could not get a download license for {bookTitleWithSubtitle} using the standard (ADRM) format.
This title delivers only via Widevine DRM. Libation has automatically enabled Widevine DRM in Settings and marked your account for a fresh sign-in to obtain Widevine credentials.
Please sign into your account when prompted, then liberate this title again.
(All of your account settings and marketplaces are preserved.)
""";
}