mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
commit
9e45139883
4 changed files with 13 additions and 10 deletions
|
@ -52,7 +52,7 @@ https://iptv-org.github.io/epg/api/channels.json
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
### List of programs
|
<!-- ### List of programs
|
||||||
|
|
||||||
```
|
```
|
||||||
https://iptv-org.github.io/epg/api/programs.json
|
https://iptv-org.github.io/epg/api/programs.json
|
||||||
|
@ -78,7 +78,7 @@ https://iptv-org.github.io/epg/api/programs.json
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
```
|
``` -->
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,10 @@ const API_DIR = process.env.API_DIR || '.gh-pages/api'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
await generateChannelsJson()
|
await generateChannelsJson()
|
||||||
await generateProgramsJson()
|
|
||||||
|
// Reason: File api/programs.json is 419.08 MB; this exceeds GitHub's file size limit of 100.00 MB
|
||||||
|
// await generateProgramsJson()
|
||||||
|
|
||||||
logger.info(`Done`)
|
logger.info(`Done`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ https://iptv-org.github.io/epg/api/channels.json
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
### List of programs
|
<!-- ### List of programs
|
||||||
|
|
||||||
```
|
```
|
||||||
https://iptv-org.github.io/epg/api/programs.json
|
https://iptv-org.github.io/epg/api/programs.json
|
||||||
|
@ -103,7 +103,7 @@ https://iptv-org.github.io/epg/api/programs.json
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
```
|
``` -->
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
|
|
@ -32,12 +32,12 @@ it('can generate channels.json', () => {
|
||||||
expect(output).toBe(expected)
|
expect(output).toBe(expected)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can generate programs.json', () => {
|
// it('can generate programs.json', () => {
|
||||||
const output = content('tests/__data__/output/api/programs.json')
|
// const output = content('tests/__data__/output/api/programs.json')
|
||||||
const expected = content('tests/__data__/expected/api/programs.json')
|
// const expected = content('tests/__data__/expected/api/programs.json')
|
||||||
|
|
||||||
expect(output).toBe(expected)
|
// expect(output).toBe(expected)
|
||||||
})
|
// })
|
||||||
|
|
||||||
function content(filepath) {
|
function content(filepath) {
|
||||||
const data = fs.readFileSync(path.resolve(filepath), {
|
const data = fs.readFileSync(path.resolve(filepath), {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue