{"id":21198341,"url":"https://github.com/gssparks/cli-music-stream","last_synced_at":"2026-04-29T09:34:26.214Z","repository":{"id":200207574,"uuid":"705039600","full_name":"GSSparks/cli-music-stream","owner":"GSSparks","description":"A Bash script to play streaming music urls from the command line and in the background.","archived":false,"fork":false,"pushed_at":"2023-10-15T18:59:37.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T08:52:34.183Z","etag":null,"topics":["bash","command-line-tool","music","streaming-audio"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GSSparks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-14T21:22:35.000Z","updated_at":"2023-10-14T22:02:48.000Z","dependencies_parsed_at":"2023-10-16T04:21:03.774Z","dependency_job_id":"98aed4ec-c4f8-459a-b6c0-fce5a526ea74","html_url":"https://github.com/GSSparks/cli-music-stream","commit_stats":null,"previous_names":["gssparks/cli-music-stream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GSSparks/cli-music-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSSparks%2Fcli-music-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSSparks%2Fcli-music-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSSparks%2Fcli-music-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSSparks%2Fcli-music-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GSSparks","download_url":"https://codeload.github.com/GSSparks/cli-music-stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSSparks%2Fcli-music-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","command-line-tool","music","streaming-audio"],"created_at":"2024-11-20T19:50:48.443Z","updated_at":"2026-04-29T09:34:26.198Z","avatar_url":"https://github.com/GSSparks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-music-stream\nThis script takes a list of streaming urls and allows you to play them in the background from the cli.\nIncluded in this repo is a simple lua script that can be added to the `mpv` config directory to allow\na notification with the stream and song info.\n\n## Usage\n\n`./music_stream.sh play \u003cstream\u003e`\n\nOther agruments are `stop`, `next`, and `prev`.\n\n`next` and `prev` cycle through the stations.\n\n### How to add/change available streams\nThere are many ways to find stream URLs. An easy way is to simply\nvisit the [radio-browser.info](https://www.radio-browser.info/) website.\nHere you can find a community supported database of different online music streams.\n\nWhen you first run the script, it will create a `stream.json` file in your `.config` directory in your HOME. This json file will contain a variety of initial streams:\n```\n}\n  \"streams\": {\n    \"WAJI\": \"https://ice64.securenetsystems.net/WAJI?playSessionID=8882F088-FBC7-F008-2C64ACB2C771047E\",\n    \"Wayne\": \"https://prod-54-90-118-66.amperwave.net/adamsradio-wwfwfmaac-ibc1?\",\n    \"80s80s\": \"http://streams.80s80s.de/web/mp3-192/streams.80s80s.de/\",\n    \"90s90s\": \"http://streams.90s90s.de/grunge/mp3-192/streams.90s90s.de/\",\n    \"Bluegrass\": \"https://ice24.securenetsystems.net/WAMU\",\n    \"Country\": \"http://185.33.21.112/ccountry_mobile_mp3\",\n    \"Numetal\": \"http://stream.revma.ihrhls.com/zc9483\",\n    \"Oldies\": \"http://46.105.122.141:9676/;\",\n    \"Vinyl\": \"https://icecast.walmradio.com:8443/classic\"\n  },\n  \"lastplayed\": \"80s80s\"\n}\n```\n\nAfterwards you can add more streams by using `add \u003cstream\u003e \u003curl\u003e`. If a stream\nstops working because the url changed, you can use `update \u003cstream\u003e \u003curl\u003e` to \nupdate. To remove a stream just use `remove \u003cstream\u003e`, and it'll will remove the stream.\n \n### Example:\nLet's say you find a radio stream called WALM - Old Time Radio at https://icecast.walmradio.com:8443/otr.\nYou will add it like such:\n`./music_stream add OTR https://icecast.walmradio.com:8443/otr`.\nAnd now you can play the stream by typing `./music_stream.sh play OTR` into the command line.\n\nNOTE: The stream names can not contain spaces.\n\n### Other ways to use this script\nI'm calling this script with hotkeys.  By pressing a keycombo I can play and stop the stream\nand hop to the next or previous stream in the list. Then, I added these keycombos to a cheap mini keypad,\nand I use this to control my music at a push of a button.\n\n## Requirements\n\n[mpv](https://mpv.io/) - music player\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgssparks%2Fcli-music-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgssparks%2Fcli-music-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgssparks%2Fcli-music-stream/lists"}