Add TCOM tag for narrator

This commit is contained in:
Michael Bucari-Tovo 2022-12-31 23:31:24 -07:00
parent 1ac825919a
commit 7ef666dc91
3 changed files with 15 additions and 6 deletions

View File

@ -13,7 +13,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AAXClean.Codecs" Version="0.2.14" /> <PackageReference Include="AAXClean.Codecs" Version="0.2.15" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -32,6 +32,9 @@ namespace AaxDecrypter
AaxFile.AppleTags.Album = AaxFile.AppleTags.Album?.Replace(" (Unabridged)", ""); AaxFile.AppleTags.Album = AaxFile.AppleTags.Album?.Replace(" (Unabridged)", "");
} }
if (DownloadOptions.FixupFile)
AaxFile.AppleTags.AppleListBox.EditOrAddTag("TCOM", AaxFile.AppleTags.Narrator);
//Finishing configuring lame encoder. //Finishing configuring lame encoder.
if (DownloadOptions.OutputFormat == OutputFormat.Mp3) if (DownloadOptions.OutputFormat == OutputFormat.Mp3)
MpegUtil.ConfigureLameOptions( MpegUtil.ConfigureLameOptions(

View File

@ -77,7 +77,7 @@ namespace LibationAvalonia.Views
try try
{ {
(string zipFile, UpgradeProperties upgradeProperties) = await Task.Run(() => downloadUpdate()); (string zipFile, UpgradeProperties upgradeProperties) = await Task.Run(downloadUpdate);
if (string.IsNullOrEmpty(zipFile) || !System.IO.File.Exists(zipFile)) if (string.IsNullOrEmpty(zipFile) || !System.IO.File.Exists(zipFile))
return; return;
@ -152,8 +152,6 @@ namespace LibationAvalonia.Views
var thisExe = Environment.ProcessPath; var thisExe = Environment.ProcessPath;
var thisDir = System.IO.Path.GetDirectoryName(thisExe); var thisDir = System.IO.Path.GetDirectoryName(thisExe);
var args = $"--input {zipFile.SurroundWithQuotes()} --output {thisDir.SurroundWithQuotes()} --executable {thisExe.SurroundWithQuotes()}";
var zipExtractor = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "ZipExtractor.exe"); var zipExtractor = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "ZipExtractor.exe");
System.IO.File.Copy("ZipExtractor.exe", zipExtractor, overwrite: true); System.IO.File.Copy("ZipExtractor.exe", zipExtractor, overwrite: true);
@ -164,8 +162,16 @@ namespace LibationAvalonia.Views
UseShellExecute = true, UseShellExecute = true,
Verb = "runas", Verb = "runas",
WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal, WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal,
Arguments = args, CreateNoWindow = true,
CreateNoWindow = true ArgumentList =
{
"--input",
zipFile,
"--output",
thisDir,
"--executable",
thisExe
}
}; };
System.Diagnostics.Process.Start(psi); System.Diagnostics.Process.Start(psi);