| | |
| | | */ |
| | | public class Titel { |
| | | private String katalogUrl; |
| | | private String pfad; |
| | | private String name; |
| | | |
| | | public String getKatalogUrl() { |
| | |
| | | public void setName(String titel) { |
| | | this.name = titel; |
| | | } |
| | | |
| | | public String getPfad() { |
| | | return pfad; |
| | | } |
| | | |
| | | public void setPfad(String pfad) { |
| | | this.pfad = pfad; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | <!-- |
| | | {"Abspielliste": {"name":"spontan","titel":[{"katalogUrl":"/media/mc","name":"/A/ACDC/Highway-To-Hell02-Girls-got-rhythm.mp3"},{"katalogUrl":"/media/mc","name":"/A/ACDC/Highway-To-Hell07-Get-it-hot.mp3"},{"katalogUrl":"/media/mc","name":"/A/Aerosmith/Big-Ones12-Crazy.mp3"}]}} |
| | | --> |
| | | |
| | | {{#Abspielliste}} |
| | | <div class='entity-formular'> |
| | | <div class='entity-liste-kopf'> |
| | |
| | | </div> |
| | | <ul class='entity-liste'> |
| | | {{#titel}} |
| | | <li class='entity-eintrag'>{{katalogUrl}}{{name}}</li> |
| | | <li class='entity-eintrag'>{{name}}</li> |
| | | {{/titel}} |
| | | </ul> |
| | | </div> |
| | |
| | | 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) { |
| | |
| | | this.name = n; |
| | | } |
| | | |
| | | function Titel(n, u) { |
| | | function Titel(n, p, u) { |
| | | this.katalogUrl = u; |
| | | this.pfad = p; |
| | | this.name = n; |
| | | } |