fix: use .mp3 extension fake for Mopidy to force skipping AAC unwrapper
This commit is contained in:
@@ -628,8 +628,9 @@ def live_stream_redirect(station: str, db: Session = Depends(db_session)):
|
|||||||
if station == "radio357":
|
if station == "radio357":
|
||||||
config_url = db.query(Config).filter_by(key="r357_live_url").first()
|
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"
|
target_url = config_url.value if config_url else "https://stream.rcs.revma.com/ye5kghkgcm0uv"
|
||||||
|
# Oszukujemy Mopidy rozszerzeniem .mp3, ponieważ .aac nie figuruje na jego whiteliscie w starszych wersjach
|
||||||
if "#" not in target_url:
|
if "#" not in target_url:
|
||||||
target_url += "#.aac"
|
target_url += "#.mp3"
|
||||||
|
|
||||||
if is_m3u:
|
if is_m3u:
|
||||||
m3u_content = f"#EXTM3U\n#EXTINF:-1,Radio 357\n{target_url}\n"
|
m3u_content = f"#EXTM3U\n#EXTINF:-1,Radio 357\n{target_url}\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user