From 2bdd78edafb3a653177a67776daadb24edfef7fe Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 08 Apr 2021 20:17:51 +0000 Subject: [PATCH] Klasse Titel geandert --- www/ui/js/app.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/www/ui/js/app.js b/www/ui/js/app.js index a28d20b..5507333 100644 --- a/www/ui/js/app.js +++ b/www/ui/js/app.js @@ -176,9 +176,9 @@ var titelName = document.querySelector(".selected").textContent; var titel; if(self.mediaPfad.endsWith('/')) { - titel = new Titel(self.mediaPfad + titelName, self.ortPfad); + titel = new Titel(titelName, self.mediaPfad, self.ortPfad); } else { - titel = new Titel(self.mediaPfad + '/' + titelName, self.ortPfad); + titel = new Titel(titelName, self.mediaPfad + '/', self.ortPfad); } var plname = document.querySelector('#playlist').value; self.http_put('../api/alist/' + plname, JSON.stringify(titel), function(responseText) { @@ -707,7 +707,8 @@ this.name = n; } -function Titel(n, u) { +function Titel(n, p, u) { this.katalogUrl = u; + this.pfad = p; this.name = n; } \ No newline at end of file -- Gitblit v1.9.3