-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.py
58 lines (50 loc) · 2.76 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
import logging
LOG_LEVEL = getattr(logging, os.environ.get('LOG_LEVEL', 'INFO').upper())
PATHS = {
'mp3': '/cache/audio_data'
}
HASH = {
'cache': 'crc32',
'id': 'crc32',
'mp3': 'md5'
}
CACHE_SETTINGS = {
'cache.regions': 'search_pages, audio_info',
'cache.search_pages.type': 'memory',
'cache.search_pages.expire': 24 * 60 * 60, # in seconds
'cache.audio_info.type': 'dbm',
'cache.audio_info.data_dir': '/cache/audio_info',
'cache.audio_info.expire': None # never
}
SEARCH_SETTINGS = {
'access_token': os.environ['ACCESS_TOKEN'],
'user_agent': 'KateMobileAndroid/50.1 lite-438 (Android 7.0; SDK 24; arm64-v8a; HUAWEI HUAWEI CAN-L11; ru)',
'page_size': 50,
'sort_regex': r'(?i)[ \[\],.:\)\(\-_](bass ?boost(ed)?|dub sound|remake|low bass'
r'|cover|(re)?mix|dj|bootleg|edit|aco?ustic|instrumental|karaoke'
r'|tribute|vs|rework|mash|rmx|(night|day|slow)core|remode|ringtone?'
r'|рингтон|РИНГТОН|Рингтон|звонок|минус)([ ,.:\[\]\)\(\-_].*)?$',
'bad_words_regex': '(?i)(https?:\/\/)?(vkontakte|vk)\.?(com|ru)?\/?(club|id)?',
}
DOWNLOAD_SETTINGS = {
'timeout': 60
}
# Random artist search
ARTISTS = [
'2 Cellos', 'Agnes Obel', 'Aloe Black', 'Andrew Belle', 'Angus Stone', 'Aquilo', 'Arctic Monkeys',
'Avicii', 'Balmorhea', 'Barcelona', 'Bastille', 'Ben Howard', 'Benj Heard', 'Birdy', 'Broods',
'Calvin Harris', 'Charlotte OC', 'City of The Sun', 'Civil Twilight', 'Clint Mansel', 'Coldplay',
'Daft Punk', 'Damien Rice', 'Daniela Andrade', 'Daughter', "David O'Dowda", 'Dawn Golden', 'Dirk Maassen',
'Ed Sheeran', 'Eminem', 'Fabrizio Paterlini', 'Fink', 'Fleurie', 'Florence and The Machine', 'Gem club',
'Glass Animals', 'Greg Haines', 'Greg Maroney', 'Groen Land', 'Halsey', 'Hans Zimmer', 'Hozier',
'Imagine Dragons', 'Ingrid Michaelson', 'Jamie XX', 'Jarryd James', 'Jasmin Thompson', 'Jaymes Young',
'Jessie J', 'Josef Salvat', 'Julia Kent', 'Kai Engel', 'Keaton Henson', 'Kendra Logozar', 'Kina Grannis',
'Kodaline', 'Kygo', 'Kyle Landry', 'Lana Del Rey', 'Lera Lynn', 'Lights & Motion', 'Linus Young', 'Lo-Fang',
'Lorde', 'Ludovico Einaudi', 'M83', 'MONO', 'MS MR', 'Macklemore', 'Mammals', 'Maroon 5', 'Martin Garrix',
'Mattia Cupelli', 'Max Richter', 'Message To Bears', 'Mogwai', 'Mumford & Sons', 'Nils Frahm', 'ODESZA',
'Of Monsters and Men', 'Oh Wonder', 'Philip Glass', 'Phoebe Ryan', 'Rachel Grimes', 'Radiohead', 'Ryan Keen',
'Sam Smith', 'Seinabo Sey', 'Sia', 'Takahiro Kido', 'The Irrepressibles', 'The Neighbourhood', 'The xx',
'VLNY', 'Wye Oak', 'X ambassadors', 'Yann Tiersen', 'Yiruma', 'Young Summer', 'Zack Hemsey', 'Zinovia',
'deadmau5', 'pg.lost', 'Ólafur Arnalds', 'Oasis',
]