Skip to content

Commit

Permalink
remove trimmed name if not trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviiu committed Jan 14, 2024
1 parent 3f3106c commit c9f307c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/ytdlp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ module.exports = {

totalTrimmedDuration = Math.max(0, (totalDuration[1] ? totalDuration[1] - totalDuration[0] : null));

if(seek[0] != 0 || seek[1] != Math.ceil(info.duration.units.ms/1000)) {
if(seek[0] != 0 || seek[1] != Math.ceil(info.duration.units.ms/1000).toFixed(3)) {
usedFilename = true;
ytdlpFilename = ytdlpFilename.trim() + `.trimmed (${seek[0]}-${seek[1]})`;
}
Expand Down

0 comments on commit c9f307c

Please sign in to comment.