"""Spotify constants.""" # Length of identifiers SPOTIFY_TRACK_ID_LEN = 22 SPOTIFY_PLAYLIST_ID_LEN = 22 SPOTIFY_IMAGE_SIZES = (64, 300, 640) SPOTIFY_PLAYLIST_IMAGE_URL_MASK = "https://dhfsk7jl2g0km.cloudfront.net/playlist-{playlist_id}.jpeg" SPOTIFY_USER_IMAGE_PREFIX = "https://dhfsk7jl2g0km.cloudfront.net/" SPOTIFY_URL_PREFIX = "https://open.spotify.com/track/" SPOTIFY_URI_PREFIX = "spotify:track:" SPOTIFY_PLAYLIST_URI_PREFIX = "spotify:playlist:" SPOTIFY_USER_URI_PREFIX = "spotify:user:" SPOTIFY_GLOBAL_MARKET = "Global" # AP-1717: for global it is necessary to show top playlists for several additional markets SPOTIFY_GLOBAL_MARKET_CUSTOM_MARKETS = ( # Top Playlists for Top 25 Global Markets taken from Market Overview # United States, Mexico, Germany, Brazil, United Kingdom, Australia, Canada, Spain, # Italy, France, Argentina, Netherlands, Chile, Sweden, Philippines, Indonesia, Norway, # Denmark, Peru, Turkey, Poland, India, Colombia, Switzerland, New Zealand "us", "mx", "de", "br", "gb", "au", "ca", "es", "it", "fr", "ar", "nl", "cl", "se", "ph", "id", "no", "dk", "pe", "tr", "pl", "in", "co", "ch", "nz", # Top Playlists for the Malaysia market. "my", # global itself SPOTIFY_GLOBAL_MARKET, )