/
/
/
1"""Constants for the Spotify provider."""
2
3from __future__ import annotations
4
5# Configuration Keys
6CONF_CLIENT_ID = "client_id"
7CONF_REFRESH_TOKEN_DEPRECATED = "refresh_token" # Legacy key for migration, will be removed
8CONF_REFRESH_TOKEN_GLOBAL = "refresh_token_global" # Token authenticated with MA's client ID
9CONF_REFRESH_TOKEN_DEV = "refresh_token_dev" # Token authenticated with user's custom client ID
10CONF_SYNC_PODCAST_PROGRESS = "sync_podcast_progress"
11CONF_SYNC_AUDIOBOOK_PROGRESS = "sync_audiobook_progress"
12
13# OAuth Settings
14SCOPE = [
15 "playlist-read-private",
16 "playlist-read-collaborative",
17 "playlist-modify-public",
18 "playlist-modify-private",
19 "user-follow-modify",
20 "user-follow-read",
21 "user-library-read",
22 "user-library-modify",
23 "user-read-private",
24 "user-read-email",
25 "user-top-read",
26 "app-remote-control",
27 "streaming",
28 "user-read-playback-state",
29 "user-modify-playback-state",
30 "user-read-currently-playing",
31 "user-read-playback-position",
32 "user-read-recently-played",
33]
34
35# Other Constants
36LIKED_SONGS_FAKE_PLAYLIST_ID_PREFIX = "liked_songs"
37