Merge pull request 'Fix purchased tab API endpoints' (#72) from whimsical-c4lic0/OF-DL:fix-purchased-tab into master
All checks were successful
Publish release zip / build (push) Successful in 1m1s
Publish Docker image / Build and push Docker image to Gitea Registry (push) Successful in 3m26s

Reviewed-on: #72
This commit is contained in:
sim0n00ps 2025-11-05 09:14:01 +00:00
commit c147a19a0a
2 changed files with 7 additions and 5 deletions

View File

@ -2078,7 +2078,8 @@ public class APIHelper : IAPIHelper
{ {
{ "limit", post_limit.ToString() }, { "limit", post_limit.ToString() },
{ "order", "publish_date_desc" }, { "order", "publish_date_desc" },
{ "format", "infinite" } { "format", "infinite" },
{ "skip_users", "all" }
}; };
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
@ -2251,7 +2252,8 @@ public class APIHelper : IAPIHelper
{ {
{ "limit", post_limit.ToString() }, { "limit", post_limit.ToString() },
{ "order", "publish_date_desc" }, { "order", "publish_date_desc" },
{ "format", "infinite" } { "format", "infinite" },
{ "skip_users", "all" }
}; };
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));

View File

@ -983,7 +983,7 @@ public class Program
} }
else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab")) else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab"))
{ {
Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid", Config, users); Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid/all", Config, users);
AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]"); AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]");
foreach (KeyValuePair<string, int> user in purchasedTabUsers) foreach (KeyValuePair<string, int> user in purchasedTabUsers)
{ {
@ -1030,7 +1030,7 @@ public class Program
Log.Debug($"Download path: {p}"); Log.Debug($"Download path: {p}");
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid", p, Config, users); List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid/all", p, Config, users);
foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections) foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections)
{ {
AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]"); AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]");