const.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. SAVED_TRACKS_URL = 'https://api.spotify.com/v1/me/tracks'
  2. TRACKS_URL = 'https://api.spotify.com/v1/tracks'
  3. TRACK_STATS_URL = 'https://api.spotify.com/v1/audio-features/'
  4. TRACKNUMBER = 'tracknumber'
  5. DISCNUMBER = 'discnumber'
  6. YEAR = 'year'
  7. ALBUM = 'album'
  8. TRACKTITLE = 'tracktitle'
  9. ARTIST = 'artist'
  10. ARTISTS = 'artists'
  11. ALBUMARTIST = 'albumartist'
  12. GENRES = 'genres'
  13. GENRE = 'genre'
  14. ARTWORK = 'artwork'
  15. TRACKS = 'tracks'
  16. TRACK = 'track'
  17. ITEMS = 'items'
  18. NAME = 'name'
  19. HREF = 'href'
  20. ID = 'id'
  21. URL = 'url'
  22. RELEASE_DATE = 'release_date'
  23. IMAGES = 'images'
  24. LIMIT = 'limit'
  25. OFFSET = 'offset'
  26. AUTHORIZATION = 'Authorization'
  27. IS_PLAYABLE = 'is_playable'
  28. DURATION_MS = 'duration_ms'
  29. TRACK_NUMBER = 'track_number'
  30. DISC_NUMBER = 'disc_number'
  31. SHOW = 'show'
  32. ERROR = 'error'
  33. EXPLICIT = 'explicit'
  34. PLAYLIST = 'playlist'
  35. PLAYLISTS = 'playlists'
  36. OWNER = 'owner'
  37. DISPLAY_NAME = 'display_name'
  38. ALBUMS = 'albums'
  39. TYPE = 'type'
  40. PREMIUM = 'premium'
  41. USER_READ_EMAIL = 'user-read-email'
  42. PLAYLIST_READ_PRIVATE = 'playlist-read-private'
  43. USER_LIBRARY_READ = 'user-library-read'
  44. WINDOWS_SYSTEM = 'Windows'
  45. CODEC_MAP = {
  46. 'aac': 'aac',
  47. 'fdk_aac': 'libfdk_aac',
  48. 'm4a': 'aac',
  49. 'mp3': 'libmp3lame',
  50. 'ogg': 'copy',
  51. 'opus': 'libopus',
  52. 'vorbis': 'copy',
  53. }
  54. EXT_MAP = {
  55. 'aac': 'm4a',
  56. 'fdk_aac': 'm4a',
  57. 'm4a': 'm4a',
  58. 'mp3': 'mp3',
  59. 'ogg': 'ogg',
  60. 'opus': 'ogg',
  61. 'vorbis': 'ogg',
  62. }