Add lazy piano transcription and optional leased server worker
This commit is contained in:
@@ -47,6 +47,7 @@ import * as notesDb from './db.js';
|
||||
import { registerNoteRoutes, parseLrc, sanitizeLyrics } from './notes.js';
|
||||
import { createRemoteHub } from './remote.js';
|
||||
import { createPartyHub } from './party.js';
|
||||
import { registerPianoRoutes } from './piano.js';
|
||||
import { registerUploadRoutes } from './uploads.js';
|
||||
import { admitFile } from './p2p-admit.js';
|
||||
import { P2P } from './p2p-config.js';
|
||||
@@ -2338,6 +2339,8 @@ const notes = registerNoteRoutes(app, {
|
||||
// ============================================================================
|
||||
// Uploads — the server's own searchable media library (see uploads.js)
|
||||
// ============================================================================
|
||||
registerPianoRoutes(app, { db: notesDb, adminAuth: notes.adminAuth, enabled: process.env.PIANO_WORKER_ENABLED === '1', workerToken: process.env.PIANO_WORKER_TOKEN || '' });
|
||||
|
||||
const UPLOAD_DIR = process.env.UPLOAD_DIR || pathJoin(dirname(process.env.DB_PATH || './data/ytplayer.db'), 'uploads');
|
||||
const uploads = registerUploadRoutes(app, {
|
||||
db: notesDb,
|
||||
|
||||
Reference in New Issue
Block a user