Fix profile state adapter and magnet fallback input

This commit is contained in:
thePR0M3TH3AN committed 2025-10-06 22:12:12 -04:00
1 parent e7939f52c1
commit 38f70b666d
1 file changed
+11 -2
+11 -2
View File
@@ -3505,7 +3505,9 @@ class Application {
persistSavedProfiles: (options) => persistSavedProfiles(options),
getActivePubkey: () => this.activeProfilePubkey,
setActivePubkey: (pubkey, options) => {
setStoredActiveProfilePubkey(pubkey, options);
this.activeProfilePubkey =
typeof pubkey === "string" && pubkey.trim() ? pubkey.trim() : null;
setStoredActiveProfilePubkey(this.activeProfilePubkey, options);
return this.activeProfilePubkey;
},
getCachedSelection: () => cache.cachedSelection,
@@ -9205,9 +9207,16 @@ class Application {
});
}
const magnetInput =
sanitizedMagnet ||
decodedMagnetCandidate ||
magnetCandidate ||
legacyInfoHash ||
"";
await this.playVideoWithFallback({
url: trimmedUrl,
magnet: usableMagnetCandidate,
magnet: magnetInput,
});
}