fix(collector): restore direct DLC drag imports

Resolve dropped file paths through Electron webUtils, send dragged DLC containers directly to Downloads, and keep explicit collector imports bounded so metadata enrichment cannot leave the interface permanently busy.
This commit is contained in:
Sucukdeluxe
2026-08-22 20:17:58 +02:00
parent 340d6597cc
commit 2f031dc350
9 changed files with 128 additions and 12 deletions
+15
View File
@@ -100,6 +100,21 @@ describe("collector inspection", () => {
}));
});
it("returns visible unknown links when metadata analysis reaches its deadline", async () => {
const link = "https://1fichier.com/?slow123";
const result = await inspectCollectorText({ rawText: link, addedAt: 3200 }, defaultSettings(), {
checkOneFichier: async () => new Promise(() => {}),
inspectionTimeoutMs: 10
});
expect(result.packages).toHaveLength(1);
expect(result.packages[0].links).toEqual([expect.objectContaining({
url: link,
availability: "unknown",
status: "unknown"
})]);
});
it("resolves DDownload metadata before grouping without using a debrid account", async () => {
const link = "https://ddownload.com/ntwscdw62gyb";
let genericResolverCalls = 0;