mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-29 00:42:30 +00:00
Fix profile state adapter and magnet fallback input
This commit is contained in:
1 parent
e7939f52c1
commit
38f70b666d
1 file changed
+11
-2
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user