feat: media library scanner + full library search

BREAKING CHANGE:

A massive paradigm shift in the way libraries and media are accessed
within Tunarr.
This commit is contained in:
Christian Benincasa
2025-02-12 13:24:14 -05:00
parent 87736c9870
commit 0f1a1ce820
324 changed files with 33369 additions and 9715 deletions

View File

@@ -2,6 +2,7 @@ import { FfmpegStreamFactory } from '@/ffmpeg/FfmpegStreamFactory.js';
import { MpegTsOutputFormat } from '@/ffmpeg/builder/constants.js';
import { FfprobeStreamDetails } from '@/stream/FfprobeStreamDetails.js';
import type { RouterPluginAsyncCallback } from '@/types/serverType.js';
import { tag } from '@tunarr/types';
import dayjs from 'dayjs';
import { z } from 'zod/v4';
import { container } from '../../container.ts';
@@ -92,7 +93,7 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
streamDuration: +dayjs.duration({ seconds: 30 }),
externalKey: 'none',
externalSource: 'emby',
externalSourceId: 'none',
externalSourceId: tag('none'),
programBeginMs: 0,
programId: '',
programType: 'movie',
@@ -115,7 +116,7 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
return res.status(500).send();
}
const server = await req.serverCtx.mediaSourceDB.getByName(
const server = await req.serverCtx.mediaSourceDB.getById(
item.externalSourceId,
);