add scan button

This commit is contained in:
Thomas Amland
2020-10-12 19:06:36 +02:00
parent cab0adb392
commit 8621d06fbc
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -308,6 +308,10 @@ export class API {
return this.get('rest/deleteInternetRadioStation', { id })
}
async scan(): Promise<void> {
return this.get('rest/startScan')
}
private normalizeRadioStation(item: any): Track & RadioStation {
return {
id: `radio-${item.id}`,