always refetch events, incase of schedule changes
Some checks failed
Build Docker Image / docker (push) Has been cancelled
Test / test (push) Has been cancelled

This commit is contained in:
Lillith Rose (Device: Lucia) 2025-06-08 14:50:38 -04:00
parent 1b4140ece2
commit a1a7f664e9

View file

@ -23,7 +23,7 @@ async function runCommand(event: Event) {
console.log(process.cwd());
command.save(`./output/${filename}.mkv`);
await new Promise<void>((res) => {
command.on("start", console.log);
// command.on("start", console.log);
command.on("error", (err) => {
throw err;
});
@ -36,8 +36,8 @@ async function runCommand(event: Event) {
}
async function main() {
await loadEvents();
while (true) {
await loadEvents();
// find next
const event = getCurrentEvent();
if (!event?.name) {