fix: emit per-key colored output in -replies mode on successful API calls

Call ApiKeyPool.MarkAvailable(key) after successful reply fetch in FetchAndStoreReplyText, matching behavior in CollectLikes. This produces the colored '[Pool] Key#N (...) rate-limit cleared' line for each API call, allowing operators to visually track which API key is being used per request.

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
This commit is contained in:
jim
2026-05-06 15:27:23 -05:00
co-authored by Claude Haiku 4.5
parent c39d555d6e
commit 539994b742
+3
View File
@@ -464,6 +464,9 @@ namespace URLNotesGrabberCORE
return; return;
} }
if (postsResponse?.meta?.status != 429)
ApiKeyPool.MarkAvailable(key);
if (postsResponse?.response == null || postsResponse.response.notes == null || postsResponse.response.notes.Count == 0) if (postsResponse?.response == null || postsResponse.response.notes == null || postsResponse.response.notes.Count == 0)
{ {
Console.WriteLine($"[Reply Text] No notes found in response for {blogName}/{postID}"); Console.WriteLine($"[Reply Text] No notes found in response for {blogName}/{postID}");