/
/
/
1"""Constants for the MusicMe provider."""
2
3import json
4import re
5
6from music_assistant_models.enums import ProviderFeature
7
8SUPPORTED_FEATURES = {
9 ProviderFeature.LIBRARY_PLAYLISTS,
10 ProviderFeature.SEARCH,
11 ProviderFeature.ARTIST_ALBUMS,
12 ProviderFeature.ARTIST_TOPTRACKS,
13 ProviderFeature.BROWSE,
14 ProviderFeature.RECOMMENDATIONS,
15}
16
17DATASERVICE_BASE = "https://dataservice.musicme.com/dataservice/v3"
18STREAM_BASE = "https://stream.hosting-media.net/musicme"
19WEB_BASE = "https://www.musicme.com"
20LOGIN_URL = "https://www.musicme.com/mon-musicme/connexion/"
21PARTNER_ID = "22876"
22CLIENT_JSON = json.dumps(
23 {"type": "desktop-web", "context": "www.musicme.com", "app": "mmplayer"},
24 separators=(",", ":"),
25)
26VALID_ID_RE = re.compile(r"^[\w.-]+$")
27