From 18fe2580adb8243ed3fc6e4bc4da09847c34c6b7 Mon Sep 17 00:00:00 2001 From: whimsical-c4lic0 Date: Tue, 4 Nov 2025 18:18:29 -0600 Subject: [PATCH] Fix purchased tab API endpoints --- OF DL/Helpers/APIHelper.cs | 8 +++++--- OF DL/Program.cs | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/OF DL/Helpers/APIHelper.cs b/OF DL/Helpers/APIHelper.cs index 80bd932..80c595c 100644 --- a/OF DL/Helpers/APIHelper.cs +++ b/OF DL/Helpers/APIHelper.cs @@ -1181,7 +1181,7 @@ public class APIHelper : IAPIHelper } } break; - + } } else if (medium.canView && medium.files != null && medium.files.drm != null) @@ -2078,7 +2078,8 @@ public class APIHelper : IAPIHelper { { "limit", post_limit.ToString() }, { "order", "publish_date_desc" }, - { "format", "infinite" } + { "format", "infinite" }, + { "skip_users", "all" } }; var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); @@ -2251,7 +2252,8 @@ public class APIHelper : IAPIHelper { { "limit", post_limit.ToString() }, { "order", "publish_date_desc" }, - { "format", "infinite" } + { "format", "infinite" }, + { "skip_users", "all" } }; var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); diff --git a/OF DL/Program.cs b/OF DL/Program.cs index 539e3d4..70d66cd 100644 --- a/OF DL/Program.cs +++ b/OF DL/Program.cs @@ -983,7 +983,7 @@ public class Program } else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab")) { - Dictionary purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid", Config, users); + Dictionary purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid/all", Config, users); AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]"); foreach (KeyValuePair user in purchasedTabUsers) { @@ -1030,7 +1030,7 @@ public class Program Log.Debug($"Download path: {p}"); - List purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid", p, Config, users); + List purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid/all", p, Config, users); foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections) { AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]");