[TB] fix: run MoveHashDirectoryUpTB only once
Signed-off-by: Sam Heinz <54530346+asylumexp@users.noreply.github.com>
This commit is contained in:
parent
7019c79814
commit
bf023b333b
1 changed files with 5 additions and 15 deletions
|
|
@ -80,11 +80,6 @@ public class UnpackClient(Download download, String destinationPath)
|
|||
{
|
||||
Extract(filePath, extractPathTemp, cancellationToken);
|
||||
|
||||
if (_torrent.ClientKind == Data.Enums.Provider.TorBox)
|
||||
{
|
||||
MoveHashDirectoryUpTB(extractPathTemp);
|
||||
}
|
||||
|
||||
await FileHelper.Delete(filePath);
|
||||
|
||||
var rarFiles = Directory.GetFiles(extractPathTemp, "*.r00", SearchOption.TopDirectoryOnly);
|
||||
|
|
@ -96,11 +91,6 @@ public class UnpackClient(Download download, String destinationPath)
|
|||
if (File.Exists(mainRarFile))
|
||||
{
|
||||
Extract(mainRarFile, extractPath, cancellationToken);
|
||||
|
||||
if (Settings.Get.Provider.Provider == Data.Enums.Provider.TorBox)
|
||||
{
|
||||
MoveHashDirectoryUpTB(extractPath);
|
||||
}
|
||||
}
|
||||
|
||||
await FileHelper.DeleteDirectory(extractPathTemp);
|
||||
|
|
@ -110,13 +100,13 @@ public class UnpackClient(Download download, String destinationPath)
|
|||
{
|
||||
Extract(filePath, extractPath, cancellationToken);
|
||||
|
||||
if (Settings.Get.Provider.Provider == Data.Enums.Provider.TorBox)
|
||||
{
|
||||
MoveHashDirectoryUpTB(extractPath);
|
||||
}
|
||||
|
||||
await FileHelper.Delete(filePath);
|
||||
}
|
||||
|
||||
if (Settings.Get.Provider.Provider == Data.Enums.Provider.TorBox)
|
||||
{
|
||||
MoveHashDirectoryUpTB(extractPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue