MCPcopy
hub / github.com/iptv-org/iptv / main

Function main

scripts/commands/readme/update.ts:7–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { loadData } from '../../api'
6
7async function main() {
8 const logger = new Logger()
9
10 logger.info('loading data from api...')
11 await loadData()
12
13 logger.info('creating category table...')
14 await new CategoriesTable().create()
15 logger.info('creating language table...')
16 await new LanguagesTable().create()
17 logger.info('creating countires table...')
18 await new CountriesTable().create()
19 logger.info('creating region table...')
20 await new RegionsTable().create()
21
22 logger.info('updating playlists.md...')
23 const playlists = new Markdown({
24 build: `${ROOT_DIR}/PLAYLISTS.md`,
25 template: `${README_DIR}/template.md`
26 })
27 playlists.compile()
28}
29
30main()

Callers 1

update.tsFile · 0.70

Calls 4

compileMethod · 0.95
loadDataFunction · 0.90
infoMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected