-
How to create custom sources based on the upstream |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The current version of No matter if you deploy with docker or nodejs, it is very easy to meet the goal. You can follow the steps: Deploy with dockerFirst, you need to run the container with volume docker run -v <host-config-dir-path>:/app/config iptv-sources Then, you just need to add a new Save, and run Deploy with nodejsMake a new directory Save, and run |
Beta Was this translation helpful? Give feedback.
-
How to write the
|
Name | Type | Required | Description |
---|---|---|---|
rules |
Array | true | Rules for custom sources |
upstream |
string | true | The based upstream, like fmml_ipv6 , cn , j_home |
exclude |
Array<string> | false | To exclude the channels |
include |
Array<string> | false | To include the channels you want, if the option was configured, the option exclude would not work |
append |
Array | false | Append the channels |
append.name |
string | true | channel name |
append.url |
string | true | channel url |
append.extinf |
string | false | channel tvg information |
replacer.exinf replacer.url |
Array | false | custom replacer |
replacer.exinf.type replacer.url.type |
string or RegExp |
true | type of replacer |
replacer.exinf.pattern replacer.url.pattern |
string | true | same as String.prototype.replace.$0 or RegExp.pattern |
replacer.exinf.flags replacer.url.flags |
string | false | same as RegExp.flags |
replacer.exinf.target replacer.url.target |
string | true | same as String.prototype.replace.$1 |
Beta Was this translation helpful? Give feedback.
The current version of
iptv-sources
supports create custom sources based on the upstream by yourself.No matter if you deploy with docker or nodejs, it is very easy to meet the goal.
You can follow the steps:
Deploy with docker
First, you need to run the container with volume
Then, you just need to add a new
custom.json
file in<host-config-dir-path>
.Save, and run
docker exec -d iptv-sources /bin/sh ./update-sources.sh
.Deploy with nodejs
Make a new directory
config
in the project root path, add a newcustom.json
file.Save, and run
yarn m3u
.