[mythtv-users] RE:Fedora Myth(TV)ology & PVR-350 doc additions
John DeLuca
johnfdeluca at yahoo.com
Wed Feb 11 11:19:51 EST 2004
Actually, the fix for the Keybindings update via MythWeb was posted by Gregorio Gervasio as follows. I had a dot in my hostname and was hence affected. After applying the recommended changes below, presto, whamo, I was able to update keybindings.
Does your frontend hostname have a '.domain' or any
non-alphanumeric characters (eg. '-')? I noticed these characters get
converted to '_' somewhere along the way so they fail to match the
hostname in the database.
I use the following hack to restore the '.' character but
it's obviously not a general solution. (Any PHP experts know how to
preserve these characters properly?)
Otherwise, you could modify the mythconverg database directly.
Index: settings_keys.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/settings_keys.php,v
retrieving revision 1.3
diff -u -r1.3 settings_keys.php
--- settings_keys.php 13 Dec 2003 21:46:05 -0000 1.3
+++ settings_keys.php 6 Feb 2004 10:05:04 -0000
@@ -16,6 +16,7 @@
{
list($match, $dest, $host) = $matches;
$dest = str_replace("_", " ", $dest);
+ $host = str_replace("_", ".", $host);
$usehost = $host;
$query = 'UPDATE jumppoints SET keylist='.escape($_POST[$key]).' WHERE destination='.escape($dest).' AND hostname='.escape($host).';';
$result = mysql_query($query)
@@ -24,8 +25,9 @@
else if (preg_match('/^key:([\\w_\/]+):(\\w+):(\\w+)$/', $key, $matches))
{
list($match, $context, $action, $host) = $matches;
- $usehost = $host;
$context = str_replace("_", " ", $context);
+ $host = str_replace("_", ".", $host);
+ $usehost = $host;
$query = 'UPDATE keybindings SET keylist='.escape($_POST[$key]).' WHERE context='.escape($context).' AND action='.escape($action).' AND hostname='.escape($host).';';
$result = mysql_query($query)
or trigger_error('SQL Error: '.mysql_error(), FATAL);
As of MythTV 0.13, these keys can be customized, through an interface in MythWeb
You may want to point out that this doesn't work at the moment.... I know I am having issues with it, and I've seen a couple of other messages that others are having problems
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20040211/23331bfb/attachment.html
More information about the mythtv-users
mailing list