Skip to content

v3.6.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:17
· 109 commits to main since this release
671eadd

Crate 3.6.0

Crate 3.6.0 brings Crate to Android Auto as a first preview: from the car you can browse
your library, search it and play from it, and playback keeps going with the phone's screen
off. Casting from Android to Google's default receiver now plays a real queue, with
artwork, instead of one track at a time. Settings has a single Devices section for Crate
Connect and the phone's Android Auto and Cast access. On the server, a catalogue
reconciliation fix stops a retry loop that reported an error on every attempt. The database goes
from migration 169 to 171.

Crate is published under the GNU Affero General Public License v3.0 (AGPL-3.0).

Android Auto (preview)

  • Crate in the car. The Android app is now a media library that Android Auto can open
    without the app on screen. Its tabs are Home (mixes, recently played, radio), Library
    (recent, playlists, liked, saved albums, followed artists) and Radio. Albums and artists
    show as grids, and album tracks as a list.
  • Search and play. The search button finds artists, albums and tracks. Playing an item
    starts the queue at that track; the phone's notification and lock screen follow it, and
    playback continues with the screen off.
  • Resume. A queue started from the car resumes at the saved track and position after
    the app process is stopped. Opening Crate on the phone leaves the car's queue playing.
  • Signed out. With no signed-in phone, the car shows "Open Crate on your phone to sign
    in" and makes no requests.
  • Getting it on a car. The APK is not distributed through the Play Store yet, so Android
    Auto only lists it with Unknown sources enabled in Android Auto's developer settings.
    docs/technical/android-auto.md describes the steps, including testing with the Desktop
    Head Unit instead of a car.
  • Known limits. Voice search, plays started from the car appearing in your history and
    stats, artwork in browse lists, radio and mix continuation from the car, and a Downloads
    tab are not done yet. This preview has been tested with unit and service tests, not yet
    on a car head unit.

Google Cast from Android

  • A real queue on the TV. With Google's default receiver, which every build uses until
    Crate's own receiver is registered, a cast now loads the current track and the next two,
    and keeps one played track for Previous. The phone refills the queue as playback advances,
    so it keeps going with the phone's screen off. Before, the receiver held one track.
  • Artwork on every item. Queued items get album artwork, not just the first one. If
    artwork cannot be fetched, the item plays without it.
  • Failures. Temporary network and server errors are retried with backoff, a track that
    is still being prepared is retried after a few seconds, and a track that is gone or not
    allowed is skipped. A revoked device stops the queue until the phone signs in again.

Devices in Settings

  • One section. Settings > Connections opens with Devices, which replaces Crate
    Connect devices. There is one row per physical device with its name, platform and last
    use, and labels for "This device", Crate Connect, and Android Auto and Cast access. The
    Crate Connect switch stays in this section. When Crate Connect is not available, the
    section lists the devices with Android Auto and Cast access.
  • Revoke. Revoking a device removes its Crate Connect registration and its Android Auto
    and Cast access. On the phone you are using, the action resets the phone's access keys
    instead: you stay signed in.
  • Player output menu. The output menu has a Manage devices entry that opens this
    section.

Server

  • Device credentials. The Android app gets its own credential for the work it does with
    the app in the background: streams and artwork for the car and the Cast queue, browsing,
    search and play reporting. Each one belongs to the signed-in session that created it,
    expires with that session and stops working as soon as the session ends or the device is
    revoked. It can only reach the routes that work needs. Media tickets created with it stop
    working when it is revoked.
  • Device browse API. GET /api/me/device/browse/{node}, GET /api/me/device/search
    and POST /api/me/device/queue serve small paged lists and ready-to-play queues of at
    most 500 tracks. They read precomputed surfaces and never build the home in the request.
  • Revoked sessions. Revoking a session, or all sessions, now takes effect at once. Before,
    a revoked session could keep working for up to 10 seconds from the API's auth cache.
  • Catalogue reconciliation. The library recreates album and track rows with new ids
    when they are rescanned. Catalogue sources kept the old id, so a track whose album had
    been recreated waited for an artist that never came, and every retry reported an error.
    One such issue used up the monthly Sentry error quota. Sources now follow their entity
    to its current id, and a source that is waiting on a dependency is retried with backoff,
    from 1 hour up to 24 hours, without being reported as an error. Migration 171 repairs the
    stored ids and requeues the waiting sources.

Upgrading

  • Migrations 170 (device credentials) and 171 (catalogue source ids) run on deploy. Nothing
    to configure.
  • Android Auto, the Cast queue and the Devices section on the phone need the 3.6.0 Android
    app. Phones that already had a device credential move it to their Crate Connect id on the
    next sync.

Downloads

  • Server: curl -fsSL https://cratemusic.app/install.sh | bash for new home installs,
    or crate install --dir <install folder> to upgrade one. Binaries for Linux and macOS
    on amd64 and arm64 are attached, with crate-checksums.txt.
  • Desktop: Crate-macos-arm64.app.zip, Crate-macos-intel.app.zip,
    crate-windows.exe, crate-windows.msi, crate-linux.AppImage, crate-linux.deb and
    crate-linux.rpm. Each is also at
    https://github.com/thecrateapp/crate/releases/latest/download/<file>. macOS builds
    are ad-hoc signed.
  • Android: crate.apk (signed and minified), plus the versioned APK and App Bundle.

Report issues at https://github.com/thecrateapp/crate/issues.