mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
fix images urls
This commit is contained in:
parent
5b12859567
commit
a8539c89d8
4 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
BIN
addon/static/images/background_v1.jpg
Normal file
BIN
addon/static/images/background_v1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
BIN
addon/static/images/logo_v1.png
Normal file
BIN
addon/static/images/logo_v1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Loading…
Reference in a new issue