/
/
/
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 "api_url": "https://api.radioparadise.com/api/now_playing",
20 "station_icon": "radioparadise-logo-main.png",
21 },
22 "1": {
23 "name": "Radio Paradise - Mellow Mix",
24 "description": "A mellower selection from the RP music library",
25 "stream_url": "https://stream.radioparadise.com/mellow-flac",
26 "content_type": ContentType.FLAC,
27 "api_url": "https://api.radioparadise.com/api/now_playing?chan=1",
28 "station_icon": "radioparadise-logo-mellow.png",
29 },
30 "2": {
31 "name": "Radio Paradise - Rock Mix",
32 "description": "Heavier selections from the RP music library",
33 "stream_url": "https://stream.radioparadise.com/rock-flac",
34 "content_type": ContentType.FLAC,
35 "api_url": "https://api.radioparadise.com/api/now_playing?chan=2",
36 "station_icon": "radioparadise-logo-rock.png",
37 },
38 "3": {
39 "name": "Radio Paradise - Global",
40 "description": "Global music and experimental selections",
41 "stream_url": "https://stream.radioparadise.com/global-flac",
42 "content_type": ContentType.FLAC,
43 "api_url": "https://api.radioparadise.com/api/now_playing?chan=3",
44 "station_icon": "radioparadise-logo-global.png",
45 },
46 "4": {
47 "name": "Radio Paradise - Beyond",
48 "description": "Exploring the frontiers of improvisational music",
49 "stream_url": "https://stream.radioparadise.com/beyond-flac",
50 "content_type": ContentType.FLAC,
51 "api_url": "https://api.radioparadise.com/api/now_playing?chan=4",
52 "station_icon": "radioparadise-logo-beyond.png",
53 },
54 "5": {
55 "name": "Radio Paradise - Serenity",
56 "description": "Don't panic, and don't forget your towel",
57 "stream_url": "https://stream.radioparadise.com/serenity",
58 "content_type": ContentType.AAC,
59 "api_url": "https://api.radioparadise.com/api/now_playing?chan=5",
60 "station_icon": "radioparadise-logo-serenity.png",
61 },
62}
63