diff --git a/files/helpers.py b/files/helpers.py index 6fa0004a..d7110e36 100644 --- a/files/helpers.py +++ b/files/helpers.py @@ -820,7 +820,7 @@ def seconds_to_timestamp(seconds): seconds_int = int(seconds_remainder) milliseconds = int((seconds_remainder - seconds_int) * 1000) - return f"{hours:02d}:{minutes:02d}:{seconds_int:02d}.{milliseconds:03d}" + return f"{hours:02d}:{minutes:02d}:{seconds_int:02d}.{milliseconds:03d}" # noqa def get_trim_timestamps(media_file_path, timestamps_list, run_ffprobe=False): diff --git a/files/tasks.py b/files/tasks.py index 45f8bc0f..6ae3d19d 100644 --- a/files/tasks.py +++ b/files/tasks.py @@ -912,7 +912,7 @@ def produce_video_chapters(chapter_id): timestamp = chapter["start"] title = chapter["title"] - output_filename = f"thumbnail_{i:02d}.jpg" + output_filename = f"thumbnail_{i:02d}.jpg" # noqa output_path = os.path.join(output_folder, output_filename) command = [settings.FFMPEG_COMMAND, "-y", "-ss", str(timestamp), "-i", video_path, "-vframes", "1", "-q:v", "2", "-s", f"{width}x{height}", output_path]