REMOVE unused imports and PATCH broken clip function signature
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from datetime import datetime
|
|
||||||
from rewind.video import clip
|
from rewind.video import clip
|
||||||
import obsws_python as obs
|
|
||||||
import sys, argparse
|
import sys, argparse
|
||||||
|
|
||||||
def build_parser() -> argparse.ArgumentParser:
|
def build_parser() -> argparse.ArgumentParser:
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ def combine_last_x_ts_files(seconds: float, output_file: str) -> None:
|
|||||||
|
|
||||||
os.remove("file_list.txt")
|
os.remove("file_list.txt")
|
||||||
|
|
||||||
def clip(seconds_from_end: float, output_file: str) -> None:
|
def clip(seconds_from_end: float) -> None:
|
||||||
output_file_name = f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}.mp4"
|
output_file_name = f"{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}.mp4"
|
||||||
combine_last_x_ts_files(seconds_from_end, output_file_name)
|
combine_last_x_ts_files(seconds_from_end, output_file_name)
|
||||||
print(f"Created clip: {output_file_name}")
|
print(f"Created clip: {output_file_name}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user