mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-05-20 00:22:33 +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 overrideManifest = getManifestOverride(config);
|
||||||
const baseManifest = {
|
const baseManifest = {
|
||||||
id: 'com.stremio.torrentio.addon',
|
id: 'com.stremio.torrentio.addon',
|
||||||
version: '0.0.14',
|
version: '0.0.15',
|
||||||
name: getName(overrideManifest, config),
|
name: getName(overrideManifest, config),
|
||||||
description: getDescription(config),
|
description: getDescription(config),
|
||||||
catalogs: getCatalogs(config),
|
catalogs: getCatalogs(config),
|
||||||
resources: getResources(config),
|
resources: getResources(config),
|
||||||
types: [Type.MOVIE, Type.SERIES, Type.ANIME, Type.OTHER],
|
types: [Type.MOVIE, Type.SERIES, Type.ANIME, Type.OTHER],
|
||||||
background: `https://i.ibb.co/VtSfFP9/t8wVwcg.jpg`,
|
background: `${config.host}/images/background_v1.jpg`,
|
||||||
logo: `https://i.ibb.co/w4BnkC9/GwxAcDV.png`,
|
logo: `${config.host}/images/logo_v1.png`,
|
||||||
behaviorHints: {
|
behaviorHints: {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
configurationRequired: false
|
configurationRequired: false
|
||||||
|
|
|
||||||
|
|
@ -30,14 +30,16 @@ router.get(`/:preconfiguration(${Object.keys(PreConfigurations).join('|')})`, (r
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/:configuration?/configure', (req, res) => {
|
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);
|
const landingHTML = landingTemplate(manifest(configValues), configValues);
|
||||||
res.setHeader('content-type', 'text/html');
|
res.setHeader('content-type', 'text/html');
|
||||||
res.end(landingHTML);
|
res.end(landingHTML);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/:configuration?/manifest.json', (req, res) => {
|
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));
|
const manifestBuf = JSON.stringify(manifest(configValues));
|
||||||
res.setHeader('Content-Type', 'application/json; charset=utf-8');
|
res.setHeader('Content-Type', 'application/json; charset=utf-8');
|
||||||
res.end(manifestBuf)
|
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