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>
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>
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>
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>
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>
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>
: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>
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>