run dotnet format
This commit is contained in:
parent
afc7d1a964
commit
93fac23128
2 changed files with 12 additions and 10 deletions
|
|
@ -322,12 +322,14 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
||||||
{
|
{
|
||||||
return fileName.Trim('"');
|
return fileName.Trim('"');
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (response.Content.Headers.ContentType?.MediaType == "application/zip")
|
if (response.Content.Headers.ContentType?.MediaType == "application/zip")
|
||||||
{
|
{
|
||||||
return $"download-{new Random().Next(1, 10001)}.zip";
|
return $"download-{new Random().Next(1, 10001)}.zip";
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
logger.LogDebug($"Failed to get filename for URI {downloadUrl}");
|
logger.LogDebug($"Failed to get filename for URI {downloadUrl}");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ public class UnpackClient(Download download, String destinationPath)
|
||||||
d =>
|
d =>
|
||||||
{
|
{
|
||||||
Debug.WriteLine(d);
|
Debug.WriteLine(d);
|
||||||
Progess = (Int32) Math.Round(d);
|
Progess = (Int32)Math.Round(d);
|
||||||
},
|
},
|
||||||
cancellationToken: cancellationToken);
|
cancellationToken: cancellationToken);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue