diff --git a/main.py b/main.py index 9f445bc..ffdce7e 100644 --- a/main.py +++ b/main.py @@ -661,8 +661,15 @@ def live_stream_redirect(station: str, request: Request, db: Session = Depends(d if station == "radio357": config_url = db.query(Config).filter_by(key="r357_live_url").first() target_url = config_url.value if config_url else "https://stream.rcs.revma.com/ye5kghkgcm0uv" + + # Statyczne metadane nagłówkowe dla Mopidy (ponieważ FFmpeg gubi te dynamiczne wbudowane w strumień) + resp_headers = { + "icy-name": "Radio 357", + "icy-description": "RadioSync Proxy (AAC to MP3 Transcode)" + } + # Proxy + Transkodowanie AAC -> MP3 w locie! - return StreamingResponse(iter_stream_transcode(target_url), media_type="audio/mpeg") + return StreamingResponse(iter_stream_transcode(target_url), media_type="audio/mpeg", headers=resp_headers) elif station == "rns": config_url = db.query(Config).filter_by(key="rns_live_url").first()