format top-level imports to be in order of length & remove unnecessary print statements

This commit is contained in:
2025-12-18 22:38:37 +00:00
parent 766ce08e0d
commit 661d29997d
3 changed files with 5 additions and 4 deletions

View File

@@ -63,9 +63,8 @@ def clip(seconds_from_end: float) -> None:
start_timestamp,
end_timestamp
)
print(f"files: {files}, start_offset: {start_offset}, end_offset: {end_offset}")
concat_ts_files(files, start_offset, end_offset, length, output_file_name)
concat_ts_files(files, start_offset, end_offset, length, output_file_name)
print(f"Created clip: {output_file_name}")
def save(first_marker: str, second_marker: str):
@@ -82,7 +81,7 @@ def save(first_marker: str, second_marker: str):
)
concat_ts_files(files, start_offset, end_offset, second_timestamp - first_timestamp, output_file_name)
print(f"Created file: {output_file_name}")
print(f"Created video file: {output_file_name}")
def mark(name: str) -> None:
if not name:
@@ -103,6 +102,7 @@ def mark(name: str) -> None:
with open(markers_file, "w") as f:
json.dump(markers, f, indent=4)
print(f"Added marker: {name}")
def get_marker_timestamp(name: str) -> float:

View File

@@ -6,9 +6,9 @@ import time
import obsws_python as obs
import subprocess
from rewind.paths import load_state, write_state, load_config
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
from rewind.paths import load_state, write_state, load_config
INTERVAL = 10
running = True

View File

@@ -2,6 +2,7 @@
import os
import json
import tomllib
from pathlib import Path
from importlib import resources