mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-11-29 01:38:50 +01:00
feat: first-class account re-registration lifecycle with automatic throttling recovery (#2126) (#2145)
* feat(domain): add RequiresReRegistration and ThrottledDeviceRecovery policy - Add Account.RequiresReRegistration property and HasObsoleteDeviceRegistration predicate - Update AccountCredentialStatus to treat RequiresReRegistration as missing credentials - Introduce ThrottledDeviceRecovery service to detect throttling on obsolete profiles and mark accounts for re-registration - Add unit tests for Account, AccountCredentialStatus, and ThrottledDeviceRecovery * feat(core): enforce interactive re-registration across API and download queue - Intercept RequiresReRegistration in ApiExtended, invalidate tokens during login, and reset flag upon success - Add LicenseDeniedThrottledRecovered queue status and user message - Update ProcessBookViewModel, ProcessQueueViewModel, and _ProcessableOptionsBase to handle throttled recovery during liberation * feat(ui): add Widevine re-registration prompts and CLI status reporting - Prompt to mark accounts for re-registration when Widevine is enabled in Avalonia and WinForms - Guard settings toggle against passive navigation/loading events and revert cleanly on cancel - Show 're-login needed' in 'list-accounts' and automatically re-register in 'login-external' - Add CLI tests for re-registration detection and flow in LoginExternalOptionsTests * docs: document automatic registration recovery and rate limiting guidance - Clarify distinction between device-registration throttling and volume rate limits - Document automatic settings migration and re-registration flow across GUI and CLI - Advise using Daily Download Limit when bulk re-downloading after scanning for higher quality audio - Remove obsolete manual account deletion and JSON editing instructions * feat(ui): automatically enable Widevine and re-register accounts when upgrading book quality When upgrading audio quality via 'Scan Audible for Higher Quality Audio', marking books for re-download previously left Widevine disabled and accounts under legacy registrations, causing subsequent downloads to re-acquire the existing lower-quality AAC-LC stream. - Update FindBetterQualityBooksViewModel.MarkBooksAsync() to return a MarkBooksResult and automatically enable Widevine and Request xHE-AAC when higher-quality streams are selected. - Thunk accounts to CurrentAndroid and mark them for re-registration via ThrottledDeviceRecovery so that Widevine-protected and higher-quality codecs can be licensed without manual troubleshooting. - Alert user in Avalonia and WinForms dialogs when settings and registrations have been automatically upgraded. - Fix broken sentence and note daily download limits and rate limiting in FindBetterQualityBooksViewModel.InitialMessage. - Add unit tests in FindBetterQualityBooksViewModelTests covering clean and upgraded re-registration paths. * feat(accounts): add 'Signed in?' checkbox to mark accounts for re-registration on save * docs & fix(recovery): modernize license recovery guidance and document 'Signed in?' * feat(recovery): automatically enable Widevine and thunk account when ADRM fails (#2083) - Detects missing ADRM asset (Sable 000307 acr:null) and missing AAX fallback codecs in titles that only deliver via Widevine. - Instead of merely advising the user to change settings manually, automatically applies recovery via ThrottledDeviceRecovery.ApplyRecovery (sets UseWidevine = true, CurrentAndroid, and marks the account for re-registration). - Modernizes user-facing dialogs, process queue status, and CLI feedback to explain that Widevine DRM was enabled and a fresh login is required.
This commit is contained in:
committed by
GitHub
parent
503904e6f4
commit
3e40e0f268
@@ -1,4 +1,4 @@
|
||||
using ApplicationServices;
|
||||
using ApplicationServices;
|
||||
using DataLayer;
|
||||
using FileLiberator;
|
||||
using LibationFileManager;
|
||||
@@ -815,6 +815,7 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
}
|
||||
else if (result == ProcessBookResult.LicenseDeniedPossibleOutage
|
||||
|| result == ProcessBookResult.LicenseDeniedThrottled
|
||||
|| result == ProcessBookResult.LicenseDeniedThrottledRecovered
|
||||
|| (result == ProcessBookResult.LicenseDenied && book.LibraryBook.IsAudiblePlus))
|
||||
{
|
||||
bool show;
|
||||
@@ -828,6 +829,7 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
{
|
||||
ProcessBookResult.LicenseDeniedPossibleOutage => ContentLicenseDeniedUserMessage.BuildDialogBodyForPossibleOutage(title, locale, updateStatus, hasAdditionalMarketplaces),
|
||||
ProcessBookResult.LicenseDeniedThrottled => ContentLicenseDeniedUserMessage.BuildDialogBodyForThrottling(title, locale, updateStatus, hasAdditionalMarketplaces),
|
||||
ProcessBookResult.LicenseDeniedThrottledRecovered => ContentLicenseDeniedUserMessage.BuildDialogBodyForThrottlingRecovered(title),
|
||||
_ => ContentLicenseDeniedUserMessage.BuildDialogBodyForPlusCatalog(title, locale, updateStatus, hasAdditionalMarketplaces)
|
||||
};
|
||||
await MessageBoxBase.Show(
|
||||
|
||||
Reference in New Issue
Block a user