Skip to content

Commit

Permalink
Fix order in applying $num and $numc tokens (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
OMSmolina authored Dec 15, 2023
1 parent eab9329 commit 7b5a35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YoutubeDownloader.Core/Downloading/FileNameTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public static string Apply(
) =>
PathEx.EscapeFileName(
template
.Replace("$num", number is not null ? $"[{number}]" : "")
.Replace("$numc", number ?? "")
.Replace("$num", number is not null ? $"[{number}]" : "")
.Replace("$id", video.Id)
.Replace("$title", video.Title)
.Replace("$author", video.Author.ChannelTitle)
Expand Down

0 comments on commit 7b5a35f

Please # to comment.