homekit: fix error spam

This commit is contained in:
Koushik Dutta
2022-04-03 20:18:56 -07:00
parent fb620c0b41
commit 968be48899
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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';