mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
91ae6bb107
commit
b98bf909fb
4 changed files with 18 additions and 17 deletions
|
|
@ -161,12 +161,12 @@ export default class {
|
|||
if (firstTrackID !== "first") this._shuffledList.unshift(firstTrackID);
|
||||
}
|
||||
async _scrobble(track, time, complete = false) {
|
||||
console.log(`scrobble ${track.name} by ${track.ar[0].name}`);
|
||||
const trackDuration = ~~(track.dt / 1000);
|
||||
time = complete ? trackDuration : time;
|
||||
scrobble({
|
||||
id: track.id,
|
||||
sourceid: this.playlistSource.id,
|
||||
time: complete ? trackDuration : time,
|
||||
time,
|
||||
});
|
||||
if (
|
||||
store.state.lastfm.key !== undefined &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue