mirror of
https://github.com/iptv-org/epg
synced 2026-05-20 00:05:00 -04:00
@@ -1,21 +1,21 @@
|
||||
# example.com
|
||||
|
||||
https://example.com
|
||||
|
||||
### Download the guide
|
||||
|
||||
```sh
|
||||
npm run grab --- --site=example.com
|
||||
```
|
||||
|
||||
### Update channel list
|
||||
|
||||
```sh
|
||||
npm run channels:parse --- --config=./sites/example.com/example.com.config.js --output=./sites/example.com/example.com.channels.xml
|
||||
```
|
||||
|
||||
### Test
|
||||
|
||||
```sh
|
||||
npm test --- example.com
|
||||
```
|
||||
# example.com
|
||||
|
||||
https://example.com
|
||||
|
||||
### Download the guide
|
||||
|
||||
```sh
|
||||
npm run grab --- --sites=example.com
|
||||
```
|
||||
|
||||
### Update channel list
|
||||
|
||||
```sh
|
||||
npm run channels:parse --- --config=./sites/example.com/example.com.config.js --output=./sites/example.com/example.com.channels.xml
|
||||
```
|
||||
|
||||
### Test
|
||||
|
||||
```sh
|
||||
npm test --- example.com
|
||||
```
|
||||
|
||||
@@ -13,7 +13,7 @@ beforeEach(() => {
|
||||
|
||||
describe('epg:grab', () => {
|
||||
it('can grab epg by site name', () => {
|
||||
const cmd = `${ENV_VAR} npm run grab --- --site=example.com --output="${path.resolve(
|
||||
const cmd = `${ENV_VAR} npm run grab --- --sites=example.com --output="${path.resolve(
|
||||
'tests/__data__/output/guides/base.guide.xml'
|
||||
)}"`
|
||||
const stdout = execSync(cmd, { encoding: 'utf8' })
|
||||
@@ -25,7 +25,7 @@ describe('epg:grab', () => {
|
||||
})
|
||||
|
||||
it('can grab epg with curl option', () => {
|
||||
const cmd = `${ENV_VAR} npm run grab --- --site=example.com --curl --output="${path.resolve(
|
||||
const cmd = `${ENV_VAR} npm run grab --- --sites=example.com --curl --output="${path.resolve(
|
||||
'tests/__data__/output/guides/curl.guide.xml'
|
||||
)}"`
|
||||
const stdout = execSync(cmd, { encoding: 'utf8' })
|
||||
|
||||
Reference in New Issue
Block a user