From 937bd56fcc91ec1df48927bfdd6d301c045bab9a Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Thu, 23 Sep 2021 16:20:08 -0400 Subject: [PATCH] debug code to incl episodes --- InternalUtilities/ApiExtended.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/InternalUtilities/ApiExtended.cs b/InternalUtilities/ApiExtended.cs index 382afabb..a0ae12b1 100644 --- a/InternalUtilities/ApiExtended.cs +++ b/InternalUtilities/ApiExtended.cs @@ -121,6 +121,7 @@ namespace InternalUtilities #if DEBUG //// this will not work for multi accounts //var library_json = "library.json"; +//library_json = System.IO.Path.GetFullPath(library_json); //if (System.IO.File.Exists(library_json)) //{ // items = AudibleApi.Common.Converter.FromJson>(System.IO.File.ReadAllText(library_json)); @@ -128,12 +129,13 @@ namespace InternalUtilities #endif if (!items.Any()) items = await Api.GetAllLibraryItemsAsync(responseGroups); -#if DEBUG -//System.IO.File.WriteAllText("library.json", AudibleApi.Common.Converter.ToJson(items)); -#endif await manageEpisodesAsync(items); +#if DEBUG +//System.IO.File.WriteAllText(library_json, AudibleApi.Common.Converter.ToJson(items)); +#endif + var validators = new List(); validators.AddRange(getValidators()); foreach (var v in validators)