mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 02:12:26 +00:00
Fix playback dataset handling for raw magnets
This commit is contained in:
1 parent
b617648136
commit
447aea3d4b
3 files changed
+20
-9
No files matched your search
+7
-1
@@ -419,7 +419,13 @@ class SubscriptionsManager {
|
||||
const interactiveEls = cardEl.querySelectorAll("[data-video-id]");
|
||||
interactiveEls.forEach((el) => {
|
||||
if (!el.dataset) return;
|
||||
el.dataset.playUrl = encodeURIComponent(playbackUrl || "");
|
||||
|
||||
if (trimmedUrl) {
|
||||
el.dataset.playUrl = encodeURIComponent(trimmedUrl);
|
||||
} else {
|
||||
delete el.dataset.playUrl;
|
||||
}
|
||||
|
||||
el.dataset.playMagnet = playbackMagnet || "";
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user