Comments (1)
example of a parametrized add-on, w/o the sdk
const express = require('express')
const addon = express()
addon.get('/:someParameter/manifest.json', function (req, res) {
res.send({
id: 'org.parametrized.'+req.params.someParameter,
name: 'add-on for '+req.params.someParameter,
resources: ['stream'],
types: ['series'],
})
})
addon.get('/:someParameter/stream/:type/:id.json', function(req, res) {
// @TODO do something depending on req.params.someParameter
res.send({ streams: [] })
})
addon.listen(19999, function() {
console.log('http://127.0.0.1:19999')
})
What this example is missing, in comparison to building with the SDK:
- linting of the manifest
- parsing of extra
- more convenient API
Also, you can always construct a new SDK instance depending on req.params.someParameter
, but that will be expensive in terms of resource usage
from stremio-addon-sdk.
Related Issues (20)
- HLS m3u8 playing fine in desktop and web app but not in android and android tv HOT 8
- Submit infoHash when play-stream is executed instead on defineStreamHandler() HOT 4
- Manifest.config.key conflicts with reserved keyword "key". HOT 3
- Add Addon notification panel HOT 7
- Subtitles Encoding issues HOT 5
- Search not work if catalogs genre "isRequired true" HOT 3
- Hi stremio I need your help to add sites for me to watch Arabic works through Stremio. I do not know anything about the programming language. I hope that the team specialized in creating add-ons in Stremio will create an add-on that supports Arabic and Turkish businesses. I have collected the best sites for watching Arabic works with this link I hope that my request will be responded to. I tried to create an addition, but I cannot do so due to my lack of experience in the programming language. Thank you . HOT 2
- Stremio
- Custom Lists Pro complemento HOT 1
- [18+][Live] Stripchat complemento HOT 1
- Feature Request: Ability to Update Addon URL with Configuration HOT 1
- Docs regarding types in Discover - Others, Anime, ?? HOT 8
- Invalid addon publish - too many addons published. Please try again later error. HOT 2
- Feature-Request: add possibility to implement a UI for addon HOT 3
- Feature Request. Trakt scrobbling for custom media IDs
- Failed to fetch HOT 2
- -
- proxyHeaders are not set on Web Player
- Feature Request: Update Addon URL HOT 1
- Issue with Missing Filename in extraArgs When Using Real Debrid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stremio-addon-sdk.