mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CTDB EAC Plugin: show progress bar
CTDB protocol: parity files can now be on another server Version bump to 2.1.2
This commit is contained in:
@@ -45,6 +45,12 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FormSubmitParity.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormSubmitParity.Designer.cs">
|
||||
<DependentUpon>FormSubmitParity.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormMetadata.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -67,6 +73,9 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="FormSubmitParity.resx">
|
||||
<DependentUpon>FormSubmitParity.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormMetadata.resx">
|
||||
<DependentUpon>FormMetadata.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -103,7 +112,7 @@
|
||||
<None Include="Resources\favicon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\ctdb.png" />
|
||||
<None Include="Resources\ctdb64.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace MetadataPlugIn
|
||||
TOC[1][0].Start = 0U;
|
||||
|
||||
var ctdb = new CUEToolsDB(TOC, null);
|
||||
var form = new CUETools.CTDB.EACPlugin.FormMetadata(ctdb, "EAC" + data.HostVersion + " CTDB 2.1.1");
|
||||
var form = new CUETools.CTDB.EACPlugin.FormMetadata(ctdb, "EAC" + data.HostVersion + " CTDB 2.1.2");
|
||||
form.ShowDialog();
|
||||
var meta = form.Meta;
|
||||
if (meta == null)
|
||||
@@ -84,13 +84,13 @@ namespace MetadataPlugIn
|
||||
public Array GetPluginLogo()
|
||||
{
|
||||
MemoryStream ms = new MemoryStream();
|
||||
Resources.ctdb.Save(ms);
|
||||
Resources.ctdb64.Save(ms, ImageFormat.Png);
|
||||
return ms.ToArray();
|
||||
}
|
||||
|
||||
public string GetPluginName()
|
||||
{
|
||||
return "CUETools DB Metadata Plugin V2.1.1";
|
||||
return "CUETools DB Metadata Plugin V2.1.2";
|
||||
}
|
||||
|
||||
public void ShowOptions()
|
||||
|
||||
14
CUETools.CTDB.EACPlugin/Options.Designer.cs
generated
14
CUETools.CTDB.EACPlugin/Options.Designer.cs
generated
@@ -39,15 +39,15 @@ namespace AudioDataPlugIn
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(147, 13);
|
||||
this.label1.Location = new System.Drawing.Point(95, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(139, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "CUETools DB Plugin V2.1.1";
|
||||
this.label1.Text = "CUETools DB Plugin V2.1.2";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(147, 67);
|
||||
this.label2.Location = new System.Drawing.Point(95, 67);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(230, 74);
|
||||
this.label2.TabIndex = 1;
|
||||
@@ -56,7 +56,7 @@ namespace AudioDataPlugIn
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(147, 36);
|
||||
this.linkLabel1.Location = new System.Drawing.Point(95, 36);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(164, 13);
|
||||
this.linkLabel1.TabIndex = 3;
|
||||
@@ -66,10 +66,10 @@ namespace AudioDataPlugIn
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = global::CUETools.CTDB.EACPlugin.Properties.Resources.ctdb1;
|
||||
this.pictureBox1.Image = global::CUETools.CTDB.EACPlugin.Properties.Resources.ctdb64;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(13, 13);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(128, 128);
|
||||
this.pictureBox1.Size = new System.Drawing.Size(64, 64);
|
||||
this.pictureBox1.TabIndex = 4;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
@@ -77,7 +77,7 @@ namespace AudioDataPlugIn
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(402, 158);
|
||||
this.ClientSize = new System.Drawing.Size(332, 158);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
this.Controls.Add(this.label2);
|
||||
|
||||
@@ -10,6 +10,7 @@ using CUETools.CDImage;
|
||||
using CUETools.AccurateRip;
|
||||
using CUETools.Codecs;
|
||||
using CUETools.CTDB;
|
||||
using CUETools.CTDB.EACPlugin;
|
||||
|
||||
namespace AudioDataPlugIn
|
||||
{
|
||||
@@ -53,7 +54,7 @@ namespace AudioDataPlugIn
|
||||
// the plugin and for display in the log file
|
||||
public string GetAudioTransferPluginName()
|
||||
{
|
||||
return "CUETools DB Plugin V2.1.1";
|
||||
return "CUETools DB Plugin V2.1.2";
|
||||
}
|
||||
|
||||
// Each plugin should have its own options page.
|
||||
@@ -119,7 +120,9 @@ namespace AudioDataPlugIn
|
||||
#if USEAR
|
||||
ar.ContactAccurateRip(ArId);
|
||||
#endif
|
||||
ctdb.ContactDB("EAC" + m_data.HostVersion + " CTDB 2.1.1", m_drivename, false, false);
|
||||
var form = new FormSubmitParity(ctdb, "EAC" + m_data.HostVersion + " CTDB 2.1.2", m_drivename);
|
||||
//ctdb.ContactDB("EAC" + m_data.HostVersion + " CTDB 2.1.2", m_drivename, false, false);
|
||||
form.ShowDialog();
|
||||
ctdb.Init(true, ar);
|
||||
this.sequence_ok = true;
|
||||
this.m_start_pos = 0;
|
||||
@@ -205,8 +208,8 @@ namespace AudioDataPlugIn
|
||||
return "";
|
||||
if (this.sequence_ok)
|
||||
{
|
||||
ctdb.DoVerify();
|
||||
ctdb.Submit(
|
||||
var form = new FormSubmitParity(
|
||||
ctdb,
|
||||
#if USEAR
|
||||
(int)ar.WorstConfidence() + 1,
|
||||
#else
|
||||
@@ -215,6 +218,7 @@ namespace AudioDataPlugIn
|
||||
(arTest.Position == 0 && this.is_secure_mode) || arTest.CRC32(0) == ar.CRC32(0) ? 100 : 0,
|
||||
m_data.AlbumArtist,
|
||||
m_data.AlbumTitle);
|
||||
form.ShowDialog();
|
||||
sw.WriteLine("[CTDB TOCID: {0}] {1}{2}.",
|
||||
TOC.TOCID,
|
||||
ctdb.DBStatus ?? "found",
|
||||
|
||||
@@ -67,9 +67,9 @@ namespace CUETools.CTDB.EACPlugin.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap ctdb1 {
|
||||
internal static System.Drawing.Bitmap ctdb64 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ctdb1", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("ctdb64", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<data name="ctdb" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\favicon.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ctdb1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ctdb.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ctdb64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ctdb64.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
CUETools.CTDB.EACPlugin/Resources/ctdb64.png
Normal file
BIN
CUETools.CTDB.EACPlugin/Resources/ctdb64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
Reference in New Issue
Block a user