Compare commits

..

31 Commits

Author SHA1 Message Date
cf1564bc7f Added total new media counts context to "Scrape Completed" log 2025-11-09 22:10:45 +01:00
3855a5e862 Added logging of which NonInteractive mode it's running 2025-11-09 22:10:45 +01:00
07aaed9a07 Added "Log.CloseAndFlush" call before every Environment.Exit 2025-11-09 22:10:44 +01:00
0cfac356c5 More logging tweaks 2025-11-09 22:10:44 +01:00
f40bd0527b Tweaked progress output, to create task for each model 2025-11-09 22:10:44 +01:00
03880fa1a0 Fixed missing LogContext enrichment 2025-11-09 22:10:43 +01:00
67961ed80d Fixed parameters to ensure no null values are passed incorrectly 2025-11-09 22:10:43 +01:00
a91940cfd8 Added update all UserInfo mode 2025-11-09 22:10:42 +01:00
f8d7e2277f Added user info table and update it for each user 2025-11-09 22:10:42 +01:00
7bf6271102 Added additional info logging with new media counts per model 2025-11-09 22:10:41 +01:00
a70fa0aa2f Enabled logging to Seq. 2025-11-09 22:10:24 +01:00
deabe347cb Added safe-guard against paid content returned for other models 2025-11-09 22:10:24 +01:00
579d62d889 Fixed lookup for Paid Posts and Messages, due to API changes 2025-11-09 22:10:23 +01:00
c75ac3a78c Extended "output blocked" to also include expired in separate file 2025-11-09 22:10:23 +01:00
35126bd813 Updated blocked user lookup with progress status 2025-11-09 22:10:22 +01:00
57457ad098 Updated non-interactive list user lookup.
Tweaked order to fully replace users before updating DB.
2025-11-09 22:10:22 +01:00
3d1da01943 Debug logging in BuildHeaderAndExecuteRequests 2025-11-09 22:10:21 +01:00
381d92475a Tweaked publishing script 2025-11-09 22:10:21 +01:00
b830eefb33 Added logic to reset chat read state after downloading messages 2025-11-09 22:10:20 +01:00
7cd9a35b12 Updated subscription lookup to match OF website. 2025-11-09 22:10:20 +01:00
5e65466c8a Added logic to save list of blocked users. 2025-11-09 22:10:19 +01:00
c7c2a41331 HttpClient tweaks 2025-11-09 22:10:19 +01:00
2c66e76de9 Added earningId to Subscribe model 2025-11-09 22:10:19 +01:00
7d3a693fd7 Improved DB connection creation with delayed retry, and connection caching 2025-11-09 22:10:18 +01:00
b0193e2142 Extended command line args for NonInteractive 2025-11-09 22:10:18 +01:00
5b9022e086 Added exiting if other process is detected, to avoid overlapping runs 2025-11-09 22:10:18 +01:00
e1d2db90de Added "x of y" count to "Scraping Data For" console outputs. 2025-11-09 22:10:17 +01:00
fa0f8c29fd Config and project tweaks, plus publish script 2025-11-09 22:09:55 +01:00
a1efdc6307 Fixed async usage. 2025-11-09 22:09:55 +01:00
c147a19a0a Merge pull request 'Fix purchased tab API endpoints' (#72) from whimsical-c4lic0/OF-DL:fix-purchased-tab into master
Reviewed-on: sim0n00ps/OF-DL#72
2025-11-05 09:14:01 +00:00
18fe2580ad Fix purchased tab API endpoints 2025-11-04 18:18:29 -06:00
2 changed files with 7 additions and 5 deletions

View File

@ -2262,7 +2262,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));
@ -2435,7 +2436,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));

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", 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[/]");
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", p, Config, users);
int userNum = 0;
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid/all", p, Config, users);
int userNum = 1;
int userCount = purchasedTabCollections.Count;
foreach (PurchasedTabCollection purchasedTabCollection in purchasedTabCollections)
{