2060 Commits

Author SHA1 Message Date
Michael Bucari-Tovo
678e2354af inc ver 2026-11-18 15:02:00 -07:00
Mbucari
20cc4e7ca2 Merge pull request #2171 from Dominik-O22/username-login-hint
Explain the Audible username link in the login window
2026-11-18 15:00:56 -07:00
Mbucari
c8560938c2 Merge pull request #2172 from wtanksleyjr/fix/clear-deferrals-on-reregistration
fix: clear LicenseDenied deferrals on account re-registration and clarify skip message
2026-11-18 15:00:36 -07:00
Mbucari
ef536a7cf4 Merge pull request #2164 from wtanksleyjr/fix/api-extended-login-gate-token-sync
fix(auth): prevent concurrent login loop and sync refreshed tokens in ApiExtended
2026-11-18 15:00:28 -07:00
William Tanksley
cc12b39439 fix(cli): add missing ApplicationServices and DataLayer usings in LoginExternalOptions 2026-11-18 12:11:29 -08:00
William Tanksley
f61c1ecd0b test: cover manual re-registration and throttled device recovery deferral clearing 2026-11-18 11:57:24 -08:00
William Tanksley
fb8b53cf35 fix: clear LicenseDenied deferrals on account re-registration and clarify skip message 2026-11-18 11:51:19 -08:00
Dominik Opwis
deb83d13af Explain audible:// sign-in links instead of ignoring them
Audible's Android sign-in page links "Sign in with an Audible Username"
to audible://view?section=authportal&pageType=private, which only the
Audible app opens. In the embedded browser the click did nothing, so
username accounts set to a normal region had no way forward (#2169).

Both login dialogs now cancel audible:// navigations and tell the user
to switch the account to a pre-amazon locale, or back to a normal one
for the reverse link. The prefill script also fills the pre-amazon
username field (#ap_email), which it missed before, and no longer
overwrites a field that already has a value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:37:01 +01:00
William Tanksley
e36ed857ab fix(avalonia): pass bool x:True instead of string for NTFS preset CommandParameter (#2095) 2026-11-17 17:14:05 -08:00
William Tanksley
3eb2206555 refactor(auth): use AudibleApiStorage.GetAccountsSettingsPersister by default in SyncAccountFromDiskAfterLogin 2026-11-16 08:39:04 -08:00
William Tanksley
e5236c7167 fix(auth): sync IdentityTokens before clearing RequiresReRegistration 2026-11-16 08:27:22 -08:00
William Tanksley
b88d799852 fix(auth): re-check disk state in InteractiveLoginGate and sync tokens 2026-11-15 12:44:45 -08:00
Michael Bucari-Tovo
49fdb38001 inc ver 2026-11-13 09:13:23 -07:00
Mbucari
1910f69731 Merge pull request #2104 from Dominik-O22/surface-download-failure-cause
Show the disk-full message when a download runs out of space
2026-11-12 21:55:12 -07:00
Mbucari
ec140d8ac6 Update Dependencied and tweak new pre-release setting (#2152)
* Allow changing pre-release setting when startup check is disabled

* Update dependencies
2026-11-12 18:43:21 -07:00
William Tanksley Jr
4a70c41f65 feat(auth): upgrade AudibleApi to 14.1.3 and support Bearer tokens with graceful legacy fallback (#2148)
- Upgrade AudibleApi NuGet package reference from 14.1.2 to 14.1.3
- Support Bearer access token authentication alongside ADP request signing
- Proactively validate tokens and evaluate account SignInStatus (None, Modern, Legacy)
- Add tri-state 'Signed in?' checkbox in Avalonia and WinForms Accounts dialogs
- In ApiExtended, dynamically set Api.AuthenticationMethods based on tokens held by account
- Handle legacy credential rejections gracefully and guide user to re-authenticate
- In CLI, report modern vs legacy authentication status and support forced re-login
- Add comprehensive unit tests and user documentation
2026-11-12 18:42:09 -07:00
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
Michael Bucari-Tovo
98a96ae262 inv ver rc.1 2026-11-12 17:01:45 -07:00
Michael Bucari-Tovo
4d354deb06 inc ver alpha1 2026-11-12 17:00:46 -07:00
Mbucari
09a97a8a22 Add support for semantic versions and pre-releases (#2151) 2026-11-12 16:59:08 -07:00
William Tanksley Jr
3e40e0f268 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.
2026-11-12 09:54:23 -07:00
William Tanksley Jr
503904e6f4 Fix Linux WebView blank window on Wayland (#2129) (#2130)
* Fix Linux WebView blank window on Wayland and improve sign-in logging (#2129)

- Set WEBKIT_DISABLE_COMPOSITING_MODE=1 and WEBKIT_DISABLE_DMABUF_RENDERER=1
  on Linux startup in Program.cs so WebKitGTK does not fail silently on
  Wayland/Xwayland when hardware acceleration or DMABUF compositing is buggy.
- Add Configuration.IsWayland and Configuration.IsWaylandSession in
  LibationFileManager to detect Wayland desktop sessions.
- In AvaloniaLoginChoiceEager, only set gtkArgs.ForceX11GdkBackend = true when
  not running in a Wayland session (!Configuration.IsWayland). On Wayland
  (e.g. Fedora KDE Plasma 6), forcing X11 forces Xwayland, causing compositor
  mismatches and blank rendering.
- Add debug/warning logging for WebView adapter creation, navigation start,
  success, and failure in AvaloniaLoginChoiceEager.
- Add unit tests for Configuration.IsWaylandSession in LibationFileManager.Tests.

* Support RPM 4.20+ isolated build directory in Bundle_Redhat.sh

RPM 4.20 introduced per-package build directory isolation (%mkbuilddir),
which runs %install in %{_builddir}/%{name}-%{version}-build rather than
%{_builddir}. This caused Bundle_Redhat.sh to fail on newer runners
(e.g. GitHub Actions Ubuntu 26.04) because files were staged in %{_builddir}.

In %install, detect if files are not present in the current working directory
and copy them from %{_builddir}.
2026-11-09 08:42:02 -07:00
William Tanksley Jr
7f37f3a62e Lock SkiaSharp version range to [3.119.4, 4.0.0) and document CI compatibility test (#2115) (#2122)
Th
2026-10-27 12:40:46 -06:00
Michael Bucari-Tovo
8003ae6f29 Increment Version 2026-10-27 09:38:58 -06:00
Michael Bucari-Tovo
f2bdd081e1 Add test to pin SkiaSharp version to 3.x 2026-10-27 09:37:32 -06:00
Mbucari
b2ef92f2fc Update project version to 14.2.4 2026-10-26 20:57:19 -06:00
William Tanksley Jr
ed9c2cc409 Fix macOS launch crash from SkiaSharp mismatch and harden crash handler (#2115) (#2116)
- Pin SkiaSharp back to 3.119.4 in LibationUiBase to match Avalonia.Skia's
  expected native Skia milestone and restore the sk_fontmgr_ref_default export.
- Wrap BuildAvaloniaApp()?.SetupWithoutStarting() in Program.cs in try/catch to
  prevent InvalidOperationException ('Setup was already called on one of
  AppBuilder instances') when startup faults inside AppBuilder.Setup().
- Add TryShowFallbackAlert in Program.cs to output to stderr and trigger a
  native OS dialog (osascript display alert on macOS, MessageBoxW on Windows)
  when Avalonia cannot initialize its UI subsystem.
2026-10-26 20:56:01 -06:00
Michael Bucari-Tovo
4ff37cde59 Update tests 2026-10-26 10:42:17 -06:00
Michael Bucari-Tovo
12307cdb57 Increment Version
Update dependencies
2026-10-26 10:29:01 -06:00
Michael Bucari-Tovo
748361142f Improve import/export from/to mkb79/Audible 2026-10-26 09:51:45 -06:00
Michael Bucari-Tovo
c99edae0ac Fix liberater pdf command marking book as unliberated (#2088) 2026-10-26 09:49:37 -06:00
William Tanksley Jr
f61bbe5b68 Fix Linux WebView login hang and User-Agent failure (#2106) (#2108)
- Set NativeWebDialog.UserAgent in AdapterCreated instead of passing a full
  User-Agent header to ApplicationNameForUserAgent (which caused WebKit2GTK
  webkit_settings_set_user_agent assertion failures on Linux).
- Set gtkArgs.ForceX11GdkBackend = true when requesting the GTK WebView
  environment.
- Recognize GTK initialization failures (InvalidOperationException 'Unable to
  initialize GTK', libgtk-3/libgdk-3 DllNotFoundException, and exceptions
  originating from GtkNativeWebViewDialog/AvaloniaGtk) in
  WebView2LoginErrorMessage so async void NativeWebDialog.Show() failures
  fault BrowserLoginAsync instead of leaving tcs.Task waiting forever,
  allowing StartAsyncInternal to fall back to LoginExternalDialog.
2026-10-26 09:46:32 -06:00
Dominik Opwis
b3933e0b9d Surface download failure cause so disk-full detection fires
The step runner and the background download both log and swallow their
exceptions, so a failed download reached the queue only as "Decrypt
failed". The existing disk-full handling never ran and the user got the
generic Abort/Retry/Ignore dialog.

Keep the exception on NetworkFileStream and AudiobookDownloadBase.
DownloadDecryptBook rethrows it when it is a disk-full error, so hosts
match on the exception, and otherwise adds its message to the
StatusHandler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:06:55 +02:00
Robert McRackan
9bd43fae48 Fix annoying incorrect 'cloud folder' status in logs 2026-09-17 08:23:22 -04:00
Robert McRackan
83b87e648a bug fix #2071 -- better metadata serialization 2026-09-17 08:16:33 -04:00
Robert McRackan
ef4f6998a2 Merge branch 'master' of https://github.com/rmcrackan/Libation 2026-09-16 17:50:03 -04:00
Robert McRackan
2f5b91e5a2 incr ver to 14.2.2 2026-09-16 17:49:45 -04:00
Robert McRackan
9c51b69571 Show additional marketplace recovery advice only when applicable 2026-09-16 17:21:30 -04:00
Robert McRackan
d926b8b91c Preserve additional marketplaces in registration recovery guidance 2026-09-16 17:16:31 -04:00
Robert McRackan
b0bb60b7db Improve throttling recovery guidance in apps and docs 2026-09-16 16:10:08 -04:00
Robert McRackan
2b5d439d8f Address trash recovery and regression coverage review follow-ups 2026-09-16 14:02:38 -04:00
Robert McRackan
84c55a69d6 Fix crash reporting and handle library operation failures 2026-09-16 13:43:31 -04:00
Robert McRackan
cc819b4bf9 Fix Audiobookshelf PDF upload test setup
Create temporary AccountsSettings.json required by cover-art filename
generation, fixing the missing-file failure in CI.

Refs #2044
2026-09-14 23:54:21 -04:00
Robert McRackan
cd8f3df939 #2044: Add optional PDF inclusion in ABS uploads 2026-09-14 23:19:55 -04:00
Robert McRackan
49082756f8 comment 2026-09-14 17:34:19 -04:00
Robert McRackan
f5463bb0a2 fix unit tests 2026-09-14 17:29:54 -04:00
Robert McRackan
44cae6904d Experiment: RequestNextByteRangeAsync expects PartialContent. One user ( #2047 ) is getting OK. Attempting to support it 2026-09-14 17:15:15 -04:00
Robert McRackan
24fc8200d7 typo 2026-09-12 16:05:48 -04:00
Robert McRackan
f3fe4aa6d3 incr ver to 14.2.1 2026-09-12 16:05:11 -04:00
Robert McRackan
53d70d6c29 build mac 2026-09-12 15:56:37 -04:00