-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
20 lines (19 loc) · 870 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
HEADERS = {
'authority': 'www.beatport.com',
'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"',
'sec-ch-ua-mobile': '?0',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'accept': 'text/html, */*; q=0.01',
'x-requested-with': 'XMLHttpRequest',
'x-pjax': 'true',
'x-pjax-container': '#pjax-inner-wrapper',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://www.beatport.com/track/ommp/663810',
'accept-language': 'de-DE,de;q=0.9',
}
# mp4 can also be an audio file :D
AUDIO_FILE_TYPES = ["m4a", "flac", "mp3", "mp4", "wav", "wma", "aac"]