~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/hydraulophone

An unofficial YouTube Music app for iPhone, iPad, and Mac.

0
0
main
64 lines · 4.3 KB Raw History
# Personal mixes and watch playlist endpoints

## Observed reference behavior

Hydraulophone retains the route supplied by each catalog renderer. A browse
endpoint keeps its exact `browseId` and optional `params`; a watch playlist
endpoint keeps its playlist ID and optional video ID, playlist set video ID,
index, and params. This allows the service to choose between `browse` and
`next` without inferring a personal mix ID from its title or a fixed prefix.

The pinned AuraMusic reference at commit
`185a77d31733047de06cbec619d40731755a0ec1` shows the two request shapes:

- [`HomePage.kt`](https://github.com/TeamAuraMusic/AuraMusic/blob/185a77d31733047de06cbec619d40731755a0ec1/innertube/src/main/kotlin/com/auramusic/innertube/pages/HomePage.kt)
  reads playlist-card play, shuffle, and radio `WatchEndpoint` values from the
  renderer. Its [`WatchEndpoint`](https://github.com/TeamAuraMusic/AuraMusic/blob/185a77d31733047de06cbec619d40731755a0ec1/innertube/src/main/kotlin/com/auramusic/innertube/models/Endpoint.kt)
  contains `videoId`, `playlistId`, `playlistSetVideoId`, `index`, and `params`.
- [`InnerTube.kt`](https://github.com/TeamAuraMusic/AuraMusic/blob/185a77d31733047de06cbec619d40731755a0ec1/innertube/src/main/kotlin/com/auramusic/innertube/InnerTube.kt)
  posts those values to `next`. Its [`YouTube.next`](https://github.com/TeamAuraMusic/AuraMusic/blob/185a77d31733047de06cbec619d40731755a0ec1/innertube/src/main/kotlin/com/auramusic/innertube/YouTube.kt)
  reads queue items from the watch-next playlist panel. The same file browses
  ordinary playlist details using `browseId = "VL$playlistId"`.
- The separate pinned startup reference at commit
  `28fa8f042bfabb880bdecc0d9fa37e86cf72b90e` has a generic
  [`browse(browseId, params)`](https://github.com/MetrolistGroup/Metrolist/blob/28fa8f042bfabb880bdecc0d9fa37e86cf72b90e/innertube/src/main/kotlin/com/metrolist/innertube/YouTube.kt)
  adapter, supporting preservation of renderer-provided browse IDs and params.

These are observations from reference clients, not a stable YouTube API
contract. This implementation does not manufacture a named mix ID or assume
that every renderer containing a `playlistId` is a playlist. It accepts
playlist browse endpoints, explicit `watchPlaylistEndpoint` values, and
playlist-only `watchEndpoint` values. A `watchEndpoint` that has a video ID
and playlist context remains a song endpoint.

## Hydraulophone behavior and limits

- Browse-backed playlist cards use their source browse ID and params. The `VL`
  browse route also identifies playlists when optional page-type metadata is
  absent; the underlying ID is preserved without requiring a `PL` prefix. Existing
  `VL<id>` fallback remains for older domain values created without route data.
- Cards with only an explicit watch playlist endpoint fetch their queue through
  `next`. Queue continuations are passed back unchanged with the same endpoint.
- Cache identity includes the retained route fields so two routes with the same
  display ID do not share catalog results accidentally.
- The current parser reads `playlistPanelVideoRenderer` rows and maps title,
  duration, linked artist and album metadata, and thumbnail. Queue controls,
  shuffle, and radio actions are outside this feature. Automix preview panels
  that redirect to another queue are not expanded yet.

No authenticated response fixture is checked in because the repository does
not have a sanitized My Supermix response. Validate card classification,
request routing, and continuation behavior against a sanitized response before
expanding support to other renderer shapes. Do not log endpoint params, account
context, or response bodies.

## Simulator evidence — 2026-09-24

`just simulator-smoke-personal-mixes` passed against the simulator's restored
session: one Home page included 12 mix cards and My Supermix; the selected
Supermix returned 100 tracks followed by 100 tracks on its continuation. Only
counts and presence flags were logged. This establishes the returned mix route through the live service; alternate
watch-only queue variants still need sanitized fixture coverage.
The debug diagnostic is bounded to ten catalog requests and never starts media.
A repeated run also found My Supermix and returned 100 + 100 tracks; Home shelf
contents and mix-card counts can vary between requests.