Merge pull request #47 from PR0M3TH3AN/codex/update-videoeventutils.js-with-comments

Document legacy magnet handling in URL parsing
This commit is contained in:
thePR0M3TH3AN
2025-09-24 15:25:47 -04:00
committed by GitHub

View File

@@ -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);
}