3 Commits

Author SHA1 Message Date
ca7c60f0e4 add tag trigger to Release 2025-06-25 18:40:30 +01:00
c1055408fb fixes double colouring bug
patch bump
2025-06-25 18:29:24 +01:00
b22f6f6f95 add created trigger to Release action 2025-06-25 18:18:57 +01:00
3 changed files with 8 additions and 5 deletions

View File

@@ -2,7 +2,10 @@ name: Release
on:
release:
types: [published]
types: [created, published]
push:
tags:
- 'v*.*.*'
jobs:
pypi-publish:

View File

@@ -1,6 +1,6 @@
[project]
name = "simple-recorder"
version = "0.1.2"
version = "0.1.3"
description = "A simple OBS recorder"
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
dependencies = [

View File

@@ -37,14 +37,14 @@ class Start(Command):
@override
async def run(self):
if not self.filename:
raise ClypiException(error("Recording name cannot be empty."))
raise ClypiException("Recording name cannot be empty.")
with obsws.ReqClient(
host=self.host, port=self.port, password=self.password
) as client:
resp = client.get_record_status()
if resp.output_active:
raise ClypiException(error("Recording is already active."))
raise ClypiException("Recording is already active.")
filename = f"{self.filename} {self.get_timestamp()}"
client.set_profile_parameter(
@@ -70,7 +70,7 @@ class Stop(Command):
) as client:
resp = client.get_record_status()
if not resp.output_active:
raise ClypiException(error("Recording is not active."))
raise ClypiException("Recording is not active.")
client.stop_record()
print("Recording stopped successfully.")