Merge branch 'claude/wizardly-antonelli-9f2795'
This commit is contained in:
@@ -492,6 +492,19 @@ namespace URLNotesGrabberCORE
|
|||||||
var raw = postsResponse?.rawJson ?? string.Empty;
|
var raw = postsResponse?.rawJson ?? string.Empty;
|
||||||
if (raw.Length > 500) raw = raw.Substring(0, 500) + "...[truncated]";
|
if (raw.Length > 500) raw = raw.Substring(0, 500) + "...[truncated]";
|
||||||
Console.WriteLine($"[Reply Text] raw: {raw}");
|
Console.WriteLine($"[Reply Text] raw: {raw}");
|
||||||
|
|
||||||
|
bool isNotFound = postsResponse?.meta?.status == 404
|
||||||
|
|| string.Equals(postsResponse?.statusCode, "NotFound", StringComparison.OrdinalIgnoreCase);
|
||||||
|
if (isNotFound)
|
||||||
|
{
|
||||||
|
var notFoundColor = Console.ForegroundColor;
|
||||||
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
|
Console.WriteLine($"[Reply Text] Post {blogName}.tumblr.com/post/{postID} returned 404 - marking NotFound=1 and replies '?'");
|
||||||
|
Console.ForegroundColor = notFoundColor;
|
||||||
|
DataAccess.UpdatePostMarkNotFound(blogName, postID);
|
||||||
|
rowsUpdated += DataAccess.UpdateAllNoteReplyTextForPost(blogName, postID, "?");
|
||||||
|
emptyReplyCount += rowsUpdated;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user