core why?
This commit is contained in:
parent
315cafe5f4
commit
710db9c819
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ const lfm = {
|
|||
},
|
||||
|
||||
scrobbleSong: async function (attributes) {
|
||||
await new Promise(resolve => setTimeout(resolve, (attributes.durationInMillis / (app.cfg.get('lastfm.scrobble_after') / 100))));
|
||||
console.log((app.cfg.get('lastfm.scrobble_after') / 100))
|
||||
await new Promise(resolve => setTimeout(resolve, Math.round(attributes.durationInMillis * (app.cfg.get('lastfm.scrobble_after') / 100))));
|
||||
const currentAttributes = app.media;
|
||||
|
||||
if (!app.lastfm || app.lastfm.cachedAttributes === attributes ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue