From ce33de95c6ecba92cdea0a6ef4acba848a57319d Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Fri, 27 May 2022 17:17:14 +0100 Subject: [PATCH] fix lint issues (#79) --- app/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper.js b/app/helper.js index 7919de9..8828e17 100644 --- a/app/helper.js +++ b/app/helper.js @@ -240,8 +240,8 @@ class YoutubeGrabberHelper { } else if (durationSplit[0] === 'SHORTS') { // durationText will still be 'SHORTS' for shorts const regexMatch = video.title.accessibility.accessibilityData.label.match(shortsRegex) lengthSeconds = parseInt(regexMatch[2]) - durationText = '0:' + (lengthSeconds.toString().padStart(2,'0')) - if (regexMatch[3] == 'minute') { + durationText = '0:' + (lengthSeconds.toString().padStart(2, '0')) + if (regexMatch[3] === 'minute') { lengthSeconds *= 60 durationText = '1:00' }