release: publish v2.0.34 account recovery fixes

Add a manual Mega-Debrid cooldown reset that preserves active downloads while releasing affected queued work. Replace false per-account cooling for ambiguous Mega-Web session failures with one shared session backoff, attribute fallback failures to the provider actually attempted, and accept omitted optional renderer settings during provider changes. Expand regression coverage and stabilize archive integration checks under concurrent validation load.
This commit is contained in:
Sucukdeluxe
2026-08-13 22:06:11 +02:00
parent 4972858c9d
commit 4fe951de78
24 changed files with 503 additions and 64 deletions
+13 -2
View File
@@ -2914,7 +2914,7 @@ export function App(): ReactElement {
});
};
const onResetDebridLinkApiKeyDailyUsage = async (entry: ConfiguredAccountEntry, keyId: string, keyLabel: string): Promise<void> => {
const onResetDebridLinkApiKeyDailyUsage = async (entry: ConfiguredAccountEntry, keyId: string, keyLabel: string): Promise<void> => {
await performQuickAction(async () => {
const result = await window.rd.resetDebridLinkApiKeyDailyUsage(keyId);
syncLiveProviderUsageSettings(result);
@@ -3014,6 +3014,16 @@ export function App(): ReactElement {
});
};
const onResetMegaDebridCooldowns = async (): Promise<void> => {
await performQuickAction(async () => {
const result = await window.rd.resetMegaDebridCooldowns();
await reconcileAuthoritativeSnapshot();
showToast(result.cleared > 0 ? "Mega-Debrid-Cooldowns zurückgesetzt" : "Keine aktiven Mega-Debrid-Cooldowns.", 2400);
}, (error) => {
showToast(`Cooldown-Reset fehlgeschlagen: ${String(error)}`, 3200);
});
};
const getAccountToggleTarget = (row: AccountTableRow): AccountToggleTarget | null => {
if (row.toggleKind === "mega" && row.accountId) {
return {
@@ -5155,7 +5165,8 @@ export function App(): ReactElement {
: hosterId;
if (!resolvedHosterId || settingsDraft.hosterRouting?.[resolvedHosterId] || !configuredProviders[0]) return;
setHosterRouting({ ...(settingsDraft.hosterRouting || {}), [resolvedHosterId]: configuredProviders[0] });
}
},
onResetMegaDebridCooldowns: () => { void onResetMegaDebridCooldowns(); }
};
const settingsFormActions: SettingsViewActions["form"] = {
+1 -1
View File
@@ -49,7 +49,7 @@ const pairs = [
["Fertige Downloads und Konflikte", "Completed downloads and conflicts"], ["Fertige Downloads aus der Liste", "Completed downloads in the list"], ["Bei gleichnamigen Dateien", "When files have the same name"],
["Hinzufügen", "Add"], ["Aktualisieren", "Refresh"], [" Hinzufügen", " Add"], [" Entfernen", " Remove"], ["↻ Aktualisieren", "↻ Refresh"], ["Provider-Reihenfolge", "Provider order"], ["Lege fest, in welcher Reihenfolge verfügbare Provider verwendet werden.", "Choose the order in which available providers are used."],
["Automatischer Fallback", "Automatic fallback"], ["Zugangsdaten lokal speichern", "Store credentials locally"], ["Hoster-Routing", "Hoster routing"], ["Eigene Zuordnungen überschreiben für den jeweiligen Hoster die Standardreihenfolge.", "Custom assignments override the default order for each hoster."],
["Rotations-Verlauf", "Rotation history"], ["Sammlung", "Collection"], ["URL oder Rohzeile", "URL or raw line"], ["Zeile", "Line"], ["Paket / Datei", "Package / file"], ["Größe", "Size"], ["Gestartet", "Started"], ["Beendet", "Finished"],
["Rotations-Verlauf", "Rotation history"], ["Cooldowns zurücksetzen", "Reset cooldowns"], ["Keine aktiven Mega-Debrid-Cooldowns.", "No active Mega-Debrid cooldowns."], ["Mega-Debrid-Cooldowns zurückgesetzt", "Mega-Debrid cooldowns reset"], ["Cooldown-Reset fehlgeschlagen: ", "Cooldown reset failed: "], ["Sammlung", "Collection"], ["URL oder Rohzeile", "URL or raw line"], ["Zeile", "Line"], ["Paket / Datei", "Package / file"], ["Größe", "Size"], ["Gestartet", "Started"], ["Beendet", "Finished"],
["Alle Einträge", "All entries"], ["Heute", "Today"], ["Letzte 7 Tage", "Last 7 days"], ["Älter", "Older"], ["Gelöscht", "Deleted"], ["Fehlgeschlagen", "Failed"],
["Dauer", "Duration"], ["Durchschnitt", "Average"], ["Zielordner", "Destination folder"], ["Verlaufsfilter", "History filters"], ["Verlauf leeren", "Clear history"], ["Verlaufsaktionen", "History actions"],
["Einträge", "Entries"], ["Erneut hinzufügen", "Add again"], ["Im Ordner zeigen", "Show in folder"], ["Auswahl löschen", "Clear selection"], ["Gesamtverlauf löschen", "Delete all history"], ["Verlauf durchsuchen", "Search history"], ["Name, Pfad, Hoster oder Provider", "Name, path, hoster or provider"],
@@ -86,7 +86,8 @@ export interface AccountWorkspaceActions {
onToggleRememberCredentials?: (enabled: boolean) => void;
onRoutingProviderChange?: (hosterId: string, provider: string) => void;
onRoutingRemove?: (hosterId: string) => void;
onRoutingAdd?: (hosterId: string) => void;
onRoutingAdd?: (hosterId: string) => void;
onResetMegaDebridCooldowns?: () => void;
}
export interface AccountWorkspaceProps {
@@ -412,9 +413,17 @@ function AccountRules({ model, actions }: AccountWorkspaceProps): ReactElement {
</ul>
)}
</section>
{model.rules.rotationEvents ? (
<section className="settings-rule-section">
<h3>Rotations-Verlauf</h3>
{model.rules.rotationEvents ? (
<section className="settings-rule-section">
<div className="settings-rule-section-heading">
<h3>Rotations-Verlauf</h3>
<button
className="settings-button settings-button-secondary"
disabled={model.busy || !actions.onResetMegaDebridCooldowns}
onClick={actions.onResetMegaDebridCooldowns}
type="button"
>Cooldowns zurücksetzen</button>
</div>
{model.rules.rotationEvents.length === 0 ? (
<span className="settings-rule-empty">Noch keine Rotations-Ereignisse.</span>
) : model.rules.rotationEvents.map((event) => (
+7
View File
@@ -782,6 +782,13 @@
border-bottom: 1px solid var(--ui-border);
}
.settings-rule-section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.settings-provider-order,
.settings-routing-list {
display: grid;