add download button. fixes #23

This commit is contained in:
Thomas Amland
2021-03-14 13:47:42 +01:00
parent 4e71857e2a
commit 325f642d72
2 changed files with 17 additions and 0 deletions
+11
View File
@@ -428,6 +428,17 @@ export class API {
}
}
getDownloadUrl(id: any) {
const { server, username, salt, hash } = this.auth
return `${server}/rest/download` +
`?id=${id}` +
'&v=1.15.0' +
`&u=${username}` +
`&s=${salt}` +
`&t=${hash}` +
`&c=${this.clientName}`
}
private getCoverArtUrl(item: any) {
if (!item.coverArt) {
return undefined