mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-02 03:58:36 +01:00
chore: removed code
This commit is contained in:
@@ -3,7 +3,6 @@ import {
|
||||
addCompleteListener,
|
||||
addErrorListener,
|
||||
addProgressListener,
|
||||
checkForExistingDownloads,
|
||||
downloadHLSAsset,
|
||||
cancelDownload,
|
||||
} from "@/modules/hls-downloader";
|
||||
@@ -145,29 +144,6 @@ export const NativeDownloadProvider: React.FC<{
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
// const initializeDownloads = async () => {
|
||||
// const hlsDownloads = await checkForExistingDownloads();
|
||||
// const hlsDownloadStates = hlsDownloads.reduce(
|
||||
// (acc, download) => ({
|
||||
// ...acc,
|
||||
// [download.id]: {
|
||||
// id: download.id,
|
||||
// progress: download.progress,
|
||||
// state: download.state,
|
||||
// secondsDownloaded: download.secondsDownloaded,
|
||||
// secondsTotal: download.secondsTotal,
|
||||
// metadata: download.metadata,
|
||||
// startTime: download?.startTime,
|
||||
// },
|
||||
// }),
|
||||
// {}
|
||||
// );
|
||||
|
||||
// setDownloads({ ...hlsDownloadStates });
|
||||
// };
|
||||
|
||||
// initializeDownloads();
|
||||
|
||||
const progressListener = addProgressListener((download) => {
|
||||
if (!download.metadata) throw new Error("No metadata found in download");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user