mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] add lite version redirect
This commit is contained in:
@@ -34,7 +34,7 @@ function dummyManifest() {
|
|||||||
function getDescription(config) {
|
function getDescription(config) {
|
||||||
if (config.lite) {
|
if (config.lite) {
|
||||||
return 'Preconfigured Lite version of Torrentio addon.'
|
return 'Preconfigured Lite version of Torrentio addon.'
|
||||||
+ ' To configure advanced options visit https://torrentio.strem.fun';
|
+ ' To configure advanced options visit https://torrentio.strem.fun/lite';
|
||||||
}
|
}
|
||||||
const providersList = config.providers || DefaultProviders;
|
const providersList = config.providers || DefaultProviders;
|
||||||
const enabledProvidersDesc = Providers.options
|
const enabledProvidersDesc = Providers.options
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ router.get('/', (_, res) => {
|
|||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/lite', (_, res) => {
|
||||||
|
res.redirect('/lite/configure')
|
||||||
|
res.end();
|
||||||
|
});
|
||||||
|
|
||||||
router.get('/:configuration?/configure', (req, res) => {
|
router.get('/:configuration?/configure', (req, res) => {
|
||||||
const configValues = parseConfiguration(req.params.configuration || '');
|
const configValues = parseConfiguration(req.params.configuration || '');
|
||||||
const landingHTML = landingTemplate(manifest(configValues), configValues);
|
const landingHTML = landingTemplate(manifest(configValues), configValues);
|
||||||
|
|||||||
Reference in New Issue
Block a user