fffleet-worker 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/worker.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fffleet-worker",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "fffleet worker daemon: runs ffmpeg jobs and serves the fffleet job API",
5
5
  "type": "module",
6
6
  "main": "./src/worker.js",
@@ -21,7 +21,7 @@
21
21
  "test": "node --test test/*.test.js"
22
22
  },
23
23
  "dependencies": {
24
- "fffleet": "^2.1.1"
24
+ "fffleet": "^2.2.0"
25
25
  },
26
26
  "keywords": [
27
27
  "ffmpeg",
package/src/worker.js CHANGED
@@ -147,8 +147,8 @@ export function createWorker({
147
147
  },
148
148
 
149
149
  async start() {
150
- // type:ffmpeg comes from detection, so a machine without ffmpeg does not claim it.
151
- const types = Object.keys(manager.executors).filter(t => t !== 'ffmpeg').map(t => `type:${t}`);
150
+ // type:ffmpeg and type:ffprobe come from detection, so a machine without ffmpeg does not claim it.
151
+ const types = Object.keys(manager.executors).filter(t => t !== 'ffmpeg' && t !== 'ffprobe').map(t => `type:${t}`);
152
152
  const schemes = manager.s3 ? ['scheme:s3'] : [];
153
153
  capabilities = [...new Set([...(await detectCapabilities(ffmpegPath)), ...types, ...schemes, ...extraCapabilities])].sort();
154
154
  ({ server, url } = await listen(createApiHandler({ backend, authenticate, metrics: () => registry.render() }), { port, host }));