Clicking Liberate button on a liberated item navigates to that audio file
This commit is contained in:
parent
f9917d4064
commit
7bb4853903
@ -122,8 +122,18 @@ namespace LibationWinForm
|
|||||||
|
|
||||||
var productId = GetGridEntry(e.RowIndex).GetBook().AudibleProductId;
|
var productId = GetGridEntry(e.RowIndex).GetBook().AudibleProductId;
|
||||||
|
|
||||||
var backupBook = BookLiberation.ProcessorAutomationController.GetWiredUpBackupBook((_, __) => RefreshRow(productId));
|
// if liberated, open explorer to file
|
||||||
await BookLiberation.ProcessorAutomationController.RunSingleBackupAsync(backupBook, productId);
|
if (FileManager.AudibleFileStorage.Audio.Exists(productId))
|
||||||
|
{
|
||||||
|
var filePath = FileManager.AudibleFileStorage.Audio.GetPath(productId);
|
||||||
|
System.Diagnostics.Process.Start("explorer.exe", $"/select, \"{filePath}\"");
|
||||||
|
}
|
||||||
|
// else liberate
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var backupBook = BookLiberation.ProcessorAutomationController.GetWiredUpBackupBook((_, __) => RefreshRow(productId));
|
||||||
|
await BookLiberation.ProcessorAutomationController.RunSingleBackupAsync(backupBook, productId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user