You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**🔥 Plugin System** – Drop new provider files in `providers/` and add its exported function to the registry map (`providers/registry.js` → `providerFunctionMap`).
@@ -202,22 +208,64 @@ Session is revalidated on visibility and back/forward navigation to prevent stal
202
208
---
203
209
204
210
## 🔌 Providers
205
-
Current built‑in providers:
206
-
-`showbox`
207
-
-`4khdhub`
208
-
-`moviesmod`
209
-
-`mp4hydra`
210
-
-`vidzee`
211
-
-`vixsrc`
212
-
-`xprime`
213
-
214
-
You can enable/disable and mark defaults via the Provider Matrix in the UI. If **no defaults** are selected, all enabled providers participate in aggregation.
215
-
216
-
### Adding a New Provider (Outline)
217
-
1. Create `providers/myprovider.js` exporting an async fetch function (see existing files for patterns).
218
-
2. Lazy‑load it in `providers/registry.js` similar to others.
219
-
3. Add a config flag (`enableMyproviderProvider`) if you want toggle support.
220
-
4. Update the provider matrix arrays in `public/index.js`.
211
+
The API supports a plugin system. Drop a new provider file in the `providers/` folder and register its exported function in `providers/registry.js` under `providerFunctionMap`.
212
+
213
+
### Current Built-in Providers
214
+
-`showbox` - Showbox/PStream integration
215
+
-`4khdhub` - 4KHDHub streams
216
+
-`moviesmod` - MoviesMod streams
217
+
-`mp4hydra` - MP4Hydra streams
218
+
-`vidzee` - VidZee streams
219
+
-`vixsrc` - Vixsrc streams
220
+
-`xprime` - Xprime streams
221
+
-`uhdmovies` - UHD Movies streams
222
+
-`moviesclub` - MoviesClub streams
223
+
224
+
### Adding a New Provider
225
+
1.**Create**`providers/yourprovider.js` with your stream fetching logic
226
+
2.**Export** a function like `getYourproviderStreams(tmdbId, mediaType, season, episode)`
227
+
3.**Register** it in `providers/registry.js` → `providerFunctionMap`:
228
+
```js
229
+
// providers/registry.js
230
+
constproviderFunctionMap= {
231
+
'Showbox.js':'getStreamsFromTmdbId',
232
+
'4khdhub.js':'get4KHDHubStreams',
233
+
'moviesmod.js':'getMoviesModStreams',
234
+
'MP4Hydra.js':'getMP4HydraStreams',
235
+
'VidZee.js':'getVidZeeStreams',
236
+
'vixsrc.js':'getVixsrcStreams',
237
+
'xprime.js':'getXprimeStreams',
238
+
'uhdmovies.js':'getUHDMoviesStreams',
239
+
'moviesclub.js':'getMoviesClubStreams',
240
+
'yourprovider.js':'getYourproviderStreams'
241
+
};
242
+
```
243
+
4. The provider will appear in the admin UI with an enable/disable toggle.
0 commit comments