/
/
/
1"""Constants for Radio Paradise provider."""
2
3from typing import Any
4
5from music_assistant_models.enums import ContentType
6
7# Base URL for station icons
8STATION_ICONS_BASE_URL = (
9 "https://raw.githubusercontent.com/music-assistant/music-assistant.io/main/docs/assets/icons"
10)
11
12# Radio Paradise channel configurations with hardcoded channels
13RADIO_PARADISE_CHANNELS: dict[str, dict[str, Any]] = {
14 "0": {
15 "name": "Radio Paradise - Main Mix",
16 "description": "Eclectic mix of music - hand-picked by real humans",
17 "stream_url": "https://stream.radioparadise.com/flac",
18 "content_type": ContentType.FLAC,
19 "station_icon": "radioparadise-logo-main.png",
20 },
21 "1": {
22 "name": "Radio Paradise - Mellow Mix",
23 "description": "A mellower selection from the RP music library",
24 "stream_url": "https://stream.radioparadise.com/mellow-flac",
25 "content_type": ContentType.FLAC,
26 "station_icon": "radioparadise-logo-mellow.png",
27 },
28 "2": {
29 "name": "Radio Paradise - Rock Mix",
30 "description": "Heavier selections from the RP music library",
31 "stream_url": "https://stream.radioparadise.com/rock-flac",
32 "content_type": ContentType.FLAC,
33 "station_icon": "radioparadise-logo-rock.png",
34 },
35 "3": {
36 "name": "Radio Paradise - Global",
37 "description": "Global music and experimental selections",
38 "stream_url": "https://stream.radioparadise.com/global-flac",
39 "content_type": ContentType.FLAC,
40 "station_icon": "radioparadise-logo-global.png",
41 },
42 "4": {
43 "name": "Radio Paradise - Beyond",
44 "description": "Exploring the frontiers of improvisational music",
45 "stream_url": "https://stream.radioparadise.com/beyond-flac",
46 "content_type": ContentType.FLAC,
47 "station_icon": "radioparadise-logo-beyond.png",
48 },
49 "5": {
50 "name": "Radio Paradise - Serenity",
51 "description": "Don't panic, and don't forget your towel",
52 "stream_url": "https://stream.radioparadise.com/serenity",
53 "content_type": ContentType.AAC,
54 "station_icon": "radioparadise-logo-serenity.png",
55 },
56}
57
58# API base URLs
59API_BASE_URL = "https://api.radioparadise.com/api"
60PLAY_API_URL = f"{API_BASE_URL}/play?bitrate=4&info=true&chan="
61NOWPLAYING_API_URL = f"{API_BASE_URL}/now_playing?chan="
62