Compare commits
3
Commits
445b52f0c8
...
c5bdd93708
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5bdd93708 | ||
|
|
d16ab14691 | ||
|
|
3448d75030 |
@@ -170,9 +170,10 @@ namespace URLNotesGrabberCORE
|
|||||||
}
|
}
|
||||||
|
|
||||||
string? containsListSetting = settings.GetValue<string>("ContainsList");
|
string? containsListSetting = settings.GetValue<string>("ContainsList");
|
||||||
if (string.IsNullOrEmpty(containsListSetting))
|
List<string> contains = (containsListSetting ?? string.Empty)
|
||||||
|
.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||||
|
if (contains.Count == 0)
|
||||||
throw new InvalidOperationException("ContainsList is not configured in appsettings.json");
|
throw new InvalidOperationException("ContainsList is not configured in appsettings.json");
|
||||||
List<string> contains = containsListSetting.Split(',').ToList();
|
|
||||||
bool logTraversalRecordImports = settings.GetValue("LogTraversalRecordImports", false);
|
bool logTraversalRecordImports = settings.GetValue("LogTraversalRecordImports", false);
|
||||||
|
|
||||||
if (args.Length == 0) //Traverse folder structure to add posts and thus blogs to DB
|
if (args.Length == 0) //Traverse folder structure to add posts and thus blogs to DB
|
||||||
@@ -971,7 +972,8 @@ namespace URLNotesGrabberCORE
|
|||||||
if (isRefresh) cursor = 0;
|
if (isRefresh) cursor = 0;
|
||||||
|
|
||||||
string mode = isRefresh ? "REFRESH" : "BACKFILL";
|
string mode = isRefresh ? "REFRESH" : "BACKFILL";
|
||||||
Console.WriteLine($"[{remaining} remaining] Processing likes for blog: {blogName} | Mode: {mode} | Cursor: {cursor} | HighWaterMark: {storedNewestTs}");
|
int pct = blogsToProcess.Count > 0 ? (((i + 1) * 100) / blogsToProcess.Count) : 0;
|
||||||
|
Console.WriteLine($"[{i + 1}/{blogsToProcess.Count} ({pct}%) | {remaining} remaining] Processing likes for blog: {blogName} | Mode: {mode} | Cursor: {cursor} | HighWaterMark: {storedNewestTs}");
|
||||||
|
|
||||||
bool hasMoreLikes = true;
|
bool hasMoreLikes = true;
|
||||||
bool isFirstPage = true;
|
bool isFirstPage = true;
|
||||||
|
|||||||
Reference in new issue
Block a user