Skip to content

Fix login recovery and MP3 CDN URL parsing - #2

Merged
jaFuart merged 2 commits into
mainfrom
fix/oauth-network-retry
Nov 9, 2026
Merged

jaFuart merged 2 commits into
mainfrom
fix/oauth-network-retry

Conversation

@jaFuart

@jaFuart jaFuart commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

LikeFolder stopped device-login polling after temporary DNS or connection errors, even when the browser had approved authorization. MP3 export also rejected valid CDN timestamps containing hexadecimal letters, reporting an unsupported CDN response before attempting the audio download.

  • Retry temporary device-login network failures with bounded backoff until code expiry, respecting OAuth intervals and cancellation.
  • Clear inactive login codes and prevent canceled attempts from overwriting manual login or logout.
  • Accept hexadecimal CDN timestamps and preserve their exact text when building the signed MP3 URL.
  • Report the specific malformed CDN field without exposing signed URLs; describe repeated download failures as a stopped export.
  • Run regression tests before APK assembly and bump the app to 0.1.2 (version code 3).

Validation: all 16 unit tests and APK assembly passed in GitHub Actions for commit ab46663. Tests cover login recovery/cancellation and exact CDN URL construction, hex and decimal timestamps, preservation of case/leading zeros, and invalid/missing fields. git diff --check passed.

Build: https://github.com/jaFuart/LikeFolder/actions/runs/42582119474
APK archive: https://github.com/jaFuart/LikeFolder/actions/runs/42582119474/artifacts/13657626981

CDN format references: https://github.com/MarshalX/yandex-music-api/blob/main/yandex_music/download_info.py and https://github.com/jmper-ha/jradio/blob/3e531b7a5ac6f810c069d0c2a9d2d726b6d4fcf5/tests/test_yandex_link.c

The user confirmed login works in 0.1.1. Export with their account must still be verified on the phone; no user token or private CDN response was accessed. Persistent network failures remain outside the scope of the login retry fix.

@jaFuart jaFuart changed the title Recover device login after temporary network failures Fix login recovery and MP3 CDN URL parsing Nov 9, 2026
@jaFuart
jaFuart merged commit 360dd94 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant