"""Store constants.""" APPLE_MUSIC_ID = 1 ACTIVE_STORE_NAMES = { 1: "Apple Music", 4: "Napster", 187: "Amazon Music", 286: "Spotify", 348: "Deezer", 496: "Google Play", 708: "Pandora", 1405: "VKontakte", 1406: "Odnoklassniki", 1503: "LINE Japan", 1505: "SoundCloud", } ACTIVE_TOP_MARKETS_STORE_NAMES = {286: "Spotify", 1405: "VKontakte"} ACTIVE_DOWNLOAD_STORE_NAMES = { 1: "Apple Music", 187: "Amazon Music", 496: "Google Play", } ACTIVE_PLAYLIST_STORE_NAMES = { 1: "Apple Music", 187: "Amazon Music", 286: "Spotify", 1405: "VKontakte", 1505: "SoundCloud", } ACTIVE_DEMOGRAPHIC_STORE_NAMES = { 1: "Apple Music", 286: "Spotify", 1405: "VKontakte", 1503: "LINE Japan", 1505: "SoundCloud", } ACTIVE_SOURCE_OF_STREAMS_STORE_NAMES = { 1: "Apple Music", 187: "Amazon Music", 286: "Spotify", 1405: "VKontakte", 1505: "SoundCloud", } def _get_sources(source_name): return [{"id": key, "name": source_name[key]} for key in source_name] ALL_SOURCES = _get_sources(ACTIVE_STORE_NAMES) ALL_TOP_MARKETS_SOURCES = _get_sources(ACTIVE_TOP_MARKETS_STORE_NAMES) ALL_DOWNLOAD_SOURCES = _get_sources(ACTIVE_DOWNLOAD_STORE_NAMES) ALL_PLAYLIST_SOURCES = _get_sources(ACTIVE_PLAYLIST_STORE_NAMES) ALL_DEMOGRAPHIC_SOURCES = _get_sources(ACTIVE_DEMOGRAPHIC_STORE_NAMES) ALL_SOURCE_OF_STREAMS_SOURCES = _get_sources(ACTIVE_SOURCE_OF_STREAMS_STORE_NAMES)