mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
basic navidrome implementation
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { SonosDevice } from "@svrooij/sonos/lib";
|
||||
import { ArtistWithAlbums } from "in_memory_music_service";
|
||||
import { v4 as uuid } from "uuid";
|
||||
import { Credentials } from "../src/smapi";
|
||||
|
||||
import { Service, Device } from "../src/sonos";
|
||||
import { Album, Artist } from "../src/music_service";
|
||||
|
||||
const randomInt = (max: number) => Math.floor(Math.random() * max);
|
||||
const randomIpAddress = () => `127.0.${randomInt(255)}.${randomInt(255)}`;
|
||||
@@ -68,6 +68,10 @@ export function someCredentials(token: string): Credentials {
|
||||
}
|
||||
}
|
||||
|
||||
export type ArtistWithAlbums = Artist & {
|
||||
albums: Album[];
|
||||
};
|
||||
|
||||
export const BOB_MARLEY: ArtistWithAlbums = {
|
||||
id: uuid(),
|
||||
name: "Bob Marley",
|
||||
|
||||
Reference in New Issue
Block a user