add PUBLIC_HOST_URL config key

This commit is contained in:
vaaski
2024-05-02 12:56:52 +02:00
parent 637f456de3
commit e89da396cd
2 changed files with 2 additions and 1 deletions

View File

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