2024-11-09, 06:09 PM
I'm trying to get an HDHR EXTRA template to work and having trouble finding a variable to use for the channel number in the <args> line.
This is the bash command...
And this is the EXTRA that I have currently
In the <args> line the {channel} variable shows up as 2 rather than 2.1 in the logs so the stream fails.
Is there a way to get the whole channel number as a variable to make this work?
I attached some logs if helpful.
This is the bash command...
Code:
ffmpeg -re -v panic -i "$1" -vcodec copy -acodec copy -f mpegts -
And this is the EXTRA that I have currently
Code:
<?xml version='1.0' encoding='utf-8'?>
<extras title="HDHR Override">
<channel number="{channel-number}" name="{channel-name}">
<command>bash</command>
<args>-c /var/opt/nextpvr/scripts/hdhrconnect/hdhrconnect.sh http://10.239.92.190:5004/tuner0/v{channel}</args>
</channel>
</extras>
In the <args> line the {channel} variable shows up as 2 rather than 2.1 in the logs so the stream fails.
Is there a way to get the whole channel number as a variable to make this work?
I attached some logs if helpful.