Advertisement
and_cesbo

MaxTV with Astra

Feb 12th, 2015
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. a1 = dvb_tune({
  2.     adapter = 1,
  3.     type = "S2",
  4.     tp = "11512:h:30000",
  5. })
  6.  
  7. make_channel({
  8.     name = "Rtl Plus",
  9.     input = { "dvb://a1#pnr=20&cam" },
  10.     output = { "http://0:8000/channel-1" }
  11. })
  12.  
  13. make_channel({
  14.     name = "National Geo",
  15.     input = { "dvb://a1#pnr=30&cam" },
  16.     output = { "http://0:8000/channel-2#keep_active" }
  17. })
  18.  
  19. make_channel({
  20.     name = "National Geo Wild",
  21.     input = { "dvb://a1#pnr=31&cam" },
  22.     output = { "http://0:8000/channel-3#keep_active" }
  23. })
  24.  
  25. c4 = make_channel({
  26.     name = "Animal Planet",
  27.     input = { "dvb://a1#pnr=36&cam" },
  28.     output = { "http://0:8000/channel-4#keep_active" }
  29. })
  30.  
  31. make_channel({
  32.     name = "Fox Life",
  33.     input = { "dvb://a1#pnr=61&cam" },
  34.     output = { "http://0:8000/channel-6#keep_active" }
  35. })
  36.  
  37. make_channel({
  38.     name = "Fox Crime",
  39.     input = { "dvb://a1#pnr=62&cam" },
  40.     output = { "http://0:8000/channel-7#keep_active" }
  41. })
  42.  
  43. make_channel({
  44.     name = "Universal",
  45.     input = { "dvb://a1#pnr=63&cam" },
  46.     output = { "http://0:8000/channel-8#keep_active" }
  47. })
  48.  
  49. make_channel({
  50.     name = "Tv 1000",
  51.     input = { "dvb://a1#pnr=65&cam" },
  52.     output = { "http://0:8000/channel-9#keep_active" }
  53. })
  54.  
  55. -- cheat to restart fourth channel
  56. timer({
  57.     interval = 60,
  58.     callback = function(timer_instance)
  59.         timer_instance:close()
  60.         local cconf = c4.config
  61.         kill_channel(c4)
  62.         c4 = make_channel(cconf)
  63.     end,
  64. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement