[mythtv-commits] Ticket #4138: DVB channels messed up after scanning or importing from channels.conf
MythTV
mythtv at cvs.mythtv.org
Wed Jan 16 19:06:13 UTC 2008
#4138: DVB channels messed up after scanning or importing from channels.conf
-----------------------------------------------+----------------------------
Reporter: mc-mythtv at dontcare.sganawa.org | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20.2
Severity: medium | Resolution:
Mlocked: 0 |
-----------------------------------------------+----------------------------
Comment(by mc-mythtv at dontcare.sganawa.org):
Due to popular demand :), I've attached the script I wrote to import
channels.conf in Mythtv SQL DB. I've recently used it and seems to work
fine.
Basically the steps are:
- Export channel and dtv_multiplex tables in two text files;
- Run script on exported tables, reading channel.conf;
- Import back modified tables in mysql.
The exact needed commands are inside script's comments.
The script tries to modify the least possible about existing
configuration, however it could be smarter in doing this (it assumes that
during updates pid is maintained, which is not always the case).
If you want to check exactly what's going on (recommended!), you can set
"debug" variable to level 1-4 (i.e. <scriptname> -v debug=3
channels.conf). Levels above 4 are at "programming" level and probably are
too verbose.
...so have fun!
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4138#comment:7>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list