mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-03-14 06:44:19 +00:00
Merge pull request #47 from PR0M3TH3AN/codex/update-videoeventutils.js-with-comments
Document legacy magnet handling in URL parsing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user