Skip to content

Patch 2025.01.2 #2573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 220 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
aeaef32
wip
freearhey Jan 2, 2025
76a902a
Create Dockerfile
freearhey Jan 2, 2025
2c22600
Delete cron package
freearhey Jan 2, 2025
06827b2
Update pm2.config.js
freearhey Jan 2, 2025
9ef413e
Update Dockerfile
freearhey Jan 2, 2025
ca1a916
Update README.md
freearhey Jan 2, 2025
9bbc6b8
Update Dockerfile
freearhey Jan 2, 2025
0baf1be
Update pm2.config.js
freearhey Jan 3, 2025
1274094
Install pm2 locally
freearhey Jan 3, 2025
8544221
Update Dockerfile
freearhey Jan 3, 2025
7fee216
Update README.md
freearhey Jan 3, 2025
6e2a814
Update pm2.config.js
freearhey Jan 5, 2025
2db99a5
Update Dockerfile
freearhey Jan 5, 2025
67bd130
Update grab.ts
freearhey Jan 5, 2025
8d1e94a
Update README.md
freearhey Jan 5, 2025
d3b9672
Update README.md
freearhey Jan 5, 2025
fd136c8
Merge branch 'master' into patch-2025.01.2
freearhey Jan 5, 2025
979db51
Merge branch 'master' into patch-2025.01.2
freearhey Jan 10, 2025
0255dfb
Update grab.ts
freearhey Jan 10, 2025
84add7d
Update yarn.lock
freearhey Jan 10, 2025
cb333f5
Update Dockerfile
freearhey Jan 10, 2025
a0a48e2
Merge branch 'master' into patch-2025.01.2
freearhey Jan 18, 2025
92d4bc5
Update grab.ts
freearhey Jan 18, 2025
da2cf51
Update package-lock.json
freearhey Jan 18, 2025
45a06e9
Update yarn.lock
freearhey Jan 18, 2025
03ee512
Update pm2.config.js
freearhey Jan 18, 2025
74ce38b
Update README.md
freearhey Jan 18, 2025
0e33226
Update pm2.config.js
freearhey Jan 18, 2025
e4f4199
Merge branch 'master' into patch-2025.01.2
freearhey Jan 18, 2025
5a98424
Merge branch 'master' into patch-2025.01.2
freearhey Jan 19, 2025
9c74146
Create __data__
freearhey Jan 25, 2025
e2ea1f2
Create teleboy.ch.test.js
freearhey Jan 25, 2025
25cc9aa
Create teleboy.ch.config.js
freearhey Jan 25, 2025
c726d85
Create teleboy.ch.channels.xml
freearhey Jan 25, 2025
4c58425
Create readme.md
freearhey Jan 25, 2025
2202aff
Create content.json
freearhey Jan 25, 2025
40f0b04
Create yes.co.il.test.js
freearhey Jan 25, 2025
7445722
Create yes.co.il.config.js
freearhey Jan 25, 2025
0da74de
Create readme.md
freearhey Jan 25, 2025
f01856c
Merge branch 'patch-2025.01.7' into add-teleboy.ch
freearhey Jan 31, 2025
a3a7dfb
Merge branch 'patch-2025.01.7' into add-yes.co.il
freearhey Jan 31, 2025
ab7f1ed
Update yes.co.il.config.js
freearhey Jan 31, 2025
7f7e4c0
Create yes.co.il.channels.xml
freearhey Jan 31, 2025
8427dd9
Update teleboy.ch.channels.xml
freearhey Jan 31, 2025
b7d5819
Update yes.co.il.channels.xml
freearhey Jan 31, 2025
0baabed
Merge branch 'patch-2025.01.7' into add-yes.co.il
freearhey Jan 31, 2025
51cb17c
Merge branch 'patch-2025.01.7' into add-teleboy.ch
freearhey Jan 31, 2025
12e22ef
Merge branch 'patch-2025.01.7' into add-yes.co.il
freearhey Jan 31, 2025
7b008cc
Merge branch 'patch-2025.01.7' into patch-2025.01.2
freearhey Feb 1, 2025
411efb9
Update README.md
freearhey Feb 1, 2025
bd96957
Update yarn.lock
freearhey Feb 1, 2025
f982aae
Merge branch 'master' into add-teleboy.ch
freearhey Feb 1, 2025
f8e7142
Merge branch 'master' into add-yes.co.il
freearhey Feb 1, 2025
d678649
Merge branch 'master' into patch-2025.01.2
freearhey Feb 1, 2025
fb5119b
[Bot] Update SITES.md
iptv-bot[bot] Feb 2, 2025
edf05c6
Create __data__
freearhey Feb 2, 2025
ac67940
Update mtel.ba.test.js
freearhey Feb 2, 2025
a9f0012
Update mtel.ba.config.js
freearhey Feb 2, 2025
5026600
Delete mtel.ba.channels.xml
freearhey Feb 2, 2025
6ed275e
Create mtel.ba_iptv.channels.xml
freearhey Feb 2, 2025
dd19525
Create mtel.ba_msat.channels.xml
freearhey Feb 2, 2025
b0eb51e
Update readme.md
freearhey Feb 2, 2025
a794688
Create __data__
freearhey Feb 2, 2025
2932771
Update abc.net.au.test.js
freearhey Feb 2, 2025
f4fec98
Update abc.net.au.config.js
freearhey Feb 2, 2025
c697a9f
Delete abc.net.au.channels.xml
freearhey Feb 2, 2025
2b7be2e
Create *.channels.xml for each region
freearhey Feb 2, 2025
2c55431
Update readme.md
freearhey Feb 2, 2025
b042e14
Delete __data__
freearhey Feb 2, 2025
3719cd7
Delete cablego.com.pe.test.js
freearhey Feb 2, 2025
b2588e8
Delete cablego.com.pe.config.js
freearhey Feb 2, 2025
466d8b2
Delete cablego.com.pe.channels.xml
freearhey Feb 2, 2025
637edef
Delete readme.md
freearhey Feb 2, 2025
352038f
Update pickx.be.config.js
freearhey Feb 2, 2025
dc3b460
Delete pickx.be_de.channels.xml
freearhey Feb 2, 2025
8064f6f
Delete pickx.be_en.channels.xml
freearhey Feb 2, 2025
32af543
Delete pickx.be_fr.channels.xml
freearhey Feb 2, 2025
150725b
Delete pickx.be_nl.channels.xml
freearhey Feb 2, 2025
ce3d396
Update meo.pt.channels.xml
thomraider12 Feb 2, 2025
7705f1b
Update nostv.pt.channels.xml
thomraider12 Feb 2, 2025
abe6322
Update meo.pt.channels.xml
thomraider12 Feb 2, 2025
b391288
Update nostv.pt.channels.xml
thomraider12 Feb 2, 2025
a2748d7
Merge pull request #2665 from iptv-org/add-teleboy.ch
PopeyeTheSai10r Feb 2, 2025
f1f387c
Merge pull request #2666 from iptv-org/add-yes.co.il
PopeyeTheSai10r Feb 2, 2025
a39cb77
Merge pull request #2669 from iptv-org/update-mtel.ba
PopeyeTheSai10r Feb 2, 2025
4d964e0
Merge pull request #2670 from iptv-org/update-abc.net.au
PopeyeTheSai10r Feb 2, 2025
b6657aa
Merge pull request #2671 from iptv-org/delete-cablego.com.pe
PopeyeTheSai10r Feb 2, 2025
8664602
Update readme.md
freearhey Feb 2, 2025
6b45cd9
[Bot] Update SITES.md
iptv-bot[bot] Feb 3, 2025
1a6f595
Create pickx.be.channels.xml
freearhey Feb 4, 2025
e8a0856
Create hash.html
freearhey Feb 4, 2025
fbaae67
Create version.json
freearhey Feb 4, 2025
6ee4986
Update pickx.be.test.js
freearhey Feb 4, 2025
7f68498
Merge pull request #2673 from iptv-org/update-pickx.be
PopeyeTheSai10r Feb 5, 2025
65ea39c
[Bot] Update SITES.md
iptv-bot[bot] Feb 6, 2025
e0d059d
Create zap2it.com.channels.xml
Newbiect Feb 8, 2025
e952ba2
Add files via upload
Newbiect Feb 8, 2025
361641c
Create readme.md
Newbiect Feb 8, 2025
b901e76
Update readme.md
Newbiect Feb 8, 2025
acc5f21
Update zap2it.com.channels.xml
Newbiect Feb 8, 2025
378985f
Update tests
freearhey Feb 8, 2025
b0feab3
Update lint.mts
freearhey Feb 8, 2025
063cf6b
Update meo.pt.config.js
freearhey Feb 8, 2025
50d143b
Create __data__/
freearhey Feb 8, 2025
041e227
Create epgshare01.online.test.js
freearhey Feb 8, 2025
ddd7f1a
Create epgshare01.online.config.js
freearhey Feb 8, 2025
9996055
Create *.channels.xml
freearhey Feb 8, 2025
654c89f
Create readme.md
freearhey Feb 8, 2025
1cecb1e
Update zap2it.com.config.js
Newbiect Feb 8, 2025
38030a3
Update zap2it.com.channels.xml
Newbiect Feb 8, 2025
06b01b3
Update zap2it.com.channels.xml
Newbiect Feb 8, 2025
9f61346
Update sites/nostv.pt/nostv.pt.channels.xml
BellezaEmporium Feb 8, 2025
0afb84d
[Bot] Update SITES.md
iptv-bot[bot] Feb 9, 2025
5601636
Update zap2it.com.config.js
Newbiect Feb 9, 2025
d97cd5e
Update zap2it.com.config.js
Newbiect Feb 9, 2025
4263155
Update zap2it.com.config.js
Newbiect Feb 10, 2025
5ed1375
Merge pull request #2682 from iptv-org/add-epgshare01.online
PopeyeTheSai10r Feb 10, 2025
9aeb0b7
Merge pull request #2681 from iptv-org/update-meo.pt
PopeyeTheSai10r Feb 10, 2025
6cbe64f
[Bot] Update SITES.md
iptv-bot[bot] Feb 11, 2025
0b9276c
Merge pull request #2679 from Newbiect/zap2it.com
BellezaEmporium Feb 14, 2025
e80ca45
fix NosTV.pt channel
BellezaEmporium Feb 14, 2025
f5623a4
Merge pull request #2680 from iptv-org/patch-2025.02.1
BellezaEmporium Feb 14, 2025
bfb5d59
Update zap2it.com.config.js
Newbiect Feb 15, 2025
e75dab9
Update zap2it.com.config.js
Newbiect Feb 15, 2025
3339ea9
Fix mojmaxtv.hrvatskitelekom.hr
nirvana-7777 Feb 16, 2025
1c9a2cc
Create content.xml
freearhey Feb 16, 2025
6fd7212
Create makrodigitaltelevision.com.test.js
freearhey Feb 16, 2025
3540d58
Create makrodigitaltelevision.com.config.js
freearhey Feb 16, 2025
210f51b
Create makrodigitaltelevision.com.channels.xml
freearhey Feb 16, 2025
655f2b1
Create readme.md
freearhey Feb 16, 2025
0fe8456
Update zap2it.com.channels.xml
freearhey Feb 16, 2025
a5a305e
Merge pull request #2686 from iptv-org/belleza-addition
PopeyeTheSai10r Feb 16, 2025
f856934
Merge pull request #2691 from iptv-org/add-makrodigitaltelevision.com
PopeyeTheSai10r Feb 17, 2025
4097702
Merge pull request #2692 from iptv-org/update-zap2it.com
PopeyeTheSai10r Feb 17, 2025
e049535
Merge pull request #2690 from nirvana-7777/master
BellezaEmporium Feb 17, 2025
39c4c51
[Bot] Update SITES.md
iptv-bot[bot] Feb 18, 2025
eec8f4e
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 20, 2025
cd7182d
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 20, 2025
d75ce33
Create __data__
freearhey Feb 21, 2025
d877f44
Create dtv8.net.test.js
freearhey Feb 21, 2025
3100db9
Create dtv8.net.config.js
freearhey Feb 21, 2025
ba9fd0f
Create dtv8.net.channels.xml
freearhey Feb 21, 2025
9345e39
Create readme.md
freearhey Feb 21, 2025
fab5f9a
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 21, 2025
667c394
Update mojmaxtv.hrvatskitelekom.hr.test.js
nirvana-7777 Feb 21, 2025
f2759f8
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 21, 2025
893f741
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 21, 2025
09e96c5
Update mojmaxtv.hrvatskitelekom.hr.config.js
nirvana-7777 Feb 21, 2025
2721fe1
Merge pull request #2700 from nirvana-7777/master
PopeyeTheSai10r Feb 23, 2025
c021aa3
feat: added icon tag to xml export for nostv, this will allow to work…
Aandree5 Feb 23, 2025
d7e4a3f
Merge pull request #2698 from iptv-org/add-dtv8.net
PopeyeTheSai10r Feb 26, 2025
93da6d0
[Bot] Update SITES.md
iptv-bot[bot] Feb 27, 2025
f9534bd
Create __data__
freearhey Mar 1, 2025
2235f0c
Create tvkaista.org.test.js
freearhey Mar 1, 2025
5f48b22
Create tvkaista.org.config.js
freearhey Mar 1, 2025
0bb74b4
Create tvkaista.org.channels.xml
freearhey Mar 1, 2025
b33260b
Create readme.md
freearhey Mar 1, 2025
1500ed5
Merge https://github.com/Aandree5/epg into nostv-icon-image
Aandree5 Mar 3, 2025
363e007
Fixed nostv test
Aandree5 Mar 3, 2025
53f2bad
Merge branch 'iptv-org:master' into master
thomraider12 Mar 4, 2025
9fec63b
Update nostv.pt.channels.xml
freearhey Mar 4, 2025
f3df393
Added image to sky.com
Aandree5 Mar 4, 2025
5095b20
Merge pull request #2672 from thomraider12/master
freearhey Mar 4, 2025
145ed8c
Update sky.com.test.js
freearhey Mar 4, 2025
15c51c1
Update sky.com.config.js
freearhey Mar 4, 2025
f626595
[Bot] Update SITES.md
iptv-bot[bot] Mar 5, 2025
e2504ad
Merge pull request #2711 from Aandree5/sky.com-add-image
PopeyeTheSai10r Mar 6, 2025
3e406a4
Merge pull request #2707 from iptv-org/add-tvkaista.org
PopeyeTheSai10r Mar 6, 2025
0044f19
Merge pull request #2703 from Aandree5/nostv-icon-image
PopeyeTheSai10r Mar 6, 2025
40c9af8
[Bot] Update SITES.md
iptv-bot[bot] Mar 7, 2025
8e6dc5c
Update tvpassport.com.channels.xml
Abu-Vovan-Al-Yahudi Mar 15, 2025
46c1799
Update elcinema.com_en.channels.xml
CasperMcFadden95 Mar 15, 2025
917c622
Update elcinema.com_ar.channels.xml
CasperMcFadden95 Mar 15, 2025
d410d0e
Update check.yml
freearhey Mar 16, 2025
cf82b40
Merge pull request #2719 from iptv-org/freearhey-patch-2
BellezaEmporium Mar 16, 2025
7162107
Update snrt.ma.channels.xml
CasperMcFadden95 Mar 24, 2025
4102d60
Update freeview.co.uk.channels.xml
CasperMcFadden95 Mar 24, 2025
6ff3a94
Update sites/snrt.ma/snrt.ma.channels.xml
CasperMcFadden95 Mar 24, 2025
c7b21d0
Update snrt.ma.channels.xml
CasperMcFadden95 Mar 24, 2025
d8e4d13
Update snrt.ma.channels.xml
CasperMcFadden95 Mar 24, 2025
9d94560
Update freeview.co.uk.channels.xml
CasperMcFadden95 Mar 24, 2025
2401510
Update elcinema.com_en.channels.xml
CasperMcFadden95 Mar 24, 2025
23de627
Update elcinema.com_ar.channels.xml
CasperMcFadden95 Mar 24, 2025
1e8d10e
Update shahid
CasperMcFadden95 Mar 24, 2025
6066df8
Update freeview.co.uk.channels.xml
CasperMcFadden95 Mar 24, 2025
f40f058
Fix elcinema.com channels:parse & update xml
CasperMcFadden95 Mar 24, 2025
637f7a8
update elcinema xml
CasperMcFadden95 Mar 24, 2025
348e8c1
Update elcinema.com_ar.channels.xml
CasperMcFadden95 Mar 24, 2025
0b5ef21
Merge pull request #2725 from iptv-org/CasperMcFadden95-shahid
BellezaEmporium Mar 24, 2025
45a1478
Merge pull request #2724 from iptv-org/CasperMcFadden95-patch-3
BellezaEmporium Mar 24, 2025
0b5dd5f
Merge pull request #2723 from iptv-org/CasperMcFadden95-patch-2
BellezaEmporium Mar 24, 2025
1388420
Merge pull request #2718 from iptv-org/CasperMcFadden95-patch-1
freearhey Mar 24, 2025
30dc051
[Bot] Update SITES.md
iptv-bot[bot] Mar 25, 2025
9accacd
Update elcinema.com_*.channels.xml
CasperMcFadden95 Mar 25, 2025
3cada89
Update freeview.co.uk.channels.xml
CasperMcFadden95 Mar 27, 2025
bd5cdcf
Guard against empty program description on mncvision.id.
tohenk Mar 28, 2025
95b39b8
Merge pull request #2727 from iptv-org/CasperMcFadden95-patch-1
Alstruit Mar 28, 2025
642070d
Merge pull request #2726 from iptv-org/elcinema
Alstruit Mar 28, 2025
3fd6e47
Site mytelly.co.uk now requires user agent.
tohenk Mar 28, 2025
f2e6041
[Bot] Update SITES.md
iptv-bot[bot] Mar 29, 2025
f3c4918
Merge pull request #2730 from iptv-org/tohenk/fix-mncvision.id
freearhey Mar 29, 2025
dc27551
Update dishtv.in.channels.xml
freearhey Mar 29, 2025
ff60520
Update tv24.co.uk.config.js
freearhey Mar 29, 2025
f681444
Update tv24.co.uk.channels.xml
freearhey Mar 29, 2025
f52927c
Merge pull request #2731 from iptv-org/tohenk/fix-mytelly.co.uk
PopeyeTheSai10r Mar 29, 2025
c032886
Update epgshare01.online.config.js
freearhey Mar 29, 2025
6e35d43
Add freetv.tv
Natanel-Shitrit Mar 29, 2025
13b9157
Update zap2it.com.config.js
Newbiect Mar 29, 2025
9090f55
Update zap2it.com.test.js
Newbiect Mar 29, 2025
c12254f
Update sites/freetv.tv/readme.md
Natanel-Shitrit Mar 30, 2025
bdaff97
Merge pull request #2739 from Newbiect/zap2it.com
CasperMcFadden95 Mar 30, 2025
a98a457
Merge pull request #2717 from Abu-Vovan-Al-Yahudi/master
CasperMcFadden95 Mar 30, 2025
66304d7
Merge pull request #2737 from Natanel-Shitrit/feat/site/free-tv
PopeyeTheSai10r Mar 30, 2025
c3ed9f4
Merge pull request #2735 from iptv-org/freearhey-patch-7
PopeyeTheSai10r Mar 30, 2025
b14ff83
Merge pull request #2734 from iptv-org/freearhey-patch-6
PopeyeTheSai10r Mar 30, 2025
1dd76b1
Merge pull request #2732 from iptv-org/freearhey-patch-3
PopeyeTheSai10r Mar 30, 2025
de6d577
[Bot] Update SITES.md
iptv-bot[bot] Mar 31, 2025
281a581
Merge branch 'patch-2025.01.2' into patch-2025.04.1
freearhey Mar 31, 2025
c79491f
Delete Dockerfile
freearhey Mar 31, 2025
6a4404b
Update README.md
freearhey Mar 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:22-alpine
ARG GIT_REPO=https://github.com/iptv-org/epg.git
ARG GIT_BRANCH=master
ARG USER=iptv-org
ARG WORKDIR=/epg
WORKDIR $WORKDIR
RUN apk update \
&& apk upgrade --no-cache \
&& apk add --no-cache git tzdata bash \
&& npm install -g npm@latest \
&& git clone --depth 1 -b $(echo "${GIT_BRANCH} ${GIT_REPO}") . \
&& npm install \
&& mkdir /public \
&& adduser -D $USER \
&& chown -R $USER $WORKDIR \
&& cd $WORKDIR \
&& apk del git
USER $USER
EXPOSE 3000
CMD [ "npx", "pm2-runtime", "pm2.config.js" ]
129 changes: 97 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Tools for downloading the EPG (Electronic Program Guide) for thousands of TV cha
- ✨ [Installation](#installation)
- 🚀 [Usage](#usage)
- 💫 [Update](#update)
- 🐋 [Docker](#docker)
- 📺 [Playlists](#playlists)
- 🗄 [Database](#database)
- 👨‍💻 [API](#api)
Expand Down Expand Up @@ -39,13 +40,15 @@ npm install

## Usage

To start the download of the guide, select one of the [supported sites](SITES.md) and paste its name into the command below:
To start the download of the guide, select one of the supported sites from [SITES.md](SITES.md) file and paste its name into the command below:

```sh
npm run grab --- --site=example.com
```

And once the download is complete, the guide will be saved to the `guide.xml` file.
Then run it and wait for the guide to finish downloading. When finished, a new `guide.xml` file will appear in the current directory.

You can also customize the behavior of the script using this options:

```sh
Usage: npm run grab --- [options]
Expand All @@ -55,34 +58,12 @@ Options:
-c, --channels <path> Path to *.channels.xml file (required if the "--site" attribute is
not specified)
-o, --output <path> Path to output file (default: "guide.xml")
-l, --lang <code> Filter channels by language (ISO 639-2 code)
-t, --timeout <milliseconds> Override the default timeout for each request
-d, --delay <milliseconds> Override the default delay between request
--days <days> Override the number of days for which the program will be loaded
(defaults to the value from the site config)
--maxConnections <number> Limit on the number of concurrent requests (default: 1)
--cron <expression> Schedule a script run (example: "0 0 * * *")
--gzip Create a compressed version of the guide as well (default: false)
```

### Access the guide by URL

You can make the guide available via URL by running your own server:

```sh
npm run serve
```

After that, the guide will be available at the link:

```
http://localhost:3000/guide.xml
```

In addition it will be available to other devices on the same local network at the address:

```
http://<your_local_ip_address>:3000/guide.xml
-l, --lang <code> Allows to limit the download to channels in the specified language only (ISO 639-2 code)
-t, --timeout <milliseconds> Timeout for each request in milliseconds (default: 0)
-d, --delay <milliseconds> Delay between request in milliseconds (default: 0)
--days <days> Number of days for which the program will be loaded (defaults to the value from the site config)
--maxConnections <number> Number of concurrent requests (default: 1)
--gzip Specifies whether or not to create a compressed version of the guide (default: false)
```

### Parallel downloading
Expand Down Expand Up @@ -115,12 +96,42 @@ npm run grab --- --channels=path/to/custom.channels.xml

### Run on schedule

If you want to download the guide automatically on a schedule, you need to pass a valid [cron expression](https://crontab.guru/) to the script using the `--cron` attribute:
To download the guide on a schedule, you can use the included process manager. Just run it with desire [cron expression](https://crontab.guru/) and the `grab` options:

```sh
npm run grab --- --site=example.com --cron="0 0 * * *"
npx pm2 start npm --no-autorestart --cron-restart="0 0,12 * * *" -- run grab --- --site=example.com
```

To track the process, you can use the command:

```sh
npx pm2 logs
```

For more info go to [pm2](https://pm2.keymetrics.io/docs/usage/quick-start/) documentation.

### Access the guide by URL

You can make the guide available via URL by running your own server. The easiest way to do this is to run this command:

```sh
npx serve
```

After that, the guide will be available at the link:

```
http://localhost:3000/guide.xml
```

In addition it will be available to other devices on the same local network at the address:

```
http://<your_local_ip_address>:3000/guide.xml
```

For more info go to [serve](https://github.com/vercel/serve) documentation.

## Update

If you have downloaded the repository code according to the instructions above, then to update it will be enough to run the command:
Expand All @@ -135,6 +146,60 @@ And then update all the dependencies:
npm install
```

## Docker

### Build an image

```sh
docker build -t iptv-org/epg --no-cache .
```

### Create and run container

```sh
docker run -p 3000:3000 -v /path/to/channels.xml:/epg/channels.xml iptv-org/epg
```

By default, the guide will be downloaded only once and saved to the `/epg/public/guide.xml` file inside the container.

From the outside, it will be available at this link:

```
http://localhost:3000/guide.xml
```

or

```
http://<your_local_ip_address>:3000/guide.xml
```

### Environment Variables

To fine-tune the execution, you can pass environment variables to the container as follows:

```sh
docker run \
-p 5000:3000 \
-v /path/to/channels.xml:/epg/channels.xml \
-e CRON="0 0,12 * * *" \
-e MAX_CONNECTIONS=10 \
-e GZIP=true \
-e DAYS=14 \
-e TIMEOUT=5 \
-e DELAY=2 \
iptv-org/epg
```

| Variable | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------------- |
| CRON | A [cron expression](https://crontab.guru/) describing the schedule of the guide loadings (by default will run once) |
| MAX_CONNECTIONS | Limit on the number of concurrent requests (default: 1) |
| GZIP | Boolean value indicating whether to create a compressed version of the guide (default: false) |
| DAYS | Number of days for which the guide will be loaded (defaults to the value from the site config) |
| TIMEOUT | Timeout for each request in milliseconds (default: 0) |
| DELAY | Delay between request in milliseconds (default: 0) |

## Playlists

Playlists with already linked guides can be found in the [iptv-org/iptv](https://github.com/iptv-org/iptv) repository.
Expand Down
Loading
Loading