Files
streamyfin/providers/Downloads/index.ts
2025-11-11 08:53:23 +01:00

48 lines
1.2 KiB
TypeScript

// Database operations
// Additional downloads (trickplay, subtitles, cover images)
export {
downloadAdditionalAssets,
downloadCoverImage,
downloadSeriesImage,
downloadSubtitles,
downloadTrickplayImages,
fetchSegments,
} from "./additionalDownloads";
export {
addDownloadedItem,
clearAllDownloadedItems,
getAllDownloadedItems,
getDownloadedItemById,
getDownloadsDatabase,
removeDownloadedItem,
saveDownloadsDatabase,
} from "./database";
// File operations
export {
calculateTotalDownloadedSize,
deleteAllAssociatedFiles,
deleteVideoFile,
getDownloadedItemSize,
} from "./fileOperations";
// Hooks
export { useDownloadEventHandlers } from "./hooks/useDownloadEventHandlers";
export { useDownloadOperations } from "./hooks/useDownloadOperations";
// Notification helpers
export {
getNotificationContent,
sendDownloadNotification,
} from "./notifications";
// Types (re-export from existing types.ts)
export type {
DownloadedItem,
DownloadedSeason,
DownloadedSeries,
DownloadsDatabase,
JobStatus,
MediaTimeSegment,
TrickPlayData,
} from "./types";
// Utility functions
export { generateFilename, uriToFilePath } from "./utils";