[mythtv-commits] Ticket #857: Patch to mythrename.pl to work
correctly with slave backends
MythTV
mythtv at cvs.mythtv.org
Thu Dec 22 18:45:24 EST 2005
#857: Patch to mythrename.pl to work correctly with slave backends
-------------------------------------+--------------------------------------
Reporter: tom at redpepperracing.com | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: low |
-------------------------------------+--------------------------------------
This small patch updates mythrename.pl to use the hostname when deciding
what records to process. I only use the --link option, so further testing
may be required.
{{{
--- /usr/local/src/mythtv/contrib/mythrename.pl 2005-12-22
18:39:06.000000000 -0500
+++ mythrename.pl 2005-12-22 18:39:34.000000000 -0500
@@ -230,9 +230,9 @@
}
# Prepare a database queries
- $q = 'SELECT * FROM recorded';
+ $q = 'SELECT * FROM recorded WHERE hostname=?';
$sh = $dbh->prepare($q);
- $sh->execute() or die "Couldn't execute $q: $!\n";
+ $sh->execute($hostname) or die "Couldn't execute $q: $!\n";
# Only if we're renaming files
unless ($dest) {
}}}
I hope I formatted it correctly.
Tom
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/857>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list