Commit Graph
18 Commits
Author SHA1 Message Date
Yuriy PanovandClaude Opus 5.5 2127c48cc9 Run CI on the mac-mini runner
CI / check (push) Failing after 1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 13:20:07 +06:00
Yuriy PanovandClaude Opus 5.5 d085c169fb Keep the sign-in through a 403 or an expired token
Any 403 counted as a rejected token: one refused track, playlist or CDN file
signed the user out and deleted the stored credentials, and a 403 from
/get-file-info skipped the MP3 fallback. A 403 is now its own error that only
fails that request, and at start-up it shows the unreachable screen with the
credentials kept.

The token was also only refreshed when the app started, so one expiring while
the app ran, as it can on a TV left on for weeks, signed the user out with a
good refresh token in hand. Requests now renew the token on a 401 and try
once more; requests rejected together share one refresh, the rotated tokens
are saved, and only a refused refresh token or a second 401 signs out. The
fix is in core, so the TV app gets it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 11:57:57 +06:00
Yuriy PanovandClaude Opus 5.5 04fb5b2b47 Fit navigation labels at large text sizes
At the large text size in Russian the bottom bar cut "Моя волна" to "Моя"
and "Коллекция" to "Коллекци". The five labels now shrink to fit their
slot; everything else keeps the chosen size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:27:59 +06:00
Yuriy PanovandClaude Opus 5.5 891b1b6efd Open offline at once when there's no connection
With airplane mode on, checking the stored sign-in waited out every retry and
timeout, about 90 seconds on a Galaxy S20, before showing the downloads. The
phone app now tells AppState whether the device has any network, and with none
it goes straight to the offline screen; the network callback signs in again
once a connection appears. The TV keeps trying as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:27:59 +06:00
Yuriy PanovandClaude Opus 5.5 a60194c5a7 Fix moving a track down in a playlist
Yandex reads both operations of a change against the playlist as it was, so
deleting a track and inserting it at the next row's index put it back where
it was. A track moving down is now inserted after the row it passes. Moving
up was already right. The fix is in the shared client, so the TV app gets it
too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:27:59 +06:00
Yuriy PanovandClaude Opus 5.5 8b7778d95c Close the keyboard after a search
Clearing focus alone left Samsung's keyboard up over the results after the
search key or a suggestion. The keyboard is now hidden first, while the field
still has its input session, then focus is cleared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:27:59 +06:00
Yuriy PanovandClaude Opus 5.5 329686ab02 Keep the play bar's buttons on screen
In Russian, or at the large text size, Play, Shuffle and a page's heart and
download buttons are wider than a phone: on a Galaxy S20 the download button
went past the edge. When the row doesn't fit, Shuffle now drops its label and
shows as a round icon button with the same outline; English on a roomy screen
looks as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:27:59 +06:00
Yuriy PanovandClaude Opus 5.5 8b5cedd991 Add remove buttons to downloaded content
Downloaded albums and playlists get a bin on their row in Downloads and on
their own page, which asks before deleting the files. Downloaded track rows
show a bin in place of the heart that removes the track at once. The end of
the Downloads page has Remove all downloads, the same button Settings uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:34:26 +06:00
Yuriy PanovandClaude Opus 5.5 75a02c61e5 Check the stored sign-in only once at a time
The activity and the playback service both start the app state. When the
first check of the stored sign-in was still running as the service came up,
a second one started and signed in again with a new client. Requests already
made with the first client had their results dropped, and since they still
showed as loading they were never asked for again, so Home and Liked tracks
could stay on "Loading…" after a cold start. A check now waits out one that
is already running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:34:26 +06:00
Yuriy PanovandClaude Opus 5.5 8461c20133 Bump version to 0.1.7 (8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:14:55 +06:00
Yuriy PanovandClaude Opus 5.5 f5e9f77981 Bump phone app version to 0.1.2 (3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:13:39 +06:00
Yuriy PanovandClaude Opus 5.5 d3b3e139b5 Add offline listening to the phone app
Albums, playlists and Liked tracks get a download button beside the heart,
and every track's menu offers Download or Remove download. Files are fetched
one at a time at the streaming quality, stored decrypted with their covers,
and play from the device even online. A downloaded album, playlist or Liked
tracks follows later changes to it. What's wanted is saved before it's
fetched, so a download cut short resumes when the connection returns or the
app next starts; a foreground service with a progress notification keeps it
going with the screen off.

Collection links to a Downloads page listing what's on the device, with
progress, failures and a retry. When Yandex can't be reached at launch and
something is downloaded, the app opens on that page with the player instead
of the "can't reach" screen, and reconnects by itself when the network
returns. Offline, menus and Now Playing hide what needs a connection, and
lyrics say they can't load instead of waiting forever. Settings shows the
space downloads take and can remove them all.

Another account signing in clears the previous one's downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:12:34 +06:00
Yuriy PanovandClaude Opus 5.5 c13a4053ac Buffer further ahead on the phone for slow networks
The phone app now keeps up to ten minutes buffered (capped at 48 MB), and after
a stall waits for ten seconds of audio before resuming, so a weak link doesn't
stutter. Once the current track has finished loading, the next one is fetched
into a 256 MB disk cache, still encrypted, so it starts at once.

Both are set by a Buffering passed to AppState; the TV keeps ExoPlayer's defaults
and no audio cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 13:26:43 +06:00
Yuriy PanovandClaude Opus 5.5 39ab994a02 Bump phone app version to 0.1.1 (2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 13:13:06 +06:00
Yuriy PanovandClaude Opus 5.5 2fac4f94fb Add like and don't-recommend buttons to the car's Now Playing
The library session offers two custom commands, and its media button
preferences show a heart that follows the track's like and a "don't
recommend" that dislikes and skips, as from the app's menu. Previous and next
keep their slots; Android Auto puts the two at the right edge.

Recently played and Chart get their first track's cover, so Auto's grid no
longer shows broken images for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:43:19 +06:00
Yuriy PanovandClaude Opus 5.5 729b9b8aef Add a phone app with Android Auto support
:mobile (it.panov.musyx) is a Material 3 phone app over the shared AppState: Home,
My Wave, search, collection, detail pages, Now Playing with queue and lyrics,
and sign-in through Yandex's page in the browser.

Its playback service is a MediaLibraryService, so Android Auto and Automotive
can browse My Wave and stations, Home picks and the collection, search, and
play by voice. Covers reach the car through a content provider limited to
Yandex hosts. Signed out, the car shows a Sign in button, and it reloads when
the session changes.

The session's playlist is now the current track and PlayerCore's next 50, so a
car's queue screen lists them and picking one jumps there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:19:27 +06:00
Yuriy PanovandClaude Opus 5.5 f004859395 Bump version to 0.1.6 (7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:23:45 +06:00
Yuriy PanovandClaude Opus 5.5 4c978efa80 Split the shared code into a core module
The Yandex Music client, the player, the app state and the stores move from the
TV app to :core (it.panov.musyx.*), so a phone app can build on them. The TV app
becomes :tv with the same application id. CoverHues, SessionPlayer and the
strings the state layer shows move with them; LRCLIB's user agent is set by
each app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:07:21 +06:00