Skip to content

Commit 2f31d1b

Browse files
committed
fix #520
1 parent ec17a24 commit 2f31d1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

BBDown/BBDownUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public static async Task<string> Get302(string url)
555555
private static char[] InvalidChars = "34,60,62,124,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,58,42,63,92,47"
556556
.Split(',').Select(s => (char)int.Parse(s)).ToArray();
557557

558-
public static string GetValidFileName(string input, string re = ".", bool filterSlash = false)
558+
public static string GetValidFileName(string input, string re = "_", bool filterSlash = false)
559559
{
560560
string title = input;
561561

BBDown/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ private static string FormatSavePath(string savePathFormat, string title, Video?
989989
"audioCodecs" => audioTrack == null ? "" : audioTrack.codecs,
990990
"audioBandwidth" => audioTrack == null ? "" : audioTrack.bandwith.ToString(),
991991
"apiType" => tvApi ? "TV" : (appApi ? "APP" : (intlApi ? "INTL" : "WEB")),
992-
_ => key
992+
_ => $"<{key}>"
993993
};
994994
result = result.Replace(m.Value, v);
995995
}

0 commit comments

Comments
 (0)