-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Config.php
50 lines (41 loc) · 1.01 KB
/
Config.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
<?php
namespace MichaelBelgium\YoutubeConverter;
class Config
{
//================ convert options ================
/**
* The folder where downloaded songs will be placed in
*
* Note: make sure the webserver has permissions to write in this folder
*/
const DOWNLOAD_FOLDER = "download/";
/**
* The maximum allowed video length to download (in seconds).
*
* Set to 0 to disable
*/
const DOWNLOAD_MAX_LENGTH = 0;
/**
* Enable logging
*
* Note: this also enables the page /logs with an overview of all songs that have been converted
*/
const LOG = false;
/**
* Set a proxy for yt-dlp or youtube-dl
*
* Note: set to null to disable
*/
const PROXY = null;
//================ search options ================
/**
* The maximum search results to show
*/
const MAX_RESULTS = 10;
/**
* Youtube api key
*
* Note: required for searching on youtube
*/
const API_KEY = "";
}