You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround for showing full filename I just commented out all filename length checker. And it seems to work now.
if(fileNameLength>targetLength){if(fileExtensionLength<(targetLength-2)){// Name too long: ellipse title, leave extension as-is// filetit….extensionfileName=`${ellipsize(fileTitle,targetLength-fileExtensionLength,{ellipse: ellipseCharacter})}${fileExtension}`}else{// Name too long, extension too long: Ellipse title, hide extension// filetit…fileName=`${ellipsize(fileTitle,targetLength,{ellipse: ellipseCharacter})}`}}elseif(fileNameLength<targetLength){if(fileNameLength>=(targetLength-1)){// Name too short by less than 2 characters: pad title left// filetitle.extensionfileName=`${fileTitle}${fileExtension}`.padStart(targetLength,' ')}else{// Name too short by more than 2 characters: Prefix ellipsed directory tree// …ocuments/filetitle.extensionfileName=`${ellipseCharacter}${filePath.substr(filePath.length-targetLength+1,filePath.length-1)}`}}else{// File name has perfect lengthfileName=`${fileTitle}${fileExtension}`}
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the great wrapper! Works flawlessly.
Please consider making filename longer, because it is truncated too much which makes unclear what file is processed.
I tried to increase
targetLength
from10
to larger number inhttps://github.com/sidneys/ffmpeg-progressbar-cli/blob/master/lib/formatter.js#L36
But it didn't help
As a workaround for showing full filename I just commented out all filename length checker. And it seems to work now.
The text was updated successfully, but these errors were encountered: