I have a script to grab the epg from its source but it won't work. It gives me an HTTP 401 error, it appears that it is ignoring the "&password=(password)" part of the wget command.
The Script:
"#!/bin/bash
rm /var/lib/xmltvlog/xmltv.log
rm /var/lib/epg.xml*
touch /var/lib/xmltvlog/xmltv.log
echo "Download starting..." >> /var/lib/xmltvlog/xmltv.log
echo "Time: $(date)" >> /var/lib/xmltvlog/xmltv.log
#wget -O epg.xml http://(domain).(tld):(port)/xmltv.php?username=(username)&password=(password)
cat /var/lib/epg.xml | sudo socat - UNIX-CONNECT:/var/lib/.hts/tvheadend/epggrab/xmltv.sock
echo "" >> /var/lib/xmltvlog/xmltv.log
echo "Time: $(date)" >> /var/lib/xmltvlog/xmltv.log
echo "EPG Updated successfully." >> /var/lib/xmltvlog/xmltv.log"