Make the Roku guide full width and give weather its own audio
This commit is contained in:
@@ -226,7 +226,7 @@ def create_app(*, tunarr_url=None, transport=None, discover=True, id_file=None):
|
||||
data = await weather_provider.read()
|
||||
return {**data, "musicUrl": "/api/v1/weather/music.mp3" if weather_music.is_file() else None}
|
||||
|
||||
@app.get("/api/v1/weather/music.mp3")
|
||||
@app.api_route("/api/v1/weather/music.mp3", methods=["GET", "HEAD"])
|
||||
async def weather_audio():
|
||||
if not weather_music.is_file():
|
||||
raise HTTPException(404, "Weather music is not configured")
|
||||
|
||||
Reference in New Issue
Block a user