Repository navigation
Play YouTube, SoundCloud, and Mixcloud links directly - #1
Merged
Merged
Conversation
Pasting a URL previously fell through to `ytsearch5:<url>`, so a link searched for its own text instead of playing. - add parseSourceUrl() and resolveUrl() to the search adapter: playlists resolve with --yes-playlist, single tracks with --no-playlist, and a watch URL carrying a dead list= falls back to the linked video - trim yt-dlp's multi-line diagnostics to the one line worth showing - branch doSearch() to the link path, extracting the loader spinner into a shared runWithLoader() rather than duplicating it - document the URL form and the shell-quoting caveat in help Verified against a live link: resolves to the track, streams through mpv with playback-time advancing and duration matching. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WqTzyMAtea218cjQsXcHG3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paste a YouTube, SoundCloud, or Mixcloud URL into sonic and it plays. This has run locally since September but never reached main.
Tested: on the Mac Studio, `npm run check` passes, the TUI renders and quits clean, search returns results on all three sources, a YouTube watch URL resolves, and mpv streams it (yt-dlp 2026.08.19, mpv 0.41.0).
Not done: `bash/agents-md-only` is superseded by this and would delete link playback if merged. Spotify source (`chef/2026-03-07-spotify`) is still unmerged.
🤖 Generated with Claude Code