playlist
This commit is contained in:
26
src/spotify_to_tidal/type/config.py
Normal file
26
src/spotify_to_tidal/type/config.py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
from typing import TypedDict, Literal, List, Optional
|
||||||
|
|
||||||
|
|
||||||
|
class SpotifyConfig(TypedDict):
|
||||||
|
client_id: str
|
||||||
|
client_secret: str
|
||||||
|
username: str
|
||||||
|
redirect_url: str
|
||||||
|
|
||||||
|
|
||||||
|
class TidalConfig(TypedDict):
|
||||||
|
access_token: str
|
||||||
|
refresh_token: str
|
||||||
|
session_id: str
|
||||||
|
token_type: Literal["Bearer"]
|
||||||
|
|
||||||
|
|
||||||
|
class PlaylistConfig(TypedDict):
|
||||||
|
spotify_id: str
|
||||||
|
tidal_id: str
|
||||||
|
|
||||||
|
|
||||||
|
class SyncConfig(TypedDict):
|
||||||
|
spotify: SpotifyConfig
|
||||||
|
sync_playlists: Optional[List[PlaylistConfig]]
|
||||||
|
excluded_playlists: Optional[List[str]]
|
||||||
Reference in New Issue
Block a user