mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-11-29 09:41:02 +01:00
* 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.
196 lines
8.9 KiB
C#
196 lines
8.9 KiB
C#
namespace LibationWinForms.Dialogs
|
|
{
|
|
partial class AccountsDialog
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.cancelBtn = new System.Windows.Forms.Button();
|
|
this.saveBtn = new System.Windows.Forms.Button();
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
this.DeleteAccount = new DeleteColumn();
|
|
this.ExportAccount = new ExportColumn();
|
|
this.LibraryScan = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
this.SignedIn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
this.AccountId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.Locale = new LocaleColumn();
|
|
this.Marketplaces = new MarketplacesColumn();
|
|
this.AccountName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.importBtn = new System.Windows.Forms.Button();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// cancelBtn
|
|
//
|
|
this.cancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.cancelBtn.Location = new System.Drawing.Point(832, 479);
|
|
this.cancelBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
this.cancelBtn.Name = "cancelBtn";
|
|
this.cancelBtn.Size = new System.Drawing.Size(88, 27);
|
|
this.cancelBtn.TabIndex = 3;
|
|
this.cancelBtn.Text = "Cancel";
|
|
this.cancelBtn.UseVisualStyleBackColor = true;
|
|
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
|
|
//
|
|
// saveBtn
|
|
//
|
|
this.saveBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.saveBtn.Location = new System.Drawing.Point(714, 479);
|
|
this.saveBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
this.saveBtn.Name = "saveBtn";
|
|
this.saveBtn.Size = new System.Drawing.Size(88, 27);
|
|
this.saveBtn.TabIndex = 2;
|
|
this.saveBtn.Text = "Save";
|
|
this.saveBtn.UseVisualStyleBackColor = true;
|
|
this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click);
|
|
//
|
|
// dataGridView1
|
|
//
|
|
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
|
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.DeleteAccount,
|
|
this.ExportAccount,
|
|
this.LibraryScan,
|
|
this.SignedIn,
|
|
this.AccountId,
|
|
this.Locale,
|
|
this.Marketplaces,
|
|
this.AccountName});
|
|
this.dataGridView1.Location = new System.Drawing.Point(14, 14);
|
|
this.dataGridView1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
this.dataGridView1.MultiSelect = false;
|
|
this.dataGridView1.Name = "dataGridView1";
|
|
this.dataGridView1.Size = new System.Drawing.Size(905, 458);
|
|
this.dataGridView1.TabIndex = 0;
|
|
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellContentClick);
|
|
this.dataGridView1.DefaultValuesNeeded += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_DefaultValuesNeeded);
|
|
//
|
|
// DeleteAccount
|
|
//
|
|
this.DeleteAccount.HeaderText = "Delete";
|
|
this.DeleteAccount.Name = "DeleteAccount";
|
|
this.DeleteAccount.ReadOnly = true;
|
|
this.DeleteAccount.Text = "x";
|
|
this.DeleteAccount.Width = 46;
|
|
//
|
|
// ExportAccount
|
|
//
|
|
this.ExportAccount.HeaderText = "Export";
|
|
this.ExportAccount.Name = "ExportAccount";
|
|
this.ExportAccount.Text = "Export to audible-cli";
|
|
this.ExportAccount.Width = 47;
|
|
//
|
|
// LibraryScan
|
|
//
|
|
this.LibraryScan.HeaderText = "Include in library scan?";
|
|
this.LibraryScan.Name = "LibraryScan";
|
|
this.LibraryScan.Width = 94;
|
|
//
|
|
// SignedIn
|
|
//
|
|
this.SignedIn.HeaderText = "Signed in?";
|
|
this.SignedIn.Name = "SignedIn";
|
|
this.SignedIn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.SignedIn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
this.SignedIn.Width = 83;
|
|
//
|
|
// AccountId
|
|
//
|
|
this.AccountId.HeaderText = "Audible email/login";
|
|
this.AccountId.Name = "AccountId";
|
|
this.AccountId.Width = 125;
|
|
//
|
|
// Locale
|
|
//
|
|
this.Locale.HeaderText = "Locale";
|
|
this.Locale.Name = "Locale";
|
|
this.Locale.Width = 47;
|
|
//
|
|
// Marketplaces
|
|
//
|
|
this.Marketplaces.HeaderText = "Marketplaces";
|
|
this.Marketplaces.Name = "Marketplaces";
|
|
this.Marketplaces.Text = "Marketplaces";
|
|
this.Marketplaces.Width = 90;
|
|
//
|
|
// AccountName
|
|
//
|
|
this.AccountName.HeaderText = "Account nickname (optional)";
|
|
this.AccountName.Name = "AccountName";
|
|
this.AccountName.Width = 170;
|
|
//
|
|
// importBtn
|
|
//
|
|
this.importBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.importBtn.Location = new System.Drawing.Point(14, 480);
|
|
this.importBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
this.importBtn.Name = "importBtn";
|
|
this.importBtn.Size = new System.Drawing.Size(156, 27);
|
|
this.importBtn.TabIndex = 1;
|
|
this.importBtn.Text = "Import from audible-cli";
|
|
this.importBtn.UseVisualStyleBackColor = true;
|
|
this.importBtn.Click += new System.EventHandler(this.importBtn_Click);
|
|
//
|
|
// AccountsDialog
|
|
//
|
|
this.AcceptButton = this.saveBtn;
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.cancelBtn;
|
|
this.ClientSize = new System.Drawing.Size(933, 519);
|
|
this.Controls.Add(this.dataGridView1);
|
|
this.Controls.Add(this.importBtn);
|
|
this.Controls.Add(this.saveBtn);
|
|
this.Controls.Add(this.cancelBtn);
|
|
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
this.Name = "AccountsDialog";
|
|
this.Text = "Audible Accounts";
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button cancelBtn;
|
|
private System.Windows.Forms.Button saveBtn;
|
|
private System.Windows.Forms.DataGridView dataGridView1;
|
|
private System.Windows.Forms.Button importBtn;
|
|
private DeleteColumn DeleteAccount;
|
|
private ExportColumn ExportAccount;
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn LibraryScan;
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn SignedIn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn AccountId;
|
|
private LocaleColumn Locale;
|
|
private MarketplacesColumn Marketplaces;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn AccountName;
|
|
}
|
|
} |