1
0
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:
Moritz Grimm 2017-01-02 02:08:26 +01:00
parent cec131e83a
commit 8e9533c5e3
5 changed files with 13 additions and 4 deletions

View File

@ -5,7 +5,10 @@ dist_examples_DATA = \
ezstream-file_template.xml \ ezstream-file_template.xml \
ezstream-full.xml \ ezstream-full.xml \
ezstream-minimal.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 dist_examples_SCRIPTS = meta.sh play.sh playlist-logger.sh
CLEANFILES = core *.core *~ .*~ CLEANFILES = core *.core *~ .*~

1
examples/artist.txt Normal file
View File

@ -0,0 +1 @@
Great Artist

View File

@ -2,7 +2,10 @@
# Minimalist example metadata script that has the behavior required by # Minimalist example metadata script that has the behavior required by
# ezstream. # ezstream.
#
# From the current working directory, return the contents of metadata.txt,
# artist.txt, and title.txt.
test -z "${1}" && echo "Ezstream presents" test -z "${1}" && cat metadata.txt 2> /dev/null
test x"${1}" = "xartist" && echo "Great Artist" test x"${1}" = "xartist" && cat artist.txt 2> /dev/null
test x"${1}" = "xtitle" && echo "Great Song" test x"${1}" = "xtitle" && cat title.txt 2> /dev/null

1
examples/metadata.txt Normal file
View File

@ -0,0 +1 @@
Ezstream presents: Great Artist - Great Song

1
examples/title.txt Normal file
View File

@ -0,0 +1 @@
Great Song