Update devcontainer.json and MultiDownloaderClient.php
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolas COMPAIN 2024-01-12 09:52:27 +00:00
parent 941202e925
commit de205f9870
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
"image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3", "image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3",
"containerEnv": { "containerEnv": {
"MULTI_DOWNLOADER_ACCESS_KEY": "YOUR_API_KEY", "MULTI_DOWNLOADER_ACCESS_KEY": "YOUR_API_KEY",
"MULTI_DOWNLOADER_SECRET_KEY": "YOUR_API_SECRET_KEY", "MULTI_DOWNLOADER_SECRET_KEY": "YOUR_API_SECRET_KEY"
"MULTI_DOWNLOADER_URL": "https://multi-dl.kub.nwb.fr" // "MULTI_DOWNLOADER_URL": "https://multi-dl.kub.nwb.fr"
}, },
"customizations": { "customizations": {
"vscode": { "vscode": {

View File

@ -34,7 +34,7 @@ class MultiDownloaderClient
} }
$this->apiSecret = $apiSecret; $this->apiSecret = $apiSecret;
$this->url = $options['url'] ?? getenv('MULTI_DOWNLOADER_URL') ?? 'https://multi-dl.kub.nwb.fr'; $this->url = $options['url'] ?? getenv('MULTI_DOWNLOADER_URL') ?: 'https://multi-dl.kub.nwb.fr';
} }
public function setFiles(array $files) public function setFiles(array $files)