From de205f9870b10bc458f957ae4cd2ee40ad5e44d7 Mon Sep 17 00:00:00 2001 From: Nicolas COMPAIN Date: Fri, 12 Jan 2024 09:52:27 +0000 Subject: [PATCH] Update devcontainer.json and MultiDownloaderClient.php --- .devcontainer/devcontainer.json | 4 ++-- src/MultiDownloaderClient.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 57c59b0..becf14b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,8 +3,8 @@ "image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3", "containerEnv": { "MULTI_DOWNLOADER_ACCESS_KEY": "YOUR_API_KEY", - "MULTI_DOWNLOADER_SECRET_KEY": "YOUR_API_SECRET_KEY", - "MULTI_DOWNLOADER_URL": "https://multi-dl.kub.nwb.fr" + "MULTI_DOWNLOADER_SECRET_KEY": "YOUR_API_SECRET_KEY" + // "MULTI_DOWNLOADER_URL": "https://multi-dl.kub.nwb.fr" }, "customizations": { "vscode": { diff --git a/src/MultiDownloaderClient.php b/src/MultiDownloaderClient.php index a21416a..8e4960f 100644 --- a/src/MultiDownloaderClient.php +++ b/src/MultiDownloaderClient.php @@ -34,7 +34,7 @@ class MultiDownloaderClient } $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)