Merge pull request #42 from spotify2tidal/bug/missing_file
Add missing config file
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from .config import SpotifyConfig, TidalConfig, PlaylistConfig, SyncConfig
|
||||
from .playlist import TidalPlaylist
|
||||
from .spotify import SpotifyTrack
|
||||
|
||||
from spotipy import Spotify
|
||||
|
||||
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