mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
fix(ai): cleanup logging and use effective magnet in webtorrent.js
This commit refactors `js/webtorrent.js` to ensure the `stripXsParameter` helper is correctly used and its result (`effectiveMagnetURI`) is passed to `client.add()`. - Refactored logic to use `effectiveMagnetURI` variable. - Cleaned up conditional logging. - Ensured consistent usage in `streamVideo`. Tests run: - `npm run lint` - `npm run test:unit:shard1` - `python3 scripts/agent/debug_frontend.py` (verified error is gone) Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
4f40025b9d
commit
53a14a0dfe