feat: Add STREAM environment variable so stream mode can be enabled on Heroku
See #178
This commit is contained in:
parent
298848a2f1
commit
fb90545d92
2 changed files with 5 additions and 1 deletions
4
app.json
4
app.json
|
@ -32,6 +32,10 @@
|
||||||
"PYTHON": {
|
"PYTHON": {
|
||||||
"description": "Path to python binary",
|
"description": "Path to python binary",
|
||||||
"value": "/app/.heroku/python/bin/python"
|
"value": "/app/.heroku/python/bin/python"
|
||||||
|
},
|
||||||
|
"STREAM": {
|
||||||
|
"description": "Enable stream mode",
|
||||||
|
"value": "false"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"website": "https://alltubedownload.net/"
|
"website": "https://alltubedownload.net/"
|
||||||
|
|
|
@ -144,7 +144,7 @@ class Config
|
||||||
*/
|
*/
|
||||||
private function getEnv()
|
private function getEnv()
|
||||||
{
|
{
|
||||||
foreach (['CONVERT', 'PYTHON', 'AUDIO_BITRATE'] as $var) {
|
foreach (['CONVERT', 'PYTHON', 'AUDIO_BITRATE', 'STREAM'] as $var) {
|
||||||
$env = getenv($var);
|
$env = getenv($var);
|
||||||
if ($env) {
|
if ($env) {
|
||||||
$prop = lcfirst(str_replace('_', '', ucwords(strtolower($var), '_')));
|
$prop = lcfirst(str_replace('_', '', ucwords(strtolower($var), '_')));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue