{"id":16858977,"url":"https://github.com/ross/sonos-youtube","last_synced_at":"2025-11-10T09:30:24.215Z","repository":{"id":204987397,"uuid":"713129624","full_name":"ross/sonos-youtube","owner":"ross","description":"Trivial HTTP server to allow Sonos to play YouTube live streams","archived":false,"fork":false,"pushed_at":"2024-08-21T02:39:40.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T06:30:08.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ross.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-01T22:36:32.000Z","updated_at":"2024-08-21T02:39:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ae1a8f1-bcb2-42fd-bec6-bf9e1bf635d5","html_url":"https://github.com/ross/sonos-youtube","commit_stats":null,"previous_names":["ross/sonos-youtube"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross%2Fsonos-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross%2Fsonos-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross%2Fsonos-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross%2Fsonos-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ross","download_url":"https://codeload.github.com/ross/sonos-youtube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239580652,"owners_count":19662796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-13T14:15:47.484Z","updated_at":"2025-11-10T09:30:24.047Z","avatar_url":"https://github.com/ross.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sonos YouTube\n\nA trivial HTTP server to allow Sonos to play YouTube live streams.\n\nNote: it does not currently work with non-streaming/regular videos, though it\nmay in the future.\n\n### Running It\n\nWorks well running on devices like a NAS or even Raspberry PI\n\n#### As a docker container\n\nRecommended\n\n```console\n$ sudo ./script/update-docker\n...\n```\n\n#### Stand-alone\n\nIf your setup dictates\n\n```console\n$ ./script/bootstram\n$ ./script/run\n```\n\n### Using it\n\nIn the Sonos apps:\n\n1. \"Browse\"\n1. \"TuneIn\"\n1. \"My Radio Stations\"\n1. \"...\"\n1. \"Add New Radio Station\"\n    1. \"Streaming URL\"\n        - Grab the ID portion of the URL you'd like to stream, in the case of `https://www.youtube.com/watch?v=jfKfPfyJRdk` that would be `jfKfPfyJRdk`\n        - `http://\u003cfqdn-or-ip-of-host-running-the-server\u003e:9182/\u003cid-from-above\u003e`, e.g. `http://my-nas.lan:9182/jfKfPfyJRdk`\n    1. \"Station Name\"\n        - Whatever you would like to call it, probably just a copy-n-paste of the stream's title\n    1. \"OK\"\n\nYou should now be able to play the live stream on your Sonos devices. \n\n### How it works\n\nOne of the ways Youtube serves their videos an HLS Manifest, a `.m3u8` that happens to be supported by Sonos. However these URLs change over time so you can't just stick one into the \"Streaming URL\" field of a Sonos radio station. This simple server fetches the current data for the video and thend does a 302 redirect to the current URL. That's it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross%2Fsonos-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fross%2Fsonos-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross%2Fsonos-youtube/lists"}