Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Programmatically agree to new ToS and GDPR
Browse files Browse the repository at this point in the history
- Programmatically agree to the new ToS and GDPR.
- Load ToS and GDPR cookie for regular tumblr blog site crawling (#234).
  • Loading branch information
johanneszab committed May 24, 2018
1 parent ad1f185 commit e5719b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/TumblThree/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: ComVisible(false)]
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)]
[assembly: AssemblyVersion("1.0.8.49")]
[assembly: AssemblyFileVersion("1.0.8.49")]
[assembly: AssemblyVersion("1.0.8.50")]
[assembly: AssemblyFileVersion("1.0.8.50")]
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ private async Task<string> GetApiPageAsync(int pageId)
if (shellService.Settings.LimitConnections)
{
crawlerService.Timeconstraint.Acquire();
return await RequestDataAsync(url).TimeoutAfter(shellService.Settings.TimeOut);
return await RequestDataAsync(url, "https://www.tumblr.com/", "https://" + blog.Name.Replace("+", "-") + ".tumblr.com").TimeoutAfter(shellService.Settings.TimeOut);
}
return await RequestDataAsync(url).TimeoutAfter(shellService.Settings.TimeOut);
return await RequestDataAsync(url, "https://www.tumblr.com/", "https://" + blog.Name.Replace("+", "-") + ".tumblr.com").TimeoutAfter(shellService.Settings.TimeOut);
}

private async Task UpdateTotalPostCountAsync()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Globalization;
Expand Down

0 comments on commit e5719b2

Please sign in to comment.