mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-27 02:13:17 +01:00
108 lines
1.4 KiB
Python
108 lines
1.4 KiB
Python
SAVED_TRACKS_URL = 'https://api.spotify.com/v1/me/tracks'
|
|
|
|
TRACKS_URL = 'https://api.spotify.com/v1/tracks'
|
|
|
|
TRACK_STATS_URL = 'https://api.spotify.com/v1/audio-features/'
|
|
|
|
TRACKNUMBER = 'tracknumber'
|
|
|
|
DISCNUMBER = 'discnumber'
|
|
|
|
YEAR = 'year'
|
|
|
|
ALBUM = 'album'
|
|
|
|
TRACKTITLE = 'tracktitle'
|
|
|
|
ARTIST = 'artist'
|
|
|
|
ARTISTS = 'artists'
|
|
|
|
ALBUMARTIST = 'albumartist'
|
|
|
|
GENRES = 'genres'
|
|
|
|
GENRE = 'genre'
|
|
|
|
ARTWORK = 'artwork'
|
|
|
|
TRACKS = 'tracks'
|
|
|
|
TRACK = 'track'
|
|
|
|
ITEMS = 'items'
|
|
|
|
NAME = 'name'
|
|
|
|
HREF = 'href'
|
|
|
|
ID = 'id'
|
|
|
|
URL = 'url'
|
|
|
|
RELEASE_DATE = 'release_date'
|
|
|
|
IMAGES = 'images'
|
|
|
|
LIMIT = 'limit'
|
|
|
|
OFFSET = 'offset'
|
|
|
|
AUTHORIZATION = 'Authorization'
|
|
|
|
IS_PLAYABLE = 'is_playable'
|
|
|
|
DURATION_MS = 'duration_ms'
|
|
|
|
TRACK_NUMBER = 'track_number'
|
|
|
|
DISC_NUMBER = 'disc_number'
|
|
|
|
SHOW = 'show'
|
|
|
|
ERROR = 'error'
|
|
|
|
EXPLICIT = 'explicit'
|
|
|
|
PLAYLIST = 'playlist'
|
|
|
|
PLAYLISTS = 'playlists'
|
|
|
|
OWNER = 'owner'
|
|
|
|
DISPLAY_NAME = 'display_name'
|
|
|
|
ALBUMS = 'albums'
|
|
|
|
TYPE = 'type'
|
|
|
|
PREMIUM = 'premium'
|
|
|
|
USER_READ_EMAIL = 'user-read-email'
|
|
|
|
PLAYLIST_READ_PRIVATE = 'playlist-read-private'
|
|
|
|
USER_LIBRARY_READ = 'user-library-read'
|
|
|
|
WINDOWS_SYSTEM = 'Windows'
|
|
|
|
CODEC_MAP = {
|
|
'aac': 'aac',
|
|
'fdk_aac': 'libfdk_aac',
|
|
'm4a': 'aac',
|
|
'mp3': 'libmp3lame',
|
|
'ogg': 'copy',
|
|
'opus': 'libopus',
|
|
'vorbis': 'copy',
|
|
}
|
|
|
|
EXT_MAP = {
|
|
'aac': 'm4a',
|
|
'fdk_aac': 'm4a',
|
|
'm4a': 'm4a',
|
|
'mp3': 'mp3',
|
|
'ogg': 'ogg',
|
|
'opus': 'ogg',
|
|
'vorbis': 'ogg',
|
|
}
|