Skip to content

Commit

Permalink
处理文件夹以.开头导致的异常情况
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed May 26, 2023
1 parent bd1a6d0 commit 8ed53ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BBDown/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ private static async Task DoWorkAsync(MyOption myOption)

//处理文件夹以.结尾导致的异常情况
if (title.EndsWith(".")) title += "_fix";
//处理文件夹以.开头导致的异常情况
if (title.StartsWith(".")) title = "_" + title;

//处理封面&&字幕
if (!infoMode)
Expand Down

0 comments on commit 8ed53ea

Please sign in to comment.