Skip to content

Commit

Permalink
[Hotfix] Disabled datadome cookie check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCSDev committed Mar 31, 2023
1 parent 3406f81 commit 5a08a6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PatreonDownloader.App/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("24.0.0.0")]
[assembly: AssemblyFileVersion("24.0.0.0")]
[assembly: AssemblyVersion("25.0.0.0")]
[assembly: AssemblyFileVersion("25.0.0.0")]
6 changes: 5 additions & 1 deletion PatreonDownloader.Implementation/PatreonCookieValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public async Task ValidateCookies(CookieContainer cookieContainer)
if (cookies["patreon_device_id"] == null)
throw new CookieValidationException("patreon_device_id cookie not found");
if (cookies["datadome"] == null)
throw new CookieValidationException("datadome cookie not found");
{
//Some users reported that they don't have datadome cookie and crawling still works fine, so let's ignore that for now.
_logger.Warn("Datadome cookie was not found. Usually this is not an issue, but if you are experiencing any issues please make sure to report it via GitHub issues page.");
//throw new CookieValidationException("datadome cookie not found");
}

string apiResponse = await _webDownloader.DownloadString("https://www.patreon.com/api/current_user");

Expand Down

0 comments on commit 5a08a6e

Please sign in to comment.