From 51326912d61b05a33dd9cf3ca9befa6e2715b346 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jul 2019 09:34:06 +0200 Subject: Fix optimize old videos script --- scripts/optimize-old-videos.ts | 2 +- support/doc/plugins/guide.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/optimize-old-videos.ts b/scripts/optimize-old-videos.ts index 2c80f16bc..0b0e6037e 100644 --- a/scripts/optimize-old-videos.ts +++ b/scripts/optimize-old-videos.ts @@ -61,7 +61,7 @@ async function run () { if (originalDuration === newDuration) { console.log('Finished optimizing %s', basename(currentFile)) await remove(backupFile) - return + continue } console.log('Failed to optimize %s, restoring original', basename(currentFile)) diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index 85e5f1e7d..252cbc2e2 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md @@ -281,10 +281,10 @@ registerHook({ } }) ``` - * Don't try to require parent PeerTube modules, only use `peertubeHelpers`. If you need another helper or a specific, please [create an issue](https://github.com/Chocobozzz/PeerTube/issues/new) + * Don't try to require parent PeerTube modules, only use `peertubeHelpers`. If you need another helper or a specific hook, please [create an issue](https://github.com/Chocobozzz/PeerTube/issues/new) * Don't use PeerTube dependencies. Use your own :) -If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` `package.json` field. +If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` field of your `package.json` field. This way, older PeerTube versions will still use your old plugin, and new PeerTube versions will use your updated plugin. ### Spam/moderation plugin -- cgit v1.2.3