Skip to content

Commit fc426c4

Browse files
committed
Also consider .ts as video file
1 parent 2094797 commit fc426c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ npm install
4646
- `node server.ts`
4747

4848
On the first start, it will create all database tables in postgresql and create the collection in milvus.
49-
On every start, it will scan the `VIDEO_PATH` for new video files (.mp4, .mkv, or .webm) and re-scan the `VIDEO_PATH` periodically (default: every 60 seconds, configurable via `SCAN_INTERVAL`, set to `0` or `Infinity` to disable).
49+
On every start, it will scan the `VIDEO_PATH` for new video files (.mp4, .mkv, .webm or .ts) and re-scan the `VIDEO_PATH` periodically (default: every 60 seconds, configurable via `SCAN_INTERVAL`, set to `0` or `Infinity` to disable).
5050

5151
### Run as systemd
5252

‎src/worker/task-manager.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class TaskManager {
3939
(e) =>
4040
e.isFile() &&
4141
path.relative(VIDEO_PATH, e.parentPath).match(/^\d+$/) &&
42-
[".webm", ".mkv", ".mp4"].includes(path.extname(e.name)),
42+
[".webm", ".mkv", ".mp4", ".ts"].includes(path.extname(e.name)),
4343
)
4444
.map((e) => path.join(path.relative(VIDEO_PATH, e.parentPath), e.name)),
4545
),

0 commit comments

Comments
 (0)