This commit is contained in:
Snowflake107 2021-05-10 15:47:05 +05:45
parent f27cf86038
commit 5602a4c360

View file

@ -241,7 +241,7 @@ export class Player extends EventEmitter {
tracks,
duration: tracks?.reduce((a, c) => a + (c?.durationMS ?? 0), 0) ?? 0,
thumbnail: playlist.images[0]?.url ?? tracks[0].thumbnail,
title: playlist.title ?? playlist.name ?? ""
title: playlist.title ?? playlist.name ?? ''
};
this.emit(PlayerEvents.PLAYLIST_PARSE_END, pl, message);
@ -292,7 +292,7 @@ export class Player extends EventEmitter {
// @ts-ignore
playlist.requestedBy = message.author;
Object.defineProperty(playlist, "tracks", {
Object.defineProperty(playlist, 'tracks', {
get: () => playlist.videos ?? []
});