Browse Source

Fix optimize old videos script

Chocobozzz 4 years ago
parent
commit
51326912d6
2 changed files with 3 additions and 3 deletions
  1. 1 1
      scripts/optimize-old-videos.ts
  2. 2 2
      support/doc/plugins/guide.md

+ 1 - 1
scripts/optimize-old-videos.ts

@@ -61,7 +61,7 @@ async function run () {
         if (originalDuration === newDuration) {
         if (originalDuration === newDuration) {
           console.log('Finished optimizing %s', basename(currentFile))
           console.log('Finished optimizing %s', basename(currentFile))
           await remove(backupFile)
           await remove(backupFile)
-          return
+          continue
         }
         }
 
 
         console.log('Failed to optimize %s, restoring original', basename(currentFile))
         console.log('Failed to optimize %s, restoring original', basename(currentFile))

+ 2 - 2
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 :) 
   * 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. 
 This way, older PeerTube versions will still use your old plugin, and new PeerTube versions will use your updated plugin. 
 
 
 ### Spam/moderation plugin
 ### Spam/moderation plugin