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