Compare commits

..

16 Commits

Author SHA1 Message Date
319e98443a Debug logging in BuildHeaderAndExecuteRequests 2025-05-20 20:06:13 +02:00
527613b78b Reverted subscription fetching to be done in sequence 2025-05-20 20:06:13 +02:00
82406bf8a4 Updated subscription lookup to match OF website.
It always increments the offset with the limit before making the next request.
2025-05-20 20:06:13 +02:00
bf29f3534f Tweaked publishing script 2025-05-20 20:06:13 +02:00
e7527ee412 Added logic to save list of blocked users. 2025-05-20 20:06:12 +02:00
34bd901160 Added logic to reset chat read state after downloading messages 2025-05-20 20:06:12 +02:00
cd6cbc280c Improved subscription loading and null handling 2025-05-20 20:06:12 +02:00
ff79c39bba HttpClient tweaks 2025-05-20 20:06:12 +02:00
78b8266fdb Added earningId to Subscribe model 2025-05-20 20:06:11 +02:00
bfda64c422 Improved DB connection creation with delayed retry, and connection caching 2025-05-20 20:06:11 +02:00
9d3f027aac Extended command line args for NonInteractive 2025-05-20 20:06:11 +02:00
f93a053005 Added exiting if other process is detected, to avoid overlapping runs 2025-05-20 20:06:10 +02:00
387a32405e Added "x of y" count to "Scraping Data For" console outputs. 2025-05-20 20:06:10 +02:00
135205c9da Config and project tweaks, plus publish script 2025-05-20 20:06:10 +02:00
15d79f5e8a Fixed async usage. 2025-05-20 20:06:10 +02:00
Melithine
d83ad2ec54 Update errors to point at new docs site. 2025-05-18 09:16:05 -07: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]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]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($"[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://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
} }
} }
auth = await getAuthTask; 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($"\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]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($"[red]If the problem persists, you may want to try using a legacy authentication method documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Log.Error(e, "auth invalid after attempt to get auth from browser"); 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($"\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]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($"[red]If the problem persists, you may want to try using a legacy authentication method documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#legacy-methods[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Log.Error("auth invalid after attempt to get auth from browser"); 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($"\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($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey(); 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($"\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($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey(); 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($"\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($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey(); 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($"\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($"[red]You may also want to try using the browser extension which is documented here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth#browser-extension[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth/#legacy-methods[/]");
AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]"); AnsiConsole.MarkupLine($"[red]Press any key to exit.[/]");
Console.ReadKey(); Console.ReadKey();
@ -847,7 +847,7 @@ public class Program
if (auth == null) if (auth == null)
{ {
AnsiConsole.MarkupLine($"\n[red]Auth failed. Please try again or use other authentication methods detailed here:[/]\n"); AnsiConsole.MarkupLine($"\n[red]Auth failed. Please try again or use other authentication methods detailed here:[/]\n");
AnsiConsole.MarkupLine($"[link]https://sim0n00ps.github.io/OF-DL/docs/config/auth[/]\n"); AnsiConsole.MarkupLine($"[link]https://docs.ofdl.tools/config/auth[/]\n");
Console.ReadKey(); Console.ReadKey();
Environment.Exit(2); Environment.Exit(2);
} }