"""Constants for musical stores which we parse information from.""" # Store IDs from the internal DB. # Source: art_relations/customer_master_master.customer_master_master_id STORE_ID_ITUNES = 1 STORE_ID_SPOTIFY = 286 STORE_ID_DEEZER = 348 STORE_ID_AMAZON = 187 # List all valid store IDs here. STORE_IDS = ( STORE_ID_ITUNES, STORE_ID_SPOTIFY, STORE_ID_DEEZER, STORE_ID_AMAZON, ) ITUNES_STOREFRONT_URL = 'https://itunes.apple.com/album/id/{store_internal_id}' SPOTIFY_STOREFRONT_URL = 'https://open.spotify.com/album/{store_internal_id}' DEEZER_STOREFRONT_URL = 'https://www.deezer.com/album/{store_internal_id}' AMAZON_STOREFRONT_URL = 'https://www.amazon.com/dp/{store_internal_id}' STOREFRONT_URLS = { STORE_ID_ITUNES: ITUNES_STOREFRONT_URL, STORE_ID_SPOTIFY: SPOTIFY_STOREFRONT_URL, STORE_ID_DEEZER: DEEZER_STOREFRONT_URL, STORE_ID_AMAZON: AMAZON_STOREFRONT_URL, } DEEZER_RETRIES_NUM = 3 DEEZER_SLEEP_SECONDS = 5