« get me outta code hell

make crawl-local accept some common video formats - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-03 21:30:13 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-03 21:30:13 -0300
commite01f3758f85e0dc0c81e3388103a84483548a228 (patch)
treecebf6a41964c60b1f86b8a4b8abcadecc9388a10
parent3d73a0da45cc8e13b5ac0f58f57683ab2d772838 (diff)
make crawl-local accept some common video formats
-rw-r--r--crawlers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawlers.js b/crawlers.js
index 1cbb036..e39dfa1 100644
--- a/crawlers.js
+++ b/crawlers.js
@@ -237,7 +237,8 @@ function getHTMLLinks(text) {
 
 function crawlLocal(dirPath, extensions = [
   'ogg', 'oga',
-  'wav', 'mp3', 'mp4', 'm4a', 'aac', 'flac', 'opus',
+  'wav', 'mp3', 'm4a', 'aac', 'flac', 'opus',
+  'mp4', 'mov', 'mkv',
   'mod'
 ], isTop = true) {
   // If the passed path is a file:// URL, try to decode it: