-
Notifications
You must be signed in to change notification settings - Fork 53
/
app.php
102 lines (85 loc) · 4.15 KB
/
app.php
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/**
* Copyright (c) 2017 Alashov Berkeli
* It is licensed under GNU GPL v. 2 or later. For full terms see the file LICENSE.
*/
use Aws\Credentials\CredentialProvider;
return [
'paths' => [
'cookie' => storage_path('app/cookies/%s.json'),
'mp3' => storage_path('app/public/mp3'),
'log' => storage_path('logs/datmusic.log'),
],
// hashing algorithms
'hash' => [
'cache' => 'crc32',
'id' => 'crc32',
'mp3' => 'md5',
],
'search' => [
// how many pages need to get for each page.
// ex: if value is 2, two pages will be requested for each query.
// flush the cache after changing this value
'pageMultiplier' => 2,
// moves song to end if matches
'sortRegex' => '/[ \[\],.:\)\(\-_](bass ?boost(ed)?|dub sound|remake|low bass|cover|(re)?mix|dj|bootleg|edit|aco?ustic|instrumental|karaoke|tribute|vs|rework|mash|rmx|(night|day|slow)core|remode|ringtone?|рингтон|РИНГТОН|Рингтон|звонок|минус)([ ,.:\[\]\)\(\-_].*)?$/i',
// replaces with empty string if matches
'badWordsRegex' => '/(https?:\/\/)?(vkontakte|vk)\.?(com|ru)?\/?(club|id)?/i',
],
'cache' => [
'duration' => 24 * 60, // in minutes
],
// account credentials, 0. phone number (without plus). 1. plain password
// environment variable ACCOUNTS can override this
'accounts' => [
['phone_number', 'password'],
],
'downloading' => [
'timeout' => [
//seconds
'connection' => 2, // connection timeout
'execution' => 60, // downloading timeout
],
],
'conversion' => [
//popular bitrates: economy, standard, good
'allowed' => [64, 128, 192],
'allowed_ffmpeg' => ['-q:a 9', '-q:a 5', '-q:a 2'],
'ffmpeg_path' => 'ffmpeg',
],
'aws' => [
'enabled' => false,
'config' => [
'version' => 'latest',
'region' => 'eu-central-1',
//http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/credentials.html#env-provider
'credentials' => CredentialProvider::env(),
],
'bucket' => 'datmusic',
'paths' => [
// will be formatted with mp3 file name
'mp3' => 'mp3/%s',
],
],
// vk has bug, they don't have mp3 urls in audio items. even their site doesn't work
// you might want to disable it until they fix it
'popularSearchEnabled' => false,
// 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', 'Oasis',
'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',
],
];