Skip to content

Commit

Permalink
Don't automatically remove Queue Item if Output doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Feb 18, 2023
1 parent 3297e42 commit d0f04ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NotEnoughAV1Encodes/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,12 @@ private async Task MainStartAsync(CancellationToken _cancelToken)
if (queueElement == null) continue;
// Skip Item if there was some error during encoding / muxing
if (queueElement.Error == true) continue;
// Check if Outfile exists
if (!File.Exists(queueElement.VideoDB.OutputPath)) continue;
// Check Outfilesize
FileInfo videoOutput = new(queueElement.VideoDB.OutputPath);
if (videoOutput.Length <= 50000) continue;

queueItems.Add(queueElement);
}
foreach(Queue.QueueElement queueElement in queueItems)
Expand Down

0 comments on commit d0f04ae

Please sign in to comment.