mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
Marking nowPlaying in smapi setPlayedSeconds handler so does not mark when sonos pre-caches a track (#57)
This commit is contained in:
@@ -888,6 +888,9 @@ function bindSmapiSoapServiceToExpress(
|
||||
switch (type) {
|
||||
case "track":
|
||||
musicLibrary.track(typeId).then(({ duration }) => {
|
||||
if(+seconds > 0) {
|
||||
musicLibrary.nowPlaying(typeId);
|
||||
}
|
||||
if (
|
||||
(duration < 30 && +seconds >= 10) ||
|
||||
(duration >= 30 && +seconds >= 30)
|
||||
|
||||
Reference in New Issue
Block a user