Skip to content

Commit

Permalink
Merge branch 'engine-detect' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
fgRuslan committed May 28, 2020
2 parents 669888b + 51d2761 commit a57ecb5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions BooruDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="DanEngine.cs" />
<Compile Include="Detector.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
Expand Down
3 changes: 2 additions & 1 deletion DanEngine.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -122,6 +122,7 @@ public string downloadPosts(string domain, string tags, int page, bool keepOrigi

public int getPostCount(string domain, string tags)
{

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(domain + "/posts.xml?page=dapi&s=post&q=index&tags=" + tags);
Expand Down
1 change: 1 addition & 0 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
Expand Down Expand Up @@ -38,6 +38,15 @@ private void Form1_Load(object sender, EventArgs e)
label4.Text = "";
this.MaximizeBox = false;
this.FormBorderStyle = FormBorderStyle.FixedSingle;

ToolTip toolTip1 = new ToolTip();

toolTip1.AutoPopDelay = 99999;
toolTip1.InitialDelay = 250;
toolTip1.ReshowDelay = 250;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(this.checkBox1, "It's better to keep this checkbox checked as if it's not, you may not be able to download everything successfully");
}

public void TagsGotFocus(object sender, EventArgs e)
Expand Down Expand Up @@ -121,5 +130,10 @@ private void detectButton_Click(object sender, EventArgs e)
{
Detector.detectEngine(domainBox.Text);
}

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{

}
}
}
1 change: 1 addition & 0 deletions GelEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private async void downloadImage(string url, string tags, bool keepOriginalNames
wc.DownloadFileAsync(new System.Uri(url), "./out/" + rating + FnameFromURL(url));
}
}

}

public int getPostCount(string domain, string tags)
Expand Down

0 comments on commit a57ecb5

Please sign in to comment.