File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ namespace N_m3u8DL_RE.CommandLine;
1717
1818internal static partial class CommandInvoker
1919{
20- public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241201 " ;
20+ public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241202 " ;
2121
2222 [ GeneratedRegex ( "((best|worst)\\ d*|all)" ) ]
2323 private static partial Regex ForStrRegex ( ) ;
Original file line number Diff line number Diff line change 1- using N_m3u8DL_RE . Parser . Config ;
1+ using System . Globalization ;
2+ using N_m3u8DL_RE . Parser . Config ;
23using N_m3u8DL_RE . Common . Entity ;
34using N_m3u8DL_RE . Common . Enum ;
45using N_m3u8DL_RE . Parser ;
@@ -50,6 +51,17 @@ static async Task Main(string[] args)
5051
5152 ResString . CurrentLoc = loc ;
5253
54+ try
55+ {
56+ CultureInfo . DefaultThreadCurrentCulture = new CultureInfo ( loc ) ;
57+ Thread . CurrentThread . CurrentUICulture = CultureInfo . GetCultureInfo ( loc ) ;
58+ Thread . CurrentThread . CurrentCulture = CultureInfo . GetCultureInfo ( loc ) ;
59+ }
60+ catch
61+ {
62+ // Culture not work on NT6.0, so catch the exception
63+ }
64+
5365 await CommandInvoker . InvokeArgs ( args , DoWorkAsync ) ;
5466 }
5567
You can’t perform that action at this time.
0 commit comments