format top-level imports to be in order of length & remove unnecessary print statements
This commit is contained in:
@@ -63,9 +63,8 @@ def clip(seconds_from_end: float) -> None:
|
|||||||
start_timestamp,
|
start_timestamp,
|
||||||
end_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}")
|
print(f"Created clip: {output_file_name}")
|
||||||
|
|
||||||
def save(first_marker: str, second_marker: str):
|
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)
|
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:
|
def mark(name: str) -> None:
|
||||||
if not name:
|
if not name:
|
||||||
@@ -103,6 +102,7 @@ def mark(name: str) -> None:
|
|||||||
|
|
||||||
with open(markers_file, "w") as f:
|
with open(markers_file, "w") as f:
|
||||||
json.dump(markers, f, indent=4)
|
json.dump(markers, f, indent=4)
|
||||||
|
|
||||||
print(f"Added marker: {name}")
|
print(f"Added marker: {name}")
|
||||||
|
|
||||||
def get_marker_timestamp(name: str) -> float:
|
def get_marker_timestamp(name: str) -> float:
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import time
|
|||||||
import obsws_python as obs
|
import obsws_python as obs
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from rewind.paths import load_state, write_state, load_config
|
|
||||||
from watchdog.observers import Observer
|
from watchdog.observers import Observer
|
||||||
from watchdog.events import FileSystemEventHandler
|
from watchdog.events import FileSystemEventHandler
|
||||||
|
from rewind.paths import load_state, write_state, load_config
|
||||||
|
|
||||||
INTERVAL = 10
|
INTERVAL = 10
|
||||||
running = True
|
running = True
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import tomllib
|
import tomllib
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from importlib import resources
|
from importlib import resources
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user