mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
homekit: fix error spam
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import sdk, { FFMpegInput, MediaObject, VideoClip, VideoClipOptions } from '@scrypted/sdk';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import mkdirp from 'mkdirp';
|
||||
|
||||
const { mediaManager } = sdk;
|
||||
export const VIDEO_CLIPS_NATIVE_ID = 'save-video-clips';
|
||||
@@ -63,6 +64,7 @@ export async function pruneClips(pruneAge: number, console: Console) {
|
||||
|
||||
export async function getSavePath() {
|
||||
const savePath = path.join(await mediaManager.getFilesPath(), 'hksv');
|
||||
mkdirp.sync(savePath);
|
||||
return savePath;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import { FFMpegFragmentedMP4Session, startFFMPegFragmentedMP4Session } from '@scrypted/common/src/ffmpeg-mp4-parser-session';
|
||||
import { parseFragmentedMP4 } from '@scrypted/common/src/stream-parser';
|
||||
import { parseFragmentedMP4 } from '@scrypted/common/src/ffmpeg-mp4-parser-session';
|
||||
import sdk, { AudioSensor, FFMpegInput, MediaStreamOptions, MotionSensor, ScryptedDevice, ScryptedInterface, ScryptedMimeTypes, VideoCamera } from '@scrypted/sdk';
|
||||
import net from 'net';
|
||||
import { Duplex, Writable } from 'stream';
|
||||
|
||||
Reference in New Issue
Block a user