forked from dexter21767/Trakt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.js
More file actions
41 lines (34 loc) · 1.25 KB
/
manifest.js
File metadata and controls
41 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const package = require('./package.json');
const fs = require('fs');
const config = require('./config.js')();
let manifest = {
"id": "community.trakt-tv",
"version": `${package.version}`,
"name": "Trakt Tv",
"description": "Addon for getting Trakt's public and user lists, recommendations and watch list.",
};
manifest = { ...manifest,
"logo": `${config.local}/public/logoPS.png?ver=${manifest.version}`,
"background": `${config.local}/public/background.png?ver=${manifest.version}`,
"catalogs": [],
"resources": [{ "name": "meta", "types": [ "series","movie" ], "idPrefixes": [ "trakt:" ] }],
"types": [],
"idPrefixes": [ "trakt" ],
"behaviorHints": {
"configurable": true,
"configurationRequired": false
}
}
fs.writeFileSync('./manifest.json', JSON.stringify(manifest));
let client_config = {
"version": `${manifest.version}`,
"name": `${manifest.name}`,
"description": `${manifest.description}`,
"logoUrl": `${manifest.logo}`,
"backgroundUrl": `${manifest.background}`,
"types": manifest.types,
"baseUrl": `${config.local}`,
"oauthClientId": `${config.client_id}`
}
fs.writeFileSync('./vue/public/client-config.json', JSON.stringify(client_config));
//module.exports = manifest;