File: source-cue.liq

package info (click to toggle)
liquidsoap 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,912 kB
  • sloc: ml: 67,867; javascript: 24,842; ansic: 273; xml: 114; sh: 96; lisp: 96; makefile: 26
file content (26 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!./liquidsoap

radio = insert_metadata(sine())
f = radio.insert_metadata

# BEGIN
radio =
  source.cue(
    title=
      "My stream",
    file="backup.mp3",
    "/tmp/backup.cue",
    radio
  )
output.file(%mp3, "/tmp/backup.mp3", radio)

# END
thread.run(
  delay=1.,
  {f([("artist", "artist1"), ("album", "album1"), ("title", "title1")])}
)
thread.run(
  delay=2.,
  {f([("artist", "artist2"), ("album", "album1"), ("title", "title2")])}
)
thread.run(delay=3., shutdown)