mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Allow external control of meta.sh output for increased usefulness
This commit is contained in:
parent
cec131e83a
commit
8e9533c5e3
@ -5,7 +5,10 @@ dist_examples_DATA = \
|
||||
ezstream-file_template.xml \
|
||||
ezstream-full.xml \
|
||||
ezstream-minimal.xml \
|
||||
ezstream-video.xml
|
||||
ezstream-video.xml \
|
||||
metadata.txt \
|
||||
artist.txt \
|
||||
title.txt
|
||||
dist_examples_SCRIPTS = meta.sh play.sh playlist-logger.sh
|
||||
|
||||
CLEANFILES = core *.core *~ .*~
|
||||
|
1
examples/artist.txt
Normal file
1
examples/artist.txt
Normal file
@ -0,0 +1 @@
|
||||
Great Artist
|
@ -2,7 +2,10 @@
|
||||
|
||||
# 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}" && echo "Ezstream presents"
|
||||
test x"${1}" = "xartist" && echo "Great Artist"
|
||||
test x"${1}" = "xtitle" && echo "Great Song"
|
||||
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
|
||||
|
1
examples/metadata.txt
Normal file
1
examples/metadata.txt
Normal file
@ -0,0 +1 @@
|
||||
Ezstream presents: Great Artist - Great Song
|
1
examples/title.txt
Normal file
1
examples/title.txt
Normal file
@ -0,0 +1 @@
|
||||
Great Song
|
Loading…
Reference in New Issue
Block a user