[mythtv-commits] Ticket #10136: EIT update gives DB Error about duplicate primary keys

MythTV noreply at mythtv.org
Tue Mar 5 20:13:29 UTC 2013


#10136: EIT update gives DB Error about duplicate primary keys
-------------------------------------+-----------------------------
 Reporter:  klaas.de.waal@…          |          Owner:  stuarta
     Type:  Patch - Bug Fix          |         Status:  new
 Priority:  minor                    |      Milestone:  0.26.1
Component:  MythTV - EIT             |        Version:  Master Head
 Severity:  medium                   |     Resolution:
 Keywords:  eit duplicate key ziggo  |  Ticket locked:  0
-------------------------------------+-----------------------------

Comment (by tycholursen@…):

 The workaround I've been using for several years now is to run a simple
 scrip by cron.
 Ziggo updates the eit data between 02:00 AM and 04: AM (I think), so I run
 it daily at 06:00 AM

 While this is an ugly one, it keeps my programm guide sane at all times.

 {{{
 #!/bin/bash

 /etc/init.d/mythtv-backend stop && sleep 2

 RESULT=`/usr/bin/mysql --user=root --password=XXXX<<SQL
 use mythconverg
 TRUNCATE TABLE program;
 TRUNCATE TABLE eit_cache;
 flush privileges;
 quit
 SQL`

 sleep 2 && /etc/init.d/mythtv-backend start

 exit 0
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10136#comment:5>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list