From 532ce8e2d2a118603bd2661004218335a0cbfc97 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:25:27 -0400 Subject: [PATCH] Document legacy magnet handling in URL parsing --- js/videoEventUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/videoEventUtils.js b/js/videoEventUtils.js index a9ac597c..bfca5107 100644 --- a/js/videoEventUtils.js +++ b/js/videoEventUtils.js @@ -191,8 +191,10 @@ export function parseVideoEventPayload(event = {}) { if (typeof parsedContent.url === "string") { const parsedUrl = parsedContent.url.trim(); if (parsedUrl && parsedUrl !== thumbnail) { + // Keep this guard so we don't duplicate thumbnail URLs in the playable URL list. pushUnique(urlCandidates, parsedUrl); } + // Legacy Bitvid events sometimes embedded magnets/info-hashes in the URL field, so treat it accordingly. collectMagnetOrInfoHash(parsedUrl); }