fix soundcloud duration
This commit is contained in:
parent
903bfaae46
commit
4184dcb6f9
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ export class Player extends EventEmitter {
|
||||||
const track = new Track(this, {
|
const track = new Track(this, {
|
||||||
title: data.title,
|
title: data.title,
|
||||||
url: data.url,
|
url: data.url,
|
||||||
duration: Util.buildTimeCode(Util.parseMS(data.duration / 1000)),
|
duration: Util.buildTimeCode(Util.parseMS(data.duration)),
|
||||||
description: data.description,
|
description: data.description,
|
||||||
thumbnail: data.thumbnail,
|
thumbnail: data.thumbnail,
|
||||||
views: data.playCount,
|
views: data.playCount,
|
||||||
|
@ -317,7 +317,7 @@ export class Player extends EventEmitter {
|
||||||
const r = new Track(this, {
|
const r = new Track(this, {
|
||||||
title: song.title,
|
title: song.title,
|
||||||
url: song.url,
|
url: song.url,
|
||||||
duration: Util.buildTimeCode(Util.parseMS(song.duration / 1000)),
|
duration: Util.buildTimeCode(Util.parseMS(song.duration)),
|
||||||
description: song.description,
|
description: song.description,
|
||||||
thumbnail: song.thumbnail ?? 'https://soundcloud.com/pwa-icon-192.png',
|
thumbnail: song.thumbnail ?? 'https://soundcloud.com/pwa-icon-192.png',
|
||||||
views: song.playCount ?? 0,
|
views: song.playCount ?? 0,
|
||||||
|
|
Loading…
Reference in a new issue