Improve YouTube livestream playback for radio stations#5
Merged
luongnv89 merged 1 commit intoluongnv89:mainfrom Jan 6, 2026
Merged
Conversation
- Radio stations can now use YouTube URLs (live streams work well) - Uses yt-dlp pipe to ffplay for reliable HLS streaming on Unix - Falls back to direct URL playback on Windows - Properly cleans up process groups when stopping playback - Add Anjunadeep Radio (YouTube live stream) to Electronic section - YouTube stations are hidden if yt-dlp is not installed
Owner
Code ReviewGreat contribution! This PR effectively addresses the YouTube livestream dropout issue by piping yt-dlp directly to ffplay, which handles HLS buffering and reconnections much more reliably. Highlights:
The addition of Anjunadeep Radio as an example station is a nice touch for testing the feature. Thanks for the contribution! |
luongnv89
added a commit
that referenced
this pull request
Jan 12, 2026
Improve YouTube livestream playback for radio stations
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.
G'day!
I saw your posts about music-cli on X and finally got around to checking it out - really love it! I wanted to listen to Anjunadeep Radio while coding, so I added it as a radio station.
I noticed intermittent dropouts when playing YouTube livestreams, so I improved the playback by piping yt-dlp directly to ffplay. This handles HLS buffering and reconnections much more reliably. Should work great for YouTube live streams like Anjunadeep Radio, Monstercat, lofi hip hop study streams, etc.
What this does
Tested