feat: Add multi-server player toggle and resume helpers#52
Merged
justinhartman merged 7 commits intomainfrom Oct 15, 2025
Merged
feat: Add multi-server player toggle and resume helpers#52justinhartman merged 7 commits intomainfrom
justinhartman merged 7 commits intomainfrom
Conversation
…ection # Conflicts: # yarn.lock
- Add a reusable router agent test utility and replace all supertest-dependent suites with in-memory request execution so tests run without socket permissions. - Expand helper and controller specs (including multi-domain and watchlist error paths) - Build new targeted suites, and rework mocks to exercise every branch required for full coverage.
…for-server-selection feat: add multi server support
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 18 18
Lines 1497 1627 +130
Branches 117 130 +13
==========================================
+ Hits 1497 1627 +130
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
helpers/appHelper.ts:30introduces buildSources, buildCanonical, and history upsert helpers so view routing can share embed selection, resume redirects, and watched state logic in one place.controllers/appController.ts:9replaces inline history handling with the new helpers, adding resume redirects, multi-server source wiring, and clearer canonical URL composition for both movies and series..env.example:17andconfig/app.ts:94document the new defaultVIDSRCdomain plus optionalMULTI_DOMAINflag, keeping config/tests (config/app.spec.ts:12) aligned.views/view.ejs:1,views/partials/series-buttons.ejs:28, andviews/partials/footer.ejs:2surface a toggle-able second server in the UI with a small client script to live-switch iframe sources.tests/utils/routerAgent.ts:1adds a reusable Express router harness, enabling broader coverage across controller specs and new branches (controllers/appController.multidomain.spec.ts:1,controllers/appController.resume.spec.ts:1,controllers/watchlistController.branch.spec.ts:1, plus updated e2e/integration suites).