I want to exclude episodes that have Deaf Signing. In the UK some programs are rebroadcast with a deaf signer included. Obviously, that's a great service if you need it but I personally do not want Mythtv to record them. It happens sometimes when the scheduler elects to record the Deaf Signed version of a program if there is a possible conflict at the original showing time or the episode was missed for some reason.
As far as I'm aware there is now way in a recording rule to specify any filters to exclude an episode. If any one knows of a way of doing this within the recording rule then please let me know.
In the mean time, I've come up with a hack which I thought I'd share. I've added a BEFORE INSERT trigger to the Program table in the DB (see below). It works by throwing an error on the insert if the condition is met which prevents the program being inserted. Since its not inserted the scheduler does not find the program.
Code: Select all
DELIMITER //
CREATE TRIGGER prevent_deaf_signed_insert_trigger
BEFORE INSERT ON program
FOR EACH ROW
BEGIN
IF NEW.subtitletypes like '%SIGNED%'
THEN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Deaf signed program ignored';
END IF;
END//
DELIMITER ;
Anyone know of a better way?
Paul