config_sources_inputs - euzu/tuliprox GitHub Wiki
inputs
inputs
is a list of sources.
Each input has the following attributes:
-
name
is mandatory, it must be unique -
type
is optional, default ism3u
. Valid values arem3u
andxtream
-
enabled
is optional, default is true, if you disable the processing is skipped. (The '-t' cli-argument overrides this option) -
persist
is optional, you can skip or leave it blank to avoid persisting the input file. The{}
in the filename is filled with the current timestamp. -
url
for typem3u
is the download url or a local filename of the input-source. For typextream
it ishttp://<hostname>:<port>
-
epg_url
optional xmltv url -
headers
is optional -
username
only mandatory for typextream
-
pasword
only mandatory for typextream
-
prefix
is optional, it is applied to the given field with the given value -
suffix
is optional, it is applied to the given field with the given value -
options
optional
persist
should be different for m3u
and xtream
types. For m3u
use full filename like ./playlist_{}.m3u
.
For xtream
use a prefix like ./playlist_
prefix
and suffix
are appended after all processing is done, but before sort.
They have 2 fields:
-
field
can bename
,group
,title
-
value
a static text
options
input options for xtream
-
xtream_info_cache
deprecated. -
xtream_skip_live
true or false, live section can be skipped. -
xtream_skip_vod
true or false, vod section can be skipped. -
xtream_skip_series
true or false, series section can be skipped. -
xtream_live_stream_without_extension
default isfalse
. Some providers don't like.ts
extension, some providers need it. Now you can disable or enable it for a provider. -
xtream_live_stream_use_prefix
default istrue
. Some providers don't like/live/
prefix for streams, some providers need it. Now you can disable or enable it for a provider.
Example input config for m3u
sources:
- inputs:
- name: input1
url: 'test-input.m3u'
epg_url: 'test-epg.xml'
enabled: false
persist: 'playlist_1_{}.m3u'
- name: input2
url: 'https://raw.githubusercontent.com/iptv-org/iptv/master/streams/ad.m3u'
- name: input3
url: 'https://raw.githubusercontent.com/iptv-org/iptv/master/streams/au.m3u'
- name: input4
url: 'https://raw.githubusercontent.com/iptv-org/iptv/master/streams/za.m3u'
targets:
- name: test
output:
- type: m3u
filename: test.m3u
Example input config for xtream
sources:
inputs:
- name: local
type: xtream
persist: 'playlist_1_1{}.m3u'
headers:
User-Agent: "Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2.3 TV Safari/538.1"
Accept: application/json
Accept-Encoding: gzip
url: 'http://localhost:8080'
username: test
password: test