insanity54 / video-website

Input: directory of videos. Output: static HTML website which lists videos in an RSS feed
The Unlicense
0 stars 0 forks source link

voddo is not js #4

Closed insanity54 closed 3 years ago

insanity54 commented 3 years ago

It would be nice if I could do this

  voddo
    .watch('https://chaturbate.com/projektmelody/')
    .on('complete', (path) => {
      debug('The livestream has completed.')
      doProcessVideo(path);
    })

instead of

  chokidar.watch(VIDEO_DIRECTORY).on('all', (event, path) => {
    if (event === 'unlink' && videoPartRegex.test(path)) {
      debug(`unlink ${path}`)
      // a video .mp4.part file was just unlinked which suggests that the video recording just finished.
      doProcessVideo(path);
    }
  });
insanity54 commented 3 years ago

dunzo