diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-02-07 15:29:14 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-02-07 15:29:14 -0400 |
commit | 3e06706faee9d509e9d377f39634af1c21de198e (patch) | |
tree | a37753908e953f288e92b9987484bd47ece58d26 /upd8.js | |
parent | 1322f423ffcb76ce532ce584b138d648d6b0df95 (diff) |
only generate commentary index if any exists
Diffstat (limited to 'upd8.js')
-rwxr-xr-x | upd8.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/upd8.js b/upd8.js index 130f6067..e53da22f 100755 --- a/upd8.js +++ b/upd8.js @@ -3197,6 +3197,10 @@ function getWordCount(str) { } function writeCommentaryPages() { + if (!filterAlbumsByCommentary().length) { + return; + } + return progressPromiseAll('Writing commentary pages.', queue([ writeCommentaryIndex, ...filterAlbumsByCommentary().map(curry(writeAlbumCommentaryPage)) |