X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fplayctl.html.sh;h=5d0159791e04095245ae9eaad0fbfe5d0b584dab;hb=5b144c02682c833344dbe71c55b7dc53f63ef45d;hp=8a94bd35ccf1feaa25d60e87931e7051bd1d8553;hpb=a71c2f4849203931aa2437e3ff7d8c200c6f5239;p=serve0 diff --git a/templates/playctl.html.sh b/templates/playctl.html.sh index 8a94bd3..5d01597 100755 --- a/templates/playctl.html.sh +++ b/templates/playctl.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -16,41 +16,73 @@ # along with Serve0 If not, see . cat < + +Search + - Order by: + Order by Name Date Length - + + + Dismiss + - Clear All - Dismiss +Audio + + + + Amp Off + Amp On + + + $(pa_sinks |while read no name; do + printf '%s' "$no" "$name" + done) + + Hide +Preferences + $(. $_EXEC/templates/preferences.html.sh) + +{+} + + Hide + + Index view + Browse Folders + + + $info - Download - - - <<< - << - ■ - || / ▶ - >> - >>> - - Amp Off - Amp On - - $(for n in $(seq 0 5 100); do - printf ' ' "$([ "$volume" = "$n" ] && printf selected)" "$n" - done) - - + + + + + <<< + << + ■ + || / ▶ + >> + >>> + + + $(for n in $(seq 0 5 100); do + printf ' ' \ + "$( [ "$n" = "$volume" ] && printf selected + [ "$n" = "$((volume - 10))" ] && printf llselected + [ "$n" = "$((volume - 5))" ] && printf lselected + [ "$n" = "$((volume + 5))" ] && printf gselected + [ "$n" = "$((volume + 10))" ] && printf ggselected + )" "$n" + done) + $(printf "%d:%02d min" $(($length / 60)) $(($length % 60)) ) @@ -59,52 +91,56 @@ cat <\1 :g') ${description:+$(printf %s "$description" |_wiki)} + - - - - - - $( - for cat in $(list_categories); do - printf '%s:' "${cat}" - catt="${cat}:" - [ "$catt" = "none:" ] && catt='' - - printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do - printf '%s' \ - "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \ - "$line" "${line#*:}" - done - printf '' - done - ) + + + + + - - Additional Tags (one per line): - - - - Description: - $description - - - + $( + for cat in $(list_categories); do + printf '%s:' "${cat}" + catt="${cat}:" + [ "$catt" = "none:" ] && catt='' + + printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do + printf '%s' \ + "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \ + "$line" "${line#*:}" + done + printf '' + done + ) - Hide + + Additional Tags (one per line): + + + + Description: + $description + + + - - + Hide + + + EOF cnt=0 progress \ | while read p t; do - printf '%s\n' "${p}" "${t}" + printf '%d:%02d\n' "${p}" "$(($t / 60))" "$(($t % 60))" done +printf '' + # vi:set filetype=html:
%s:' "${cat}" - catt="${cat}:" - [ "$catt" = "none:" ] && catt='' - - printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do - printf '%s' \ - "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \ - "$line" "${line#*:}" - done - printf '
- Additional Tags (one per line): - -
- Description: - $description -