diff --git a/InternalUtilities/UNTESTED/AudibleApiStorage.cs b/InternalUtilities/UNTESTED/AudibleApiStorage.cs index 141531a7..6d9892b9 100644 --- a/InternalUtilities/UNTESTED/AudibleApiStorage.cs +++ b/InternalUtilities/UNTESTED/AudibleApiStorage.cs @@ -14,20 +14,15 @@ namespace InternalUtilities public static string AccountsSettingsFile => Path.Combine(Configuration.Instance.LibationFiles, "AccountsSettings.json"); - public static string GetJsonPath( - //string username - ////, string locale - ) + // TEMP + public static string GetJsonPath() => null; + + public static string GetJsonPath(string username, string locale) { - return null; + var usernameSanitized = JsonConvert.ToString(username); + var localeSanitized = JsonConvert.ToString(locale); - - //var usernameSanitized = JsonConvert.ToString(username); - - ////var localeSanitized = JsonConvert.ToString(locale); - ////return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}' && @.IdentityTokens.Locale == '{localeSanitized}')].IdentityTokens"; - - //return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}')].IdentityTokens"; + return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}' && @.IdentityTokens.Locale == '{localeSanitized}')].IdentityTokens"; } } } diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index 4940bc7f..da0a4093 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 3.1.12.86 + 3.1.12.88