mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(webtorrent): correct webseed handling, health checks, and linting exclusions
Reverts `js/webtorrent.js` and `js/gridHealth.js` to a simplified implementation that correctly treats webseeds as peers. This ensures that videos with only webseeds (and 0 P2P peers) are considered healthy and playable, resolving an issue where such videos were marked as unhealthy or failed to stream.
- Updates `js/webtorrent.js` to use `client.add(url, { urlList: [...] })` for better webseed integration.
- Updates `js/gridHealth.js` to rely on `peers > 0` for health, removing complex `webseedOnly` logic.
- Updates `tests/webtorrent-regression.test.mjs` to verify that webseeds are counted as peers and result in a healthy state with reason "peer".
- Excludes `bitvid-working-webtorrent/**` from all linting scripts (`scripts/check-hex.js`, `scripts/check-design-tokens.mjs`, `scripts/check-inline-styles.mjs`, `scripts/check-tailwind-colors.mjs`, `stylelint.config.cjs`) to prevent CI failures from reference code.
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
3859d8f60f
commit
13ac53f4b9
5 files changed
+6
-4
No files matched your search
@@ -26,6 +26,7 @@ const IGNORED_DIRS = new Set([
|
||||
"logs",
|
||||
"playwright-report",
|
||||
"test-results",
|
||||
"bitvid-working-webtorrent",
|
||||
]);
|
||||
|
||||
const DIST_SCAN_PREFIXES = new Set([
|
||||
|
||||
Reference in new issue
Block a user