Files
profilarr/src/lib/server/sync/index.ts
Sam Chau 1e8fc7a42d feat(sync): implement sync functionality for delay profiles
- Added syncArrJob to handle syncing of PCD profiles and settings to arr instances.
- Created syncArr logic to process pending syncs and log results.
- Introduced BaseSyncer class for common sync operations and specific syncers for delay profiles
- Implemented fetch, transform, and push methods for delay profiles
- Added manual sync actions in the UI for delay profiles
- Enhanced logging for sync operations and error handling.
2025-12-29 05:37:55 +10:30

19 lines
574 B
TypeScript

/**
* Sync module - handles syncing PCD profiles to arr instances
*
* Used by:
* - Sync job (automatic, triggered by should_sync flag)
* - Manual sync (Sync Now button)
*/
// Base class
export { BaseSyncer, type SyncResult } from './base.ts';
// Syncer implementations
export { QualityProfileSyncer } from './qualityProfiles.ts';
export { DelayProfileSyncer } from './delayProfiles.ts';
export { MediaManagementSyncer } from './mediaManagement.ts';
// Processor functions
export { processPendingSyncs, syncInstance, type ProcessSyncsResult } from './processor.ts';