Compare commits

..

29 Commits

Author SHA1 Message Date
a91fb06885 Added total new media counts context to "Scrape Completed" log 2025-10-22 00:59:01 +02:00
27e19a8749 Added logging of which NonInteractive mode it's running 2025-10-22 00:57:58 +02:00
95438ad538 Added "Log.CloseAndFlush" call before every Environment.Exit 2025-10-22 00:52:58 +02:00
5f1870f32f More logging tweaks 2025-10-14 00:50:22 +02:00
333e91d01c Tweaked progress output, to create task for each model 2025-10-14 00:39:59 +02:00
5a7e9ed74e Fixed missing LogContext enrichment 2025-10-14 00:39:59 +02:00
2fcfe879e7 Fixed parameters to ensure no null values are passed incorrectly 2025-10-14 00:39:58 +02:00
0987c7498b Added update all UserInfo mode 2025-10-11 16:37:48 +02:00
811cafe5ca Added user info table and update it for each user 2025-10-11 15:59:47 +02:00
a2d57ba2f5 Added additional info logging with new media counts per model 2025-10-08 23:30:41 +02:00
f3815ba993 Enabled logging to Seq. 2025-10-08 22:30:01 +02:00
849f8d7f5f Added safe-guard against paid content returned for other models 2025-10-08 21:20:11 +02:00
a7121d0676 Fixed lookup for Paid Posts and Messages, due to API changes 2025-10-08 21:20:10 +02:00
023a811643 Extended "output blocked" to also include expired in separate file 2025-10-08 21:19:34 +02:00
ced5607186 Updated blocked user lookup with progress status 2025-10-08 21:19:33 +02:00
e6c6a3a135 Updated non-interactive list user lookup.
Tweaked order to fully replace users before updating DB.
2025-10-08 21:19:33 +02:00
bb0556b233 Debug logging in BuildHeaderAndExecuteRequests 2025-10-08 21:19:32 +02:00
8c1852c8f7 Tweaked publishing script 2025-10-08 21:19:32 +02:00
66ac4df063 Added logic to reset chat read state after downloading messages 2025-10-08 21:19:32 +02:00
92eb2c6a34 Updated subscription lookup to match OF website. 2025-10-08 21:19:31 +02:00
536dff3762 Added logic to save list of blocked users. 2025-10-08 21:19:31 +02:00
ce1a44f57e HttpClient tweaks 2025-10-08 21:19:31 +02:00
8d10d2b5e9 Added earningId to Subscribe model 2025-10-08 21:19:30 +02:00
f2c2e659c9 Improved DB connection creation with delayed retry, and connection caching 2025-10-08 21:19:30 +02:00
0d6b66f567 Extended command line args for NonInteractive 2025-10-08 21:19:30 +02:00
813d14215a Added exiting if other process is detected, to avoid overlapping runs 2025-10-08 21:19:05 +02:00
47c31f98ef Added "x of y" count to "Scraping Data For" console outputs. 2025-10-08 21:19:05 +02:00
d2b1db46b5 Config and project tweaks, plus publish script 2025-10-08 21:19:05 +02:00
00777dbd52 Fixed async usage. 2025-10-08 21:19:05 +02:00
2 changed files with 5 additions and 7 deletions

View File

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

View File

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