diff --git a/callbacks.sh b/callbacks.sh index 0ddef52..055d52f 100755 --- a/callbacks.sh +++ b/callbacks.sh @@ -76,6 +76,7 @@ fi transmit_setting=$(grep -i "^TurnOff\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*//") power=$(grep -i "^Power\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*//") rds_setting=$(grep -i "^RdsType\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*\"\(.*\)\"/\1/") +rds_static_text=$(grep -i "^RDSStaticText\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*\"\(.*\)\"/\1/") set_frequency=$(grep -i "^SetFreq\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*//") frequency=$(grep -i "^Frequency\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*//") station=$(grep -i "^Station\s*=.*" ${CFGDIR}/plugin.vastfmt | sed -e "s/.*=\s*\"\(.*\)\"/\1/") @@ -87,6 +88,7 @@ if [ -n "$DEBUG" ]; then echo "set transmit: $transmit_setting" >&2 echo "power: $power" >&2 echo "rds type: $rds_setting" >&2 + echo "rds static text: $rds_static_text" >&2 echo "set freq: $set_frequency" >&2 echo "frequency: $frequency" >&2 echo "station: $station" >&2 @@ -198,11 +200,17 @@ case $operation in vast_args="$vast_args --rds" fi fi + if [ ${#rds_static_text} -gt 0 ]; then + vast_args="$vast_args --rds-text \"$rds_static_text\"" + fi else echo "turn things off..." if [ "x$transmit_setting" == "x1" ]; then vast_args="$vast_args -n" fi + if [ ${#rds_static_text} -gt 0 ]; then + vast_args="$vast_args --rds-text \"$rds_static_text\"" + fi fi if [ -n "$DEBUG" ]; then diff --git a/plugin_setup.php b/plugin_setup.php index 3112052..02cf33c 100644 --- a/plugin_setup.php +++ b/plugin_setup.php @@ -64,11 +64,15 @@ function toggleStation() { if ($('#RdsType').val() == "disabled") { + $('#RDSStaticText').prop("disabled", true); + $('#saveRDSStaticText').prop("disabled", true); $('#Station').prop("disabled", true); $('#saveStation').prop("disabled", true); } else { + $('#RDSStaticText').prop("disabled", false); + $('#saveRDSStaticText').prop("disabled", false); $('#Station').prop("disabled", false); $('#saveStation').prop("disabled", false); } @@ -82,6 +86,7 @@ function toggleStation()

Set frequency on playlist start/stop:

Frequency: MHz

RDS Type: "disabled", "RT+"=>"rtp", "RT"=>"rt", "PS"=>"ps"), "vastfmt", "toggleStation"); ?>

+

RDS Static Text:

Station ID: