"""Store constants.""" APPLE_MUSIC_ID = 1 ACTIVE_STORE_NAMES = { 1: "Apple Music", 4: "Napster", 187: "Amazon Music", 213: "Beatport", 286: "Spotify", 348: "Deezer", 496: "Google Play", 708: "Pandora", 1405: "VKontakte", 1406: "Odnoklassniki", 1503: "LINE Japan", 1505: "SoundCloud", 1600: "AWA", 1601: "Kuwo", 1602: "Kugou", 1603: "QQ", } TIKTOK_STORE_ID = 1202 ACTIVE_TOP_MARKETS_STORE_NAMES = {286: "Spotify", 1405: "VKontakte"} ACTIVE_DOWNLOAD_STORE_NAMES = { 1: "Apple Music", 187: "Amazon Music", 496: "Google Play", 213: "Beatport", } 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", } ACTIVE_SOURCE_OF_STREAMS_STORE_NAMES = { 1: "Apple Music", 187: "Amazon Music", 286: "Spotify", 453: "YouTube", 1405: "VKontakte", 1505: "SoundCloud", } ACTIVE_VIDEO_STORE_NAMES = {453: "YouTube"} def _get_sources(source_name): return [{"id": key, "name": source_name[key]} for key in source_name] ALL_SOURCES = _get_sources({**ACTIVE_STORE_NAMES, **ACTIVE_VIDEO_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) ALL_VIDEO_SOURCES = _get_sources(ACTIVE_VIDEO_STORE_NAMES) VIDEO_STORE = "videos"