diff --git a/README.md b/README.md index 979de07d..8cbe6b40 100644 --- a/README.md +++ b/README.md @@ -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: ```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: ```sh guides -└── en +└── fr └── example.com.xml ``` @@ -62,13 +68,13 @@ npm run serve 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: ``` -http://:3000/guides/en/example.com.xml +http://:3000/guides/fr/example.com.xml ``` ## Playlists