Skip to content

StreamerBot 2.4.1

Choose a tag to compare

@kcrpine kcrpine released this 05 Nov 03:37

Fixes YouTube videos stopping after about a minute and dla not finding some artists. Apple Music songs that stop early are now logged, so that cause can be found next.

  • [096] Apple Music playback events are now logged. In an album or playlist, Apple's own player moves to the next song by itself, so a song cut off a minute in (danielBot, November 2026) left nothing in the bot's log. The player page now records song changes, state changes, playback errors and stalls. The browser thread reads that record every 5 seconds while it is otherwise idle, because Playwright only delivers page events during a call. Each song change says how far the previous song got and how long it was, and a song left more than 5 seconds before its end is logged as a warning, so a cut-off song can be told from one that finished. This adds logging only: the cause of the skipping is not known yet, and the fix waits on what these lines show.
  • [095] dla now finds an artist when Apple Music's search shows no Artist card. Apple shows one for some searches only: "Celtic Thunder" and "Elvis Presley" came back as songs and albums alone, so dla said no artist was found while p played their music. The search now keeps the artist link on each song and album, and dla falls back to it. It prefers a result whose artist matches what was asked, including the part after "by" in "My Gift by Carrie Underwood", and otherwise uses the top result's artist. The artist's name is still read out in dla's question before anything downloads, so a wrong guess can be cancelled. When no artist is found at all, the log now says how many results there were and of which kinds; before, it said nothing.
  • [094] YouTube no longer cuts every video off after about a minute on a signed-in bot. From 2026-11-04, every video danielBot played stopped between 962,500 and 1,181,250 bytes, about 60 seconds in, and then skipped to the next. Each stream URL still carried the video-bound token that [055] found lifts Google's ~1 MB cap, and Google ignored it. Rather than swap one hard-coded guess for another, the bridge now checks the cap itself: it asks for one kilobyte just past 1.3 MB with each candidate token (bound to the video, the session's own token already on the URL, or bound to visitorData) and keeps the first one Google serves. It remembers that choice for the session, so the usual cost is one small extra request per video. If every token is cut off, the next client is tried. If none does better, the capped stream is still used, because a minute of a track beats skipping it, and the log now says so.

🤖 Generated with Claude Code

https://claude.ai/code/session_01K3ZsDdeDLTwGP9idYoYsPm