[mythtv-users] UK: tv_grab_uk_atlas.py not marking HD programs

mythtv at phipps-hutton.freeserve.co.uk mythtv at phipps-hutton.freeserve.co.uk
Fri Oct 10 15:21:29 UTC 2014


Quoting Robin Hill <myth at robinhill.me.uk>:

> The Atlas grabber/data doesn't set the HD property on any programs (the
> RT grabber/data used to have it set for all programs on the HD
> channels), so you'll lose the priority setting and any schedules set
> specifically for HD.
>
> I've set to raise the priority for any channel with a callsign
> containing 'HD' - that was in the frontend setting somewhere. I've also
> had to modify any HD-specific recording rules to look for channel
> callsigns containing 'HD' instead of the HD flag otherwise they were not
> recording at all.

I just have a bit of mysql that runs after mythfilldatabase that sets  
the HD flag in all the channels like the RT grabber used to:

# Mark programmes as HD if their channel is HD, the grabber cannot as  
the atlas database is per program not per channel.
echo "update program set hdtv = 0;" \ mythql
echo "select chanid from channel where callsign like '%HD';" \
| mythql \
| while read chanid
do
   echo "update program set hdtv = 1 where chanid = $chanid;"
done \
| mythql


mythql is a shell script to run mysql:

#!/bin/sh
# Convenience script to run mysql on MythTV database.
# Don't print column headers if outout is not a terminal.
if [ -t 1 ]
then
   skipheaders=""
else
   skipheaders="--skip-column-names"
fi
exec mysql --defaults-file=~/.my.mythtv.cnf $skipheaders "$@"

Cheers,
Tim.




More information about the mythtv-users mailing list