This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
/
default.php
172 lines (161 loc) · 6.14 KB
/
default.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/**
* DO NOT EDIT THIS FILE!!!
*
* Instead copy this file to `config/custom.php` and make your changes there!
*/
return [
/*
* Debug mode
* WARNING: This outputs debug information while processing.
* This could leak sensitive server data to the browser.
* Enable only if needed.
*
* true => debug mode on
* false => debug mode off
*/
'debug' => false,
/*
* Enable the YouTube signature decipher function
* WARNING: This downloads javascript code from a 3rd party server and interprets it!
* This MAY harm your server, if the 3rd party server delivers malicious code!
*
* false => decipher is disabled
* true => decipher is enabled
*/
'enable_youtube_decipher_signature' => false,
/*
* Thumbnail Image Configuration
*
* 0 => don't show thumbnail image
* 1 => show thumbnail image directly from YouTube
* 2 => show thumbnail image by proxy from this server
*/
'ThumbnailImageMode' => 2,
/*
* Video Download Link Configuration
* 'direct' => show only direct download link
* 'proxy' => show only by proxy download link, this will also force the get video command to download through the proxy (ex: getvideo.mp4?videoid=GkvvH8pBoTg&format=ipad)
* 'both' => show both direct and by proxy download links
*/
'VideoLinkMode' => 'both',
/*
* Caching mode. If normal proxy mode won't work, this makes a copy of the file on the
* webserver and downloads it from there
* false => proxying works by 'streaming' the file through the server
* true => proxying generates a temporary copy of the file on the server
*/
'localCache' => false,
/*
* false => don't erase the copy of the file on cache folder
* true => erase the copy of the file on cache folder
*
*/
'EraseCacheFile' => false,
/*
* MP3 Download Link Configuration
*
* Basic method for converting Youtube Video or Audio to .mp3
* require server processing for running ffmpeg and aria2, also you may need to edit php "max_execution_time"
*
* FFMPEG for converting video or audio to .mp3
* Install: https://ffmpeg.org/download.html
*
* ARIA2 command line downloader with multi connection, using single connection (ffmpeg or curl) server download from youtube limited to 56KBps
* install: https://github.com/aria2/aria2/releases
*
*/
'MP3Enable' => false, // enable or disable media conversion and download to mp3
'MP3ConvertVideo' => false, // 'false' download adaptive audio only to save bandwidth.
// 'true' failover to video download if adaptive audio format not available
'MP3Quality' => '128k', // 'number(k)' (64k, 80k, 96k, 112k, 128k, 160k, 192k) or 'high': bitrate quality of converted mp3
// set to 'high' to get and set highest quality
// info: highest Youtube audio bitrate is 160k, higher than that is maybe useless
'MP3TempDir' => realpath(__DIR__ . '/../cache/'), // temporary download location for media
'ffmpegPath' => 'C:\Program Files (x86)\ffmpeg\ffmpeg.exe', // ffmpeg location path (for Linux users set this to "ffmpeg" and nothing else)
'aria2Path' => 'C:\cygwin\bin\aria2c.exe', // aria2 location path, @deprecated since 0.6, to be removed in 0.7
/*
* show links for install browser extensions?
*
* true or false
*/
'showBrowserExtensions' => true,
/*
* Multiple IPs
*
* You can enable this option if you are having problems with youtube IP limit / IP ban.
* This option will work only if the IP you add are available for the server.
* That means you have to buy some additionnal public IPs and assign these new static IPs to the server.
* This should work only if you have a dedicated server...
*
*
* Example of adding additional IPs to Ubuntu server 14.04 LTS
* !!!! Be very careful, you may block yourself !!!!
* !!!! If you are connecting to your server remotly by ssh. You would do this only if you know what you do !!!!
* !!!! This is only an example with a specific dedicated server (ovh.net) !!!!
*
* For this example, the main IP on the server is 123.456.789.001
* We want to add additionnal IPs 789.456.123.001 and 789.456.123.002
*
* Edit /etc/network/interfaces and put something like this:
*
* # The loopback network interface
* auto lo
* iface lo inet loopback
*
* # The Main server IP:
* auto eth0
* iface eth0 inet static
* address 123.456.789.001
* netmask 255.255.255.0
* network 123.456.789.0
* broadcast 123.456.789.255
* gateway 123.456.789.254
*
* # Additionnal IP: 789.456.123.001
* auto eth0:0
* iface eth0:0 inet static
* address 789.456.123.001
* netmask 255.255.255.255
* broadcast 789.456.123.001
* gateway 123.456.789.254
*
* # Additionnal IP: 789.456.123.002
* auto eth0:1
* iface eth0:0 inet static
* address 789.456.123.002
* netmask 255.255.255.255
* broadcast 789.456.123.002
* gateway 123.456.789.254
*
* # Additionnal IP xxx.xxx.xxx.xxx
* auto eth0:2
* iface eth0:2 inet static
* (...)
*
* and so on for each IP you want to add....
*
*
* Reboot your server
* If you are having trouble and cannot connect anymore over ssh to your server,
* that means your new network configuration has errors...
* So be very careful before applying your configuration.
* Try it first on a local dev server before messing up with your pro server.
*
*
*/
'multipleIPs' => false, // enable multiple IPs support to bypass Youtube IP limit? true or false
'IPs' => [
//'xxx.xxx.xxx.xxx',
//'xxx.xxx.xxx.xxx',
// add as many ips as you want (they must be available in the server conf (ex: /etc/network/interfaces fro ubuntu/debian)
],
/*
* Set your default timezone
*
* e.g. Asia/Tehran or America/New_York
*
* more examples: http://php.net/manual/en/timezones.php
*/
'default_timezone' => 'UTC',
];