Commit 91ca8af
authored
feat: résolution Premium → Debrid → Free et plugins Real-Debrid / AllDebrid (MAT-142) (#183)
* feat(resolution): walk Premium → Debrid → Free before contacting a hoster
Link resolution used to pick the first plugin that claimed a URL. It now
walks the resolution tiers in the order set under Settings → Downloads and
records why each rung declined, so an exhausted cascade names every tier it
tried instead of failing as a bare "no source".
A hand-edited config can no longer disable a rung: an unknown tier fails the
load loudly, and a partial or duplicated list is normalised back to the full
three-tier order.
Refs MAT-142
* feat(registry): list vortex-mod-realdebrid and vortex-mod-alldebrid
Checksums come from each plugin's CI release SHA256SUMS, not a local build:
the WASM artefacts are not byte-reproducible off the runner.
Both entries require Vortex 0.3.0, the release that introduces the
Premium → Debrid → Free cascade. On an older host a debrid plugin is just
another URL claimant and would outrank the hoster plugin that owns the
domain.
Refs MAT-142
* fix(download): fall through to free when a debrid fails at download time
The link check picks a debrid while it is healthy and persists the module
and account, but resolution at download time only rotates within that
module and HosterNoFile is not rotatable. A quota spent since the check, a
hoster dropped from coverage, or an outage therefore left the download in
error instead of trying the next configured tier (MAT-142 R-04).
Only the free rung is retried, and only for Debrid modules. Premium is
deliberately not: any premium account for the hoster was already offered
this link at check time and lost to the debrid. CaptchaRequired stays
unwrapped so the engine can still answer the challenge; anything else
reports both reasons through ResolutionExhausted.
Also bounds resolution tier identifiers arriving over IPC, since the parse
error quotes what it rejected, and drops the per-call Vec allocation in
normalize_resolution_order.
* fix(download): only fall through to a hoster, never to a second debrid
resolve_url keeps debrid candidates and merely orders them last, so for a
URL no hoster claims the runner-up is another debrid. The same-module
guard let that through: the fall-through called it without credentials and
labelled the refusal "free", naming a rung that was never tried.
Requires PluginCategory::Hoster on the resolved plugin, so the debrid's own
error stands when no free rung covers the URL.1 parent e4f01c9 commit 91ca8af
28 files changed
Lines changed: 1335 additions & 35 deletions
File tree
- registry
- src-tauri/src
- adapters
- driven
- config
- plugin
- driving
- application/commands
- domain
- model
- ports/driven
- src
- components/__tests__
- hooks/__tests__
- i18n/locales
- layouts/__tests__
- stores/__tests__
- types
- views
- LinkGrabberView/__tests__
- SettingsView
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
29 | 47 | | |
30 | 48 | | |
31 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
| |||
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
275 | 291 | | |
276 | 292 | | |
277 | 293 | | |
| |||
296 | 312 | | |
297 | 313 | | |
298 | 314 | | |
| 315 | + | |
299 | 316 | | |
300 | 317 | | |
301 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
474 | 477 | | |
475 | 478 | | |
476 | 479 | | |
| |||
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
491 | 512 | | |
492 | 513 | | |
493 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1319 | 1322 | | |
1320 | 1323 | | |
1321 | 1324 | | |
| |||
1377 | 1380 | | |
1378 | 1381 | | |
1379 | 1382 | | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1380 | 1388 | | |
1381 | 1389 | | |
1382 | 1390 | | |
| |||
1402 | 1410 | | |
1403 | 1411 | | |
1404 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1405 | 1420 | | |
1406 | 1421 | | |
1407 | 1422 | | |
| |||
1438 | 1453 | | |
1439 | 1454 | | |
1440 | 1455 | | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
1441 | 1459 | | |
1442 | 1460 | | |
1443 | 1461 | | |
| |||
1488 | 1506 | | |
1489 | 1507 | | |
1490 | 1508 | | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
1491 | 1530 | | |
1492 | 1531 | | |
1493 | 1532 | | |
| |||
1510 | 1549 | | |
1511 | 1550 | | |
1512 | 1551 | | |
| 1552 | + | |
1513 | 1553 | | |
1514 | 1554 | | |
1515 | 1555 | | |
| |||
4979 | 5019 | | |
4980 | 5020 | | |
4981 | 5021 | | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
4982 | 5039 | | |
4983 | 5040 | | |
4984 | 5041 | | |
| |||
Lines changed: 79 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
70 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
0 commit comments