implement scrobbling. fixes #3

This commit is contained in:
Thomas Amland
2020-11-14 13:04:58 +01:00
parent 4211966433
commit a896d01769
3 changed files with 25 additions and 5 deletions
+4
View File
@@ -312,6 +312,10 @@ export class API {
return this.get('rest/startScan')
}
async scrobble(id: string): Promise<void> {
return this.get('rest/scrobble', { id })
}
private normalizeRadioStation(item: any): Track & RadioStation {
return {
id: `radio-${item.id}`,