fix images urls

This commit is contained in:
TheBeastLT 2025-03-08 11:21:24 +02:00
parent 5b12859567
commit a8539c89d8
4 changed files with 7 additions and 5 deletions

View file

@ -11,14 +11,14 @@ export function manifest(config = {}) {
const overrideManifest = getManifestOverride(config);
const baseManifest = {
id: 'com.stremio.torrentio.addon',
version: '0.0.14',
version: '0.0.15',
name: getName(overrideManifest, config),
description: getDescription(config),
catalogs: getCatalogs(config),
resources: getResources(config),
types: [Type.MOVIE, Type.SERIES, Type.ANIME, Type.OTHER],
background: `https://i.ibb.co/VtSfFP9/t8wVwcg.jpg`,
logo: `https://i.ibb.co/w4BnkC9/GwxAcDV.png`,
background: `${config.host}/images/background_v1.jpg`,
logo: `${config.host}/images/logo_v1.png`,
behaviorHints: {
configurable: true,
configurationRequired: false

View file

@ -30,14 +30,16 @@ router.get(`/:preconfiguration(${Object.keys(PreConfigurations).join('|')})`, (r
});
router.get('/:configuration?/configure', (req, res) => {
const configValues = parseConfiguration(req.params.configuration || '');
const host = `${req.protocol}://${req.headers.host}`;
const configValues = { ...parseConfiguration(req.params.configuration || ''), host };
const landingHTML = landingTemplate(manifest(configValues), configValues);
res.setHeader('content-type', 'text/html');
res.end(landingHTML);
});
router.get('/:configuration?/manifest.json', (req, res) => {
const configValues = parseConfiguration(req.params.configuration || '');
const host = `${req.protocol}://${req.headers.host}`;
const configValues = { ...parseConfiguration(req.params.configuration || ''), host };
const manifestBuf = JSON.stringify(manifest(configValues));
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.end(manifestBuf)

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB