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());
|
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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue