Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. #!/usr/bin/liquidsoap
  2. #set("init.daemon.pidfile.path","./<script>.pid")
  3. %include "am-filters/filtroam.inc.liq"
  4.  
  5.  
  6. default = playlist("/ftp/neanderthal/playlist", mode="random", reload=600)
  7. jingles = playlist("ftp/neanderthal/jingles")
  8. default = random(weights = [ 1, 10 ],[ jingles, default ])
  9. live = audio_to_stereo(input.http("http://radiolina.info:8000/radiomario-live"))
  10.  
  11. jatta = playlist("/ftp/radiodimassa/JattaNerA")
  12. cattivi = playlist("/ftp/neanderthal/palinsesto/cattivi_pensieri")
  13. contro_greca = playlist("/ftp/neanderthal/palinsesto/controinformazione_dalla_grecia")
  14. info_vario = playlist("/ftp/neanderthal/palinsesto/info_vario")
  15. rise = playlist("/ftp/neanderthal/rise_above")
  16. bile = playlist("/ftp/neanderthal/bile")
  17. back = playlist("/ftp/neanderthal/back_to_basics)
  18. brodo = playlist("/ftp/neanderthal/brodo")
  19. mutillo = playlist("/ftp/neanderthal/mutillo")
  20. onanista = playlist("/ftp/neanderthal/onanista")
  21. murotorto = playlist("/ftp/neanderthal/murotorto")
  22.  
  23. info = random([ jatta, cattivi, contro_greca, info_vario ])
  24.  
  25. lunedi =
  26. switch(track_sensitive = false,
  27. [
  28. ({10h-12h}, info),
  29. ({12h-16h}, default),
  30. ({16h-18h}, random([ rise, bile]),
  31. ({18h-20h}, back)
  32. ])
  33.  
  34. martedi =
  35. switch(track_sensitive = false,
  36. [
  37. ({10h-12h}, info),
  38. ({12h-16h}, default),
  39. ({16h-18h}, mutillo),
  40. ({18h-20h}, brodo)
  41. ])
  42.  
  43. mercoledi =
  44. switch(track_sensitive = false,
  45. [
  46. ({10h-12h}, info),
  47. ({12h-16h}, default),
  48. ({16h-18h}, onanista),
  49. ({18h-20h}, default)
  50. ])
  51.  
  52. giovedi =
  53. switch(track_sensitive = false,
  54. [
  55. ({10h-12h}, info),
  56. ({12h-16h}, default),
  57. ({16h-18h}, jatta),
  58. ({18h-20h}, default)
  59. ])
  60.  
  61. venerdi =
  62. switch(track_sensitive = false,
  63. [
  64. ({10h-12h}, info),
  65. ({12h-16h}, default),
  66. ({16h-18h}, murotorto),
  67. ({18h-20h}, 4stracci)
  68. ])
  69.  
  70. sabato =
  71. switch(track_sensitive = false,
  72. [
  73. ({10h-12h}, info),
  74. ({12h-16h}, default),
  75. ({16h-18h}, brodo),
  76. ({18h-20h}, default)
  77. ])
  78.  
  79. domenica =
  80. switch(track_sensitive = true,
  81. [
  82. ({10h-12h}, info),
  83. ({12h-16h}, default),
  84. ({16h-18h}, default),
  85. ({18h-20h}, default)
  86. ])
  87.  
  88. palinsesto =
  89.  
  90. switch(track_sensitive= false,
  91. [
  92. ({1w}, lunedi),
  93. ({2w}, martedi),
  94. ({3w}, mercoledi),
  95. ({4w}, giovedi),
  96. ({5w}, venerdi),
  97. ({6w}, sabato),
  98. ({7w}, domenica)
  99. ])
  100.  
  101. radio = fallback(track_sensitive = false, [live, palinsesto, default])
  102. radioAM = amplify(3.,override="replay_gain",filtroAM(radio))
  103.  
  104.  
  105. output.icecast(
  106. %mp3(bitrate=128),
  107. mount="/radiomario-128.mp3",
  108. host="radiolina.info", port=8000, password="donthackme",
  109. fallible=true,
  110. radio)
  111.  
  112. output.icecast(
  113. %mp3(bitrate=128),
  114. mount="radiomario-AM",
  115. host="radiolina.info", port=8000, password="donthackme",
  116. fallible=true,
  117. audio_to_stereo(radioAM))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement