You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
688 B

import cron from 'node-cron'
const tasks = []
// uuid, schedule, source, requestHandler, actions, state
// start main cron to check for updates while running
//const main = cron.schedule('* * * * *', () => {
//})
//main.start()
import RssHandler from './requestHandlers/rssHandler.js'
const source = {
'name': 'Insert Moin',
'url': 'https://steadyhq.com/rss/insertmoin?auth=d37bffc9-9a84-4eed-95f6-3b6cb77c2406',
'actions': [{
'className': 'downloadPodcast',
'options': {
'destination': '/home/herrhase/Downloads'
}
}],
'last_run_at': '2022-01-16T23:01:00.000Z'
}
const rssHandler = new RssHandler(source)
rssHandler.send()