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:
@@ -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}");
|
||||||
|
|||||||
Reference in New Issue
Block a user