Update README.md

This commit is contained in:
freearhey 2021-04-01 05:05:53 +03:00
parent 86ff9eaddb
commit b4594323ea
1 changed files with 9 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Arguments:
```js ```js
module.exports = { module.exports = {
lang: 'fr', // program language (default: 'en') lang: 'fr', // default language for all programs (default: 'en')
site: 'example.com', // site domain name (required) site: 'example.com', // site domain name (required)
output: 'example.com.guide.xml', // path to output file (default: 'guide.xml') output: 'example.com.guide.xml', // path to output file (default: 'guide.xml')
channels: 'example.com.channels.xml', // path to channels.xml file (required) channels: 'example.com.channels.xml', // path to channels.xml file (required)
@ -63,7 +63,8 @@ module.exports = {
start, // program start time (required) start, // program start time (required)
stop, // program end time (optional) stop, // program end time (optional)
description, // program description (optional) description, // program description (optional)
category // program category (optional) category, // program category (optional)
lang // program language (default: 'en')
}, },
... ...
] ]
@ -83,6 +84,12 @@ module.exports = {
</site> </site>
``` ```
You can also specify the language and logo for each channel individually, like so:
```xml
<channel site_id="france-24" xmltv_id="France24.fr" lang="fr" logo="https://example.com/france24.png">France 24</channel>
```
## Contribution ## Contribution
If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/freearhey/epg-grabber/issues) or a [pull request](https://github.com/freearhey/epg-grabber/pulls). If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/freearhey/epg-grabber/issues) or a [pull request](https://github.com/freearhey/epg-grabber/pulls).