diff options
-rw-r--r-- | scripts/optimize-old-videos.ts | 2 | ||||
-rw-r--r-- | 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 () { | |||
61 | if (originalDuration === newDuration) { | 61 | if (originalDuration === newDuration) { |
62 | console.log('Finished optimizing %s', basename(currentFile)) | 62 | console.log('Finished optimizing %s', basename(currentFile)) |
63 | await remove(backupFile) | 63 | await remove(backupFile) |
64 | return | 64 | continue |
65 | } | 65 | } |
66 | 66 | ||
67 | console.log('Failed to optimize %s, restoring original', basename(currentFile)) | 67 | 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({ | |||
281 | } | 281 | } |
282 | }) | 282 | }) |
283 | ``` | 283 | ``` |
284 | * 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) | 284 | * 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) |
285 | * Don't use PeerTube dependencies. Use your own :) | 285 | * Don't use PeerTube dependencies. Use your own :) |
286 | 286 | ||
287 | If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` `package.json` field. | 287 | If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` field of your `package.json` field. |
288 | This way, older PeerTube versions will still use your old plugin, and new PeerTube versions will use your updated plugin. | 288 | This way, older PeerTube versions will still use your old plugin, and new PeerTube versions will use your updated plugin. |
289 | 289 | ||
290 | ### Spam/moderation plugin | 290 | ### Spam/moderation plugin |