Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a1 = dvb_tune({
- adapter = 1,
- type = "S2",
- tp = "11512:h:30000",
- })
- make_channel({
- name = "Rtl Plus",
- input = { "dvb://a1#pnr=20&cam" },
- output = { "http://0:8000/channel-1" }
- })
- make_channel({
- name = "National Geo",
- input = { "dvb://a1#pnr=30&cam" },
- output = { "http://0:8000/channel-2#keep_active" }
- })
- make_channel({
- name = "National Geo Wild",
- input = { "dvb://a1#pnr=31&cam" },
- output = { "http://0:8000/channel-3#keep_active" }
- })
- c4 = make_channel({
- name = "Animal Planet",
- input = { "dvb://a1#pnr=36&cam" },
- output = { "http://0:8000/channel-4#keep_active" }
- })
- make_channel({
- name = "Fox Life",
- input = { "dvb://a1#pnr=61&cam" },
- output = { "http://0:8000/channel-6#keep_active" }
- })
- make_channel({
- name = "Fox Crime",
- input = { "dvb://a1#pnr=62&cam" },
- output = { "http://0:8000/channel-7#keep_active" }
- })
- make_channel({
- name = "Universal",
- input = { "dvb://a1#pnr=63&cam" },
- output = { "http://0:8000/channel-8#keep_active" }
- })
- make_channel({
- name = "Tv 1000",
- input = { "dvb://a1#pnr=65&cam" },
- output = { "http://0:8000/channel-9#keep_active" }
- })
- -- cheat to restart fourth channel
- timer({
- interval = 60,
- callback = function(timer_instance)
- timer_instance:close()
- local cconf = c4.config
- kill_channel(c4)
- c4 = make_channel(cconf)
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement