add PUBLIC_HOST_AUDIO_URL

This commit is contained in:
vaaski
2024-05-02 13:10:41 +02:00
parent 16b3319786
commit 3440d0adeb
4 changed files with 4 additions and 1 deletions

View File

@@ -235,7 +235,7 @@ export class AppComponent implements AfterViewInit {
buildDownloadLink(download: Download) {
let baseDir = this.downloads.configuration["PUBLIC_HOST_URL"] ?? 'download/';
if (download.quality == 'audio' || download.filename.endsWith('.mp3')) {
baseDir = 'audio_download/';
baseDir = this.downloads.configuration["PUBLIC_HOST_AUDIO_URL"] ?? 'audio_download/';
}
if (download.folder) {