mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-24 22:49:01 -04:00
Fix Stupid
This commit is contained in:
1 parent
697f797509
commit
7a9c6720c7
2 files changed
+8
-17
No files matched your search
@@ -73,23 +73,15 @@ namespace FileLiberator
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
var realMp3Path
|
||||
= FileUtility.SaferMoveToValidPath(
|
||||
mp3File.Name,
|
||||
proposedMp3Path,
|
||||
Configuration.Instance.ReplacementCharacters,
|
||||
extension: "mp3",
|
||||
Configuration.Instance.OverwriteExisting);
|
||||
var realMp3Path
|
||||
= FileUtility.SaferMoveToValidPath(
|
||||
mp3File.Name,
|
||||
proposedMp3Path,
|
||||
Configuration.Instance.ReplacementCharacters,
|
||||
extension: "mp3",
|
||||
Configuration.Instance.OverwriteExisting);
|
||||
|
||||
OnFileCreated(libraryBook, realMp3Path);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return new StatusHandler { "Failed to move decrypted files to Books directory" };
|
||||
throw;
|
||||
}
|
||||
OnFileCreated(libraryBook, realMp3Path);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -94,7 +94,6 @@ namespace FileLiberator
|
||||
//Only fail if the downloaded audio files failed to move to Books directory
|
||||
if (moveFilesTask.IsFaulted)
|
||||
{
|
||||
return new StatusHandler { "Failed to move decrypted files to Books directory" };
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user