From 195b9d35bcfa7d6a074ec39ba4fe2d3bc1790b46 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 19 Jul 2023 04:17:05 +0300 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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