mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 10:52:27 +00:00
Foundation for declaring more than one web seed per video so the WebTorrent swarm can pull pieces from an independent backup origin when the primary CDN is overloaded — multiple `ws=` params are the standard BEP19 carrier and the playback path already attaches every webseed it finds in the magnet. - magnetShared: add extractAllWebSeeds(), which returns every `ws=` URL (deduped, in order) instead of only the first like extractMagnetHints — so a magnet with several webseeds can be round-tripped without dropping the extras. - videoNotePayload: normalizeWebSeedList() accepts the ws field as an array OR a newline/comma-delimited string and feeds the full, deduped set into the magnet (plus the hosted CDN url, as before). A single ws string still works unchanged; the content `ws` field still reflects the primary seed. Upload/Edit UI to author and manage the list lands in slices 2 and 3. Mutation-verified (array-drop, split-drop, first-only, dedupe-loss all fail the new tests); build + full unit suite green. Co-Authored-By: Claude Opus 4.8 <[email protected]>