[mythtv-commits] Ticket #8707: ASCII NULL (\0) in metadata can cause Live TV to fail and recordings to disappear from mythfrontend
MythTV
noreply at mythtv.org
Wed Apr 13 17:29:21 UTC 2011
#8707: ASCII NULL (\0) in metadata can cause Live TV to fail and recordings to
disappear from mythfrontend
-------------------------------+----------------------------
Reporter: glemsom@… | Owner: stuarta
Type: defect | Status: assigned
Priority: major | Milestone: 0.24.1
Component: MythTV - EIT | Version: 0.23-fixes
Severity: medium | Resolution:
Keywords: EPG eit \0 | Ticket locked: 0
-------------------------------+----------------------------
Comment (by waisted@…):
Im using EIT in Denmark. The above-mentioned symptoms happened to me just
last week (early april). I guess the EIT-format in DK has changed (at
least for my TV-provider ("Yousee Cable")).
Apart from "No recordings found" in Watch Recordings and "irrecoverable
recorder error" during Live TV I also experience buggy behaviour when
trying to schedule recordings in EPG. Pressing R does nothing visual but
exiting the EPG and reentering the EPG suddenly shows the program
scheduled for recording. I have to exit and reenter the EPG for every
schedule-change I make but only the first attempt will become "green" in
the EPG indicating a scheduled recording. It is perhaps notable that this
is not a problem when using MythWeb.
Might I suggest this workaround to users like myself, until the stripping
of "bad chars" from the EIT is implemented.
For your mythconverg-DB inside the mysql-prompt do this:
{{{
delimiter //
CREATE TRIGGER no_zeros_rec BEFORE UPDATE ON recorded
FOR EACH ROW
BEGIN
IF NEW.title ='\0' THEN SET NEW.title = 'none';
ELSEIF NEW.subtitle ='\0' THEN SET NEW.subtitle = 'none';
ELSEIF NEW.description ='\0' THEN SET NEW.description = 'none';
END IF;
END;//
CREATE TRIGGER no_zeros_pro BEFORE UPDATE ON program
FOR EACH ROW
BEGIN
ELSEIF NEW.subtitle ='\0' THEN SET NEW.subtitle = 'none';
ELSEIF NEW.description ='\0' THEN SET NEW.description = 'none';
END IF;
END;//
delimiter ;
}}}
I've only had trouble with "subtitle"-values when it comes to the program-
table, but I figure that "description" might be prone to the same \0 as
subtitle from the EIT-data.
In my opinion this is somewhat severe as it rendered my box useless as a
recorder unless going to a PC and using mythweb. I could not see previous
recordings and could not schedule new recordings leaving my box a crippled
music/video-player.
Please let me know if I can help debugging in any way!
--
Ticket URL: <http://code.mythtv.org/trac/ticket/8707#comment:6>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list