splash ui

This commit is contained in:
2021-08-11 16:59:35 +08:00
parent 521d82829d
commit c224bed1f4
14 changed files with 48 additions and 28 deletions

View File

@ -185,7 +185,7 @@ namespace Gallery.Util
var data = new byte[size];
var task = new TaskCompletionSource<string>();
ParallelTask.Start($"download.async.{id}", 0, list.Count, 2, i =>
ParallelTask.Start($"download.async.{id}", 0, list.Count, Config.MaxThreads, i =>
{
var (from, to) = list[i];
using (var request = new HttpRequestMessage(HttpMethod.Get, url))

View File

@ -81,7 +81,7 @@ namespace Gallery.Util
public const string ProxyHostKey = "proxy_host";
public const string ProxyPortKey = "proxy_port";
public const int MaxThreads = 8;
public const int MaxThreads = 2;
public const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36";
public const string AcceptLanguage = "zh-cn";
public const string AcceptImage = "image/png,image/*,*/*;q=0.8";