mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-03-13 08:58:27 +00:00
fix: implement all CodeRabbit review comments (#8)
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import annotations
|
||||
import argparse
|
||||
import hashlib
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from datetime import datetime, timedelta
|
||||
@@ -240,7 +239,10 @@ class AeonViewVideos:
|
||||
|
||||
if not self.simulate:
|
||||
logging.info("Running ffmpeg command: %s", " ".join(ffmpeg_cmd))
|
||||
if not os.path.exists(output_dir):
|
||||
if not input_dir.exists():
|
||||
logging.error("Input directory %s does not exist", input_dir)
|
||||
sys.exit(1)
|
||||
if not output_dir.exists():
|
||||
AeonViewHelpers.mkdir_p(output_dir)
|
||||
subprocess.run(ffmpeg_cmd, check=True)
|
||||
logging.info(
|
||||
@@ -481,7 +483,7 @@ class AeonViewApp:
|
||||
self.base_path, self.args.project
|
||||
)
|
||||
|
||||
if not os.path.exists(project_path):
|
||||
if not project_path.exists():
|
||||
logging.error("Project path %s does not exist.", project_path)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user