debug code to incl episodes
This commit is contained in:
parent
f29968f379
commit
937bd56fcc
@ -121,6 +121,7 @@ namespace InternalUtilities
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
//// this will not work for multi accounts
|
//// this will not work for multi accounts
|
||||||
//var library_json = "library.json";
|
//var library_json = "library.json";
|
||||||
|
//library_json = System.IO.Path.GetFullPath(library_json);
|
||||||
//if (System.IO.File.Exists(library_json))
|
//if (System.IO.File.Exists(library_json))
|
||||||
//{
|
//{
|
||||||
// items = AudibleApi.Common.Converter.FromJson<List<Item>>(System.IO.File.ReadAllText(library_json));
|
// items = AudibleApi.Common.Converter.FromJson<List<Item>>(System.IO.File.ReadAllText(library_json));
|
||||||
@ -128,12 +129,13 @@ namespace InternalUtilities
|
|||||||
#endif
|
#endif
|
||||||
if (!items.Any())
|
if (!items.Any())
|
||||||
items = await Api.GetAllLibraryItemsAsync(responseGroups);
|
items = await Api.GetAllLibraryItemsAsync(responseGroups);
|
||||||
#if DEBUG
|
|
||||||
//System.IO.File.WriteAllText("library.json", AudibleApi.Common.Converter.ToJson(items));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
await manageEpisodesAsync(items);
|
await manageEpisodesAsync(items);
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
//System.IO.File.WriteAllText(library_json, AudibleApi.Common.Converter.ToJson(items));
|
||||||
|
#endif
|
||||||
|
|
||||||
var validators = new List<IValidator>();
|
var validators = new List<IValidator>();
|
||||||
validators.AddRange(getValidators());
|
validators.AddRange(getValidators());
|
||||||
foreach (var v in validators)
|
foreach (var v in validators)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user