fix: update paths and workflow (#5)

This commit is contained in:
2025-07-15 16:45:18 +03:00
committed by GitHub
parent c47ad984a6
commit 2ca1e69e35
4 changed files with 15 additions and 8 deletions

View File

@@ -227,7 +227,7 @@ class AeonViewVideos:
year_month = f"{self.year}-{self.month}"
input_dir = AeonViewHelpers.build_path(
self.path_videos, year_month, self.day
self.path_images, year_month, self.day
)
output_dir = AeonViewHelpers.build_path(self.path_videos, year_month)
output_file = AeonViewHelpers.build_path(output_dir, f"{self.day}.mp4")
@@ -240,7 +240,7 @@ class AeonViewVideos:
if not self.simulate:
logging.info("Running ffmpeg command: %s", " ".join(ffmpeg_cmd))
if not os.path.exists(input_dir):
if not os.path.exists(output_dir):
AeonViewHelpers.mkdir_p(output_dir)
subprocess.run(ffmpeg_cmd, check=True)
logging.info(