Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
fix lint issues (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 authored May 27, 2022
1 parent a6ce60a commit ce33de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit ce33de9

Please sign in to comment.