diff --git a/.gitignore b/.gitignore index 9df55a7c..37244a86 100644 --- a/.gitignore +++ b/.gitignore @@ -214,6 +214,7 @@ $RECYCLE.BIN/ *.msp # IFME build files. +*.exe build installer/*.mp3 installer/*.dll diff --git a/ifme/Program.cs b/ifme/Program.cs index 3ac16bb8..31222af2 100644 --- a/ifme/Program.cs +++ b/ifme/Program.cs @@ -325,6 +325,13 @@ static int EncodingStart(string queueFile, bool force) { id++; + // Only file exist get encoded + if (File.Exists(item.Data.File)) + { + id++; + continue; + } + // Only checked list get encoded if (!item.IsEnable) { diff --git a/ifme/frmMain.cs b/ifme/frmMain.cs index 9cf97a77..d51701d5 100644 --- a/ifme/frmMain.cs +++ b/ifme/frmMain.cs @@ -1666,6 +1666,13 @@ private void bgwEncoding_DoWork(object sender, DoWorkEventArgs e) { id++; + // Only file exist get encoded + if (File.Exists(item.Data.File)) + { + id++; + continue; + } + // Only checked list get encoded if (!item.IsEnable) { @@ -1673,15 +1680,15 @@ private void bgwEncoding_DoWork(object sender, DoWorkEventArgs e) continue; } + // Remove temp file + MediaEncoder.CleanUp(); + // Time current queue var SessionCurrent = DateTime.Now; // Log current queue InvokeLog("Processing: " + item.Data.File); - // Remove temp file - MediaEncoder.CleanUp(); - // AviSynth aware string file = item.Data.File; string filereal = GetStream.AviSynthGetFile(file); @@ -1758,7 +1765,7 @@ private void bgwEncoding_RunWorkerCompleted(object sender, RunWorkerCompletedEve } else { - if (Properties.Settings.Default.SoundFinish) + if (Default.SoundFinish) { SoundPlayer notification = new SoundPlayer(Global.Sounds.Finish); notification.Play();