Document legacy magnet handling in URL parsing

This commit is contained in:
thePR0M3TH3AN committed 2025-09-24 15:25:27 -04:00
1 parent 86928b8e8c
commit 532ce8e2d2
1 file changed
+2
+2
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);
}