Skip to content

Commit

Permalink
Show if hours is greater than 0, otherwise only show minutes:seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaLynxie committed Jan 27, 2022
1 parent a115208 commit 44ddc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/commands/music/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ module.exports = {
seconds = time - (hours * 3600) - (minutes * 60);
if (hours < 10) { hours = `0${hours}` };
if (minutes < 10) { minutes = `0${minutes}` };
if (seconds < 10) { seconds = `0${seconds}` };
return `${hours}:${minutes}:${seconds}`;
if (seconds < 10) { seconds = `0${seconds}` };
return `${(hours > 0) ? `${hours}:` : ''}${minutes}:${seconds}`;
};
async function playlistParser(url, type) {
let playlist, queue = [];
Expand Down

0 comments on commit 44ddc45

Please sign in to comment.