Skip to content

Commit

Permalink
Fix absolute path for recording
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Jun 24, 2024
1 parent 1a42ba4 commit ded793f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/wyzebridge/mtx_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

RECORD_LENGTH = env_bool("RECORD_LENGTH", "60s")
RECORD_KEEP = env_bool("RECORD_KEEP", "0s")
rec_file = env_bool("RECORD_FILE_NAME", style="original")
rec_file = env_bool("RECORD_FILE_NAME", style="original").strip("/")
rec_path = env_bool("RECORD_PATH", "record/%path/%Y-%m-%d_%H-%M-%S", style="original")
RECORD_PATH = f"/{Path(rec_path, rec_file)}".removesuffix(".mp4")
RECORD_PATH = f"{Path('/') / Path(rec_path) / Path(rec_file)}".removesuffix(".mp4")


class MtxInterface:
Expand Down

0 comments on commit ded793f

Please sign in to comment.