Add most recently played

This commit is contained in:
simojenki
2021-04-09 10:01:57 +10:00
parent 8a45bf6c11
commit efe4b4238b
2 changed files with 59 additions and 2 deletions

View File

@@ -427,9 +427,13 @@ function bindSmapiSoapServiceToExpress(
id: "recentlyPlayed",
title: "Recently Played",
}),
container({
id: "mostPlayed",
title: "Most Played",
}),
],
index: 0,
total: 6,
total: 7,
});
case "artists":
return musicLibrary.artists(paging).then((result) => {
@@ -464,6 +468,11 @@ function bindSmapiSoapServiceToExpress(
...paging,
});
case "recentlyPlayed":
return albums({
type: "recent",
...paging,
});
case "mostPlayed":
return albums({
type: "frequent",
...paging,