mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Added `DEFAULT_PLAYBACK_SOURCE` to `config/instance-config.js` to allow choosing between "url" (default) and "torrent" priority. - Updated `js/constants.js` to derive `URL_FIRST_ENABLED` flag from the configuration. - Refactored `PlaybackService.execute()` in `js/services/playbackService.js` to robustly support "Torrent First" logic with fallback to URL, while maintaining "URL First" with fallback to Torrent. - Added unit tests in `tests/services/playbackService_order.test.mjs` to verify playback order and fallback mechanics.