mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
[addon] add lite version redirect
This commit is contained in:
parent
6b6a53e7f8
commit
c84e1818ab
2 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ function dummyManifest() {
|
|||
function getDescription(config) {
|
||||
if (config.lite) {
|
||||
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 enabledProvidersDesc = Providers.options
|
||||
|
|
|
|||
|
|
@ -22,6 +22,11 @@ router.get('/', (_, res) => {
|
|||
res.end();
|
||||
});
|
||||
|
||||
router.get('/lite', (_, res) => {
|
||||
res.redirect('/lite/configure')
|
||||
res.end();
|
||||
});
|
||||
|
||||
router.get('/:configuration?/configure', (req, res) => {
|
||||
const configValues = parseConfiguration(req.params.configuration || '');
|
||||
const landingHTML = landingTemplate(manifest(configValues), configValues);
|
||||
|
|
|
|||
Loading…
Reference in a new issue