Compare commits

..

15 Commits

Author SHA1 Message Date
d3b8ca6fcd Debug logging in BuildHeaderAndExecuteRequests 2025-05-14 00:06:57 +02:00
3d4dfbae17 Reverted subscription fetching to be done in sequence 2025-05-14 00:06:46 +02:00
1429da5ac6 Updated subscription lookup to match OF website.
It always increments the offset with the limit before making the next request.
2025-05-14 00:04:52 +02:00
cb639ff18c Tweaked publishing script 2025-05-13 23:34:41 +02:00
637bac5f61 Added logic to save list of blocked users. 2025-05-13 22:21:04 +02:00
8fd17feba5 Added logic to reset chat read state after downloading messages 2025-05-13 22:21:04 +02:00
3cc3c49b0f Improved subscription loading and null handling 2025-05-13 22:21:03 +02:00
3ac8360a09 HttpClient tweaks 2025-05-13 22:21:03 +02:00
fed6fc77a8 Added earningId to Subscribe model 2025-05-13 22:21:03 +02:00
e723680a96 Improved DB connection creation with delayed retry, and connection caching 2025-05-13 22:21:03 +02:00
233de7c9e5 Extended command line args for NonInteractive 2025-05-13 22:21:02 +02:00
a893653be1 Added exiting if other process is detected, to avoid overlapping runs 2025-05-13 22:21:02 +02:00
2e8789897e Added "x of y" count to "Scraping Data For" console outputs. 2025-05-13 22:21:02 +02:00
fd2c6ad6cd Config and project tweaks, plus publish script 2025-05-13 22:21:02 +02:00
5488d9f80c Fixed async usage. 2025-05-13 22:20:44 +02:00

View File

@ -70,7 +70,7 @@ public class Program
AnsiConsole.MarkupLine($"[yellow]In the new window that has opened, please log in to your OF account. Do not close the window or tab. Do not navigate away from the page.[/]\n");
AnsiConsole.MarkupLine($"[yellow]Note: Some users have reported that \"Sign in with Google\" has not been working with the new authentication method.[/]");
AnsiConsole.MarkupLine($"[yellow]If you use this method or encounter other issues while logging in, use one of the legacy authentication methods documented here:[/]");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]");
}
}
auth = await getAuthTask;
@ -80,7 +80,7 @@ public class Program
AnsiConsole.MarkupLine($"\n[red]Authentication failed. Be sure to log into to OF using the new window that opened automatically.[/]");
AnsiConsole.MarkupLine($"[red]The window will close automatically when the authentication process is finished.[/]");
AnsiConsole.MarkupLine($"[red]If the problem persists, you may want to try using a legacy authentication method documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Log.Error(e, "auth invalid after attempt to get auth from browser");
@ -92,7 +92,7 @@ public class Program
AnsiConsole.MarkupLine($"\n[red]Authentication failed. Be sure to log into to OF using the new window that opened automatically.[/]");
AnsiConsole.MarkupLine($"[red]The window will close automatically when the authentication process is finished.[/]");
AnsiConsole.MarkupLine($"[red]If the problem persists, you may want to try using a legacy authentication method documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Log.Error("auth invalid after attempt to get auth from browser");
@ -626,7 +626,7 @@ public class Program
{
AnsiConsole.MarkupLine($"\n[red]auth.json has invalid JSON syntax. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
AnsiConsole.MarkupLine($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey();
@ -642,7 +642,7 @@ public class Program
{
AnsiConsole.MarkupLine($"\n[red]auth.json is missing. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
AnsiConsole.MarkupLine($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey();
@ -656,7 +656,7 @@ public class Program
{
AnsiConsole.MarkupLine($"\n[red]auth.json is missing. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
AnsiConsole.MarkupLine($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey();
@ -671,7 +671,7 @@ public class Program
{
AnsiConsole.MarkupLine($"\n[red]auth.json is missing. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
AnsiConsole.MarkupLine($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey();
@ -847,7 +847,7 @@ public class Program
if (auth == null)
{
AnsiConsole.MarkupLine($"\n[red]Auth failed. Please try again or use other authentication methods detailed here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth[/]\n");
Console.ReadKey();
Environment.Exit(2);
}