mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-18 22:03:01 +02:00
10
config_sources_inputs
euzu edited this page 2025-02-13 15:05:19 +01:00
inputs
inputs is a list of sources.
Each input has the following attributes:
nameis mandatory, it must be uniquetypeis optional, default ism3u. Valid values arem3uandxtreamenabledis optional, default is true, if you disable the processing is skipped. (The '-t' cli-argument overrides this option)persistis optional, you can skip or leave it blank to avoid persisting the input file. The{}in the filename is filled with the current timestamp.urlfor typem3uis the download url or a local filename of the input-source. For typextreamit ishttp://<hostname>:<port>epg_urloptional xmltv urlheadersis optionalusernameonly mandatory for typextreampaswordonly mandatory for typextreamprefixis optional, it is applied to the given field with the given valuesuffixis optional, it is applied to the given field with the given valueoptionsoptional
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:
fieldcan bename,group,titlevaluea static text
options
input options for xtream
xtream_info_cachedeprecated.xtream_skip_livetrue or false, live section can be skipped.xtream_skip_vodtrue or false, vod section can be skipped.xtream_skip_seriestrue or false, series section can be skipped.xtream_live_stream_without_extensiondefault isfalse. Some providers don't like.tsextension, some providers need it. Now you can disable or enable it for a provider.xtream_live_stream_use_prefixdefault 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