always refetch events, incase of schedule changes
This commit is contained in:
parent
1b4140ece2
commit
a1a7f664e9
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue