Potential fix for issuu#20

Checks for zero length files and skips processing them.
This commit is contained in:
Mike Evans 2023-10-09 11:27:02 +01:00
parent 14aefafe14
commit 9b04049fbe

View File

@ -119,6 +119,9 @@ def detect(
error_files = []
for index, audio_file in enumerate(files):
try:
if not os.path.getsize(audio_file):
click.echo(f"\n{index} {audio_file} is empty! Skipping.")
continue
if not args["quiet"]:
click.echo(f"\n{index} {audio_file}")