Update README.md

This commit is contained in:
freearhey 2023-07-19 04:17:05 +03:00
parent ffeeaf2fa2
commit 195b9d35bc
1 changed files with 10 additions and 4 deletions

View File

@ -42,14 +42,20 @@ npm install
Now choose one of the sources (their complete list can be found in the [/sites](https://github.com/iptv-org/epg/tree/master/sites) folder) and start downloading the guide using the command: Now choose one of the sources (their complete list can be found in the [/sites](https://github.com/iptv-org/epg/tree/master/sites) folder) and start downloading the guide using the command:
```sh ```sh
npm run grab example.com npm run grab -- --site=example.com
```
To download a guide in a specific language pass its [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code to the `--lang` argument:
```sh
npm run grab -- --site=example.com --lang=fr
``` ```
After the download is completed in the current directory will appear a new folder `guides`, which will store all XML files: After the download is completed in the current directory will appear a new folder `guides`, which will store all XML files:
```sh ```sh
guides guides
└── en └── fr
└── example.com.xml └── example.com.xml
``` ```
@ -62,13 +68,13 @@ npm run serve
After that all the downloaded guides will be available at a link like this: After that all the downloaded guides will be available at a link like this:
``` ```
http://localhost:3000/guides/en/example.com.xml http://localhost:3000/guides/fr/example.com.xml
``` ```
In addition, they will be available on your local network at: In addition, they will be available on your local network at:
``` ```
http://<your_local_ip_address>:3000/guides/en/example.com.xml http://<your_local_ip_address>:3000/guides/fr/example.com.xml
``` ```
## Playlists ## Playlists