feat: move rewrite logic into swift

This commit is contained in:
Fredrik Burmester
2025-02-17 09:05:16 +01:00
parent b8bebfb272
commit fdbe4a024b
4 changed files with 254 additions and 30 deletions

View File

@@ -193,8 +193,8 @@ export const NativeDownloadProvider: React.FC<{
const completeListener = addCompleteListener(async (payload) => {
try {
await rewriteM3U8Files(payload.location);
await markFileAsDone(payload.id);
// await rewriteM3U8Files(payload.location);
// await markFileAsDone(payload.id);
setDownloads((prev) => {
const newDownloads = { ...prev };
@@ -261,7 +261,7 @@ export const NativeDownloadProvider: React.FC<{
}
}
};
checkForUnparsedDownloads();
// checkForUnparsedDownloads();
}, []);
const startDownload = async (