Commit Graph
44 Commits
Author SHA1 Message Date
Yuriy PanovandClaude Opus 5.5 35702ba820 Test CI on the mac-mini runner
CI / check (push) Failing after 8m55s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 13:27:21 +06:00
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.pandClaude Opus 5.5 1253b266ea Install the SDK platform as android-37.0
CI / check (push) Failing after 2h1m12s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:42:20 +06:00
yuriy.pandClaude Opus 5.5 aa06b6896e Drop the Gradle cache from CI
CI / check (push) Failing after 39s
The runner's cache server doesn't answer, so restoring the cache hangs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:34:44 +06:00
yuriy.pandClaude Opus 5.5 39e61d33a6 Cache Gradle through setup-java
CI / check (push) Failing after 7m40s
The runner can't resolve gradle/actions' v4 tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:27:53 +06:00
yuriy.pandClaude Opus 5.5 9f1b045ead Run CI on the dev_docker_runner_org runner
CI / check (push) Failing after 9m44s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:14:36 +06:00
yuriy.pandClaude Opus 5.5 4848e6bed6 Add Gitea Actions CI and tag releases
CI / check (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:05:25 +06:00
yuriy.pandClaude Opus 5.5 07e12eec6a Bump version to 0.1.8 (9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.1.3-tv0.1.8
2026-10-24 19:29:56 +06:00
yuriy.pandClaude Opus 5.5 b3a65d1612 Bump phone app version to 0.1.3 (4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:29:56 +06:00
yuriy.pandClaude Opus 5.5 05c90c03df Play downloads in Android Auto
Offline, the car showed "Sign in" and nothing to play. It now lists the downloads,
by track and by album or playlist, searches them and plays them by voice; online
they sit under Collection. Their covers come from the copies kept with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:29:49 +06:00
yuriy.pandClaude Opus 5.5 250e721fea Go offline when playback fails without a connection
A track that failed to load, or a station that couldn't fetch more, used to skip
three times and stop, even with downloads on the phone. Now a failure checks for a
connection, and with none the app goes offline: a queue skips to its downloaded
tracks (trying each track once, so a fully missing queue stops with a notice), and
a station, which has nothing more to give offline, gives way to all downloads,
shuffled. Now Playing stays open through the switch and back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:29:49 +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>
v0.1.2-tv0.1.7
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
yuriy.pandClaude Opus 5.5 90ac73facc Bump version to 0.1.5 (6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:17:37 +06:00
yuriy.pandClaude Opus 5.5 0a08e6923a Show the lyrics on the screen saver when Settings asks for them
Settings gets a Screen saver section: Photos (as before, the default) or
Photos and lyrics. With lyrics on, the saver fetches the playing track's
lyrics (Yandex's, else LRCLIB's) and stacks three lines right above the
song name, on the caption's side and at its edge: the line being sung,
large, between the one before and the one to come. Plain lyrics can't
know the line, so they show three same-size lines about as far in as
the song is.

The block is anchored at its foot and the next line's slot is always
kept, so the lines stay at one distance from the song name whatever
they say; lines crossfade as the song moves on, over a shade on that
side and with a text shadow for photos that are light.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:17:37 +06:00
yuriy.pandClaude Opus 5.5 81fce4a335 Fall back to LRCLIB for lyrics Yandex doesn't have
When Yandex answers "no lyrics" for a track, the lyrics tab now asks
LRCLIB (lrclib.net), an open lyrics database that needs no key. The
exact match by title, artist, album and length comes first; when that
is plain text, or missing, search picks a synced copy of the same
recording (within 3 s of its length). Speech and instrumentals get none.

- LRCLIB's /get answers 503 "ServerOverloaded" now and then: busy
  answers are retried twice, briefly, and a busy /get falls through to
  search.
- LRCLIB errors never map to Unauthorized, so they can't sign the user
  out of Yandex.
- Lyrics from LRCLIB carry a "Lyrics from LRCLIB" credit at the end of
  the list, and the empty state no longer blames Yandex alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:04:50 +06:00
yuriy.pandClaude Opus 5.5 39aed49b88 Bump version to 0.1.4 (5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 00:32:30 +06:00
yuriy.pandClaude Opus 5.5 ac8358f302 Light theme: porcelain greys with a petrol accent
The warm-paper light theme gives way to cool neutral greys (white panels
on a porcelain ground, near-black ink) with a petrol accent, a muted
blue-green that belongs on cool grey the way amber does on aubergine.
The dark theme keeps its amber. Every text colour still passes 4.5:1 on
bg, panel and raised, and the avatar initial now uses accent ink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 00:28:55 +06:00
yuriy.pandClaude Opus 5.5 2a36c8e1f3 Bump version to 0.1.3 (4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 00:15:05 +06:00
yuriy.pandClaude Opus 5.5 350b387723 Redesign the TV interface for the remote and the room
Navigation and focus:
- The search field no longer traps the D-pad or opens the keyboard on
  focus; Select starts editing, and up and down always leave.
- Focus is ink instead of an outline: rows, buttons, chips, tabs and the
  drawer fill with the text colour; covers and tiles lift with a soft
  shadow (a light one in the dark theme). Selected chips carry a check.
- Track lists are one stop per row; right reaches the heart and menu, and
  left from a row always opens the drawer.
- Chip rows and tab bars land on the selected item; card rows and the
  genre grid return to the card last visited.
- Pages scroll only as far as focus needs, so headers stay in view.
- The drawer lights the section a page was reached from.

Screens:
- Now Playing is a stage: a large cover over a blurred copy of itself,
  display-size title, album and year, amber progress, and the queue and
  lyrics in a panel that slides in on request (Back or Left closes it).
- Home shows Recently played and the Chart as shelves, the chart ending
  in a Show all tile; search results end their tracks with Show all.
- Browse is a genre grid under one title. Artist pages put the album,
  not the artist, under each track; album, artist and playlist pages put
  the heart beside Play.
- Books and podcast episodes get their own menu (no similar tracks,
  dislike or "go to" the page you're on), no "Unknown artist", and
  books are labelled as books.
- Playing tracks, albums and stations carry an equaliser badge; hearts
  are hidden where every item is liked.

Theme:
- Light is warm paper with aubergine ink and a deeper amber; every text
  colour passes 4.5:1. DESIGN.md records the palette and the focus rules.

ThemeTest now checks the current font scales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 00:14:39 +06:00
yuriy.pandClaude Opus 5.5 a7079adb3b Bump version to 0.1.2 (3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:42:50 +06:00
yuriy.pandClaude Opus 5.5 08928428f7 Replace the TV screen saver with one showing what's playing
While a track plays, the window keeps the screen on so the system saver
never starts. After the system's screen saver delay without input, the
app shows its own: the album cover and the artist's photos (from
brief-info's allCovers) crossfade and slowly zoom, under the artist,
song, album and year and a thin progress line. The caption switches
sides with each photo so nothing stays still on the panel.

The key that wakes the saver does nothing else; media and volume keys
still act. Paused for ten minutes, with nothing queued, or with a
dialog open, the app lets go and the system saver and sleep return.

Tracks now carry the album year and each artist's photo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 14:52:19 +06:00
yuriy.pandClaude Opus 5.5 6769463408 Hide the keyboard when a text field is submitted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:02:04 +06:00
yuriy.pandClaude Opus 5.5 c745f97309 Bump version to 0.1.1 (2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:56:54 +06:00
yuriy.pandClaude Opus 5.5 16dda03a3e Make all font sizes smaller
Small, Medium and Large now scale the desktop sizes by 0.9, 1.05 and 1.2
(were 1.2, 1.35, 1.5); new installs default to Medium.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:45:14 +06:00
yuriy.pandClaude Opus 5.5 52cba8f5b0 Open the side menu fast: own drawer that covers the page
The TV library drawer pushed the page aside and ran two chained springs,
re-laying out the whole page every frame, which crawled on real hardware.
The rail now opens with a single 150 ms tween over a dimmed page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:40:13 +06:00
yuriy.pandClaude Opus 5.5 d7e173a644 Make My Wave play: run effects returned from async results
Inside scope.launch, `apply { core.waveBatch(...) }` resolved to
Kotlin's CoroutineScope.apply, not the controller's helper, so the
effects were dropped and nothing was published. My Wave got its first
batch but never fetched a stream; skipping an unplayable track could
stall the same way. Rename the helper to `update`.

Also, if a station's first batch fails, Play asks again instead of
doing nothing, and the hero shows why My Wave stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:34:58 +06:00
yuriy.pandClaude Opus 5.5 ed4e2d0ac6 Show the sign-in code exactly as it must be typed
The code was split as "abcd efgh" for readability, and phone keyboards
added that space, capitalised the first letter or autocorrected the
letters, so ya.ru/device rejected it. Show it unbroken with letter
spacing, and add a hint: lowercase, no spaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:26:52 +06:00
yuriy.pandClaude Opus 5.5 46610d95fa Musyx Mobile: Android TV player for Yandex Music
Kotlin, Compose for TV and Media3 port of the desktop Musyx, with
device-code sign-in, Home, My Wave, search, collection, detail pages,
Now Playing with queue and lyrics, and settings for streaming quality,
appearance, font size (small, medium, large) and language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:14:54 +06:00