aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-24 09:34:06 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit51326912d61b05a33dd9cf3ca9befa6e2715b346 (patch)
treebe7d0abb6e4da038e47146cc8107980c51382fd8
parent24163420dd43e3429976c8518d1752832ba910a4 (diff)
downloadPeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.tar.gz
PeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.tar.zst
PeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.zip
Fix optimize old videos script
-rw-r--r--scripts/optimize-old-videos.ts2
-rw-r--r--support/doc/plugins/guide.md4
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
287If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` `package.json` field. 287If your plugin is broken with a new PeerTube release, update your code and the `peertubeEngine` field of your `package.json` field.
288This way, older PeerTube versions will still use your old plugin, and new PeerTube versions will use your updated plugin. 288This 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