mirror of
https://github.com/onyx-and-iris/simple-recorder.git
synced 2026-04-20 16:23:34 +00:00
Compare commits
5 Commits
v0.1.2
...
eecd51e0ca
| Author | SHA1 | Date | |
|---|---|---|---|
| eecd51e0ca | |||
| 57f2e9deff | |||
| ca7c60f0e4 | |||
| c1055408fb | |||
| b22f6f6f95 |
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -3,6 +3,9 @@ name: Release
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pypi-publish:
|
pypi-publish:
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -58,6 +58,16 @@ Without passing a subcommand (start/stop) a GUI will be launched, otherwise a CL
|
|||||||
|
|
||||||
Just enter the filename and click *Start Recording*.
|
Just enter the filename and click *Start Recording*.
|
||||||
|
|
||||||
|
#### Themes
|
||||||
|
|
||||||
|
Load the GUI with different themes:
|
||||||
|
|
||||||
|
```console
|
||||||
|
simple-recorder --theme="Light Purple"
|
||||||
|
```
|
||||||
|
|
||||||
|
Available themes: Light Purple, Neutral Blue, Reds, Sandy Beach, Kayak, Light Blue 2, Dark Teal1
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "simple-recorder"
|
name = "simple-recorder"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
description = "A simple OBS recorder"
|
description = "A simple OBS recorder"
|
||||||
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ class Start(Command):
|
|||||||
@override
|
@override
|
||||||
async def run(self):
|
async def run(self):
|
||||||
if not self.filename:
|
if not self.filename:
|
||||||
raise ClypiException(error("Recording name cannot be empty."))
|
raise ClypiException("Recording name cannot be empty.")
|
||||||
|
|
||||||
with obsws.ReqClient(
|
with obsws.ReqClient(
|
||||||
host=self.host, port=self.port, password=self.password
|
host=self.host, port=self.port, password=self.password
|
||||||
) as client:
|
) as client:
|
||||||
resp = client.get_record_status()
|
resp = client.get_record_status()
|
||||||
if resp.output_active:
|
if resp.output_active:
|
||||||
raise ClypiException(error("Recording is already active."))
|
raise ClypiException("Recording is already active.")
|
||||||
|
|
||||||
filename = f"{self.filename} {self.get_timestamp()}"
|
filename = f"{self.filename} {self.get_timestamp()}"
|
||||||
client.set_profile_parameter(
|
client.set_profile_parameter(
|
||||||
@@ -70,7 +70,7 @@ class Stop(Command):
|
|||||||
) as client:
|
) as client:
|
||||||
resp = client.get_record_status()
|
resp = client.get_record_status()
|
||||||
if not resp.output_active:
|
if not resp.output_active:
|
||||||
raise ClypiException(error("Recording is not active."))
|
raise ClypiException("Recording is not active.")
|
||||||
|
|
||||||
client.stop_record()
|
client.stop_record()
|
||||||
print("Recording stopped successfully.")
|
print("Recording stopped successfully.")
|
||||||
|
|||||||
Reference in New Issue
Block a user