File: meta.sh

package info (click to toggle)
ezstream 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,832 kB
  • sloc: ansic: 9,693; sh: 4,967; xml: 398; makefile: 230
file content (14 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Minimalist example metadata script that has the behavior required by
# ezstream.
#
# From the current working directory, return the contents of metadata.txt,
# artist.txt, and title.txt.

test -z "${1}" && cat metadata.txt 2> /dev/null
test x"${1}" = "xartist" && cat artist.txt 2> /dev/null
test x"${1}" = "xtitle" && cat title.txt 2> /dev/null
test x"${1}" = "xalbum" && cat album.txt 2> /dev/null

exit 0