Skip to content

Commit

Permalink
Fix pool index extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed Jan 24, 2025
1 parent b05d338 commit baec77a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task<Post> GetPostAsync(string postId)
GetUgoiraMetadata(post),
GetParent(post),
GetChildren(post),
await GetPoolsAsync(postId),
await GetPoolsAsync(post.Id),
GetTags(post),
GetNotes(post));
}
Expand Down Expand Up @@ -74,7 +74,7 @@ await GetPoolsAsync(postId),
GetUgoiraMetadata(post),
GetParent(post),
GetChildren(post),
await GetPoolsAsync(post.Id.ToString()),
await GetPoolsAsync(post.Id),
GetTags(post),
GetNotes(post));
}
Expand Down Expand Up @@ -212,7 +212,7 @@ private static IReadOnlyCollection<int> GetUgoiraMetadata(DanbooruPost post)
return post.MediaMetadata.Metadata.UgoiraFrameDelays ?? Array.Empty<int>();
}

private async Task<IReadOnlyCollection<Pool>> GetPoolsAsync(string postId)
private async Task<IReadOnlyCollection<Pool>> GetPoolsAsync(int postId)
{
var pools = await _flurlClient.Request("pools.json")
.SetQueryParam("search[post_tags_match]", $"id:{postId}")
Expand Down

0 comments on commit baec77a

Please sign in to comment.