Skip to content

Commit 92f151d

Browse files
committed
fix a db issue that kormoc found while connecting to non-svn mythtv
1 parent e1f32d5 commit 92f151d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

trunk/mythtv/recordings.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,17 @@ package mythtv::recordings;
6262

6363
# Try a basename file search
6464
$sh = $dbh->prepare('SELECT *, basename FROM recorded');
65-
my $rows = $sh->execute();
65+
if ($sh) {
66+
my $rows = $sh->execute();
67+
}
6668
if (defined $rows) {
6769
while ($file = $sh->fetchrow_hashref()) {
6870
push @files, $file;
6971
}
7072
}
7173
# Older mythtv; scan for files
7274
else {
73-
$sh->finish;
75+
$sh->finish if ($sh);
7476
$sh = $dbh->prepare('SELECT * FROM recorded WHERE chanid=? AND starttime=?');
7577
# Grab all of the video filenames
7678
opendir(DIR, $video_dir) or die "Can't open $video_dir: $!\n\n";

trunk/nuvexport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# $Author$
66

77
# Version
8-
$VERSION = '0.2 0.20051019.svn';
8+
$VERSION = '0.2 0.20051020.svn';
99

1010
# Autoflush buffers
1111
$|++;

trunk/nuvexport.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name: nuvexport
66
Version: 0.2
7-
Release: 0.20051019.svn
7+
Release: 0.20051020.svn
88
License: GPL
99
Summary: mythtv nuv video file conversion script
1010
URL: http://forevermore.net/nuvexport/

0 commit comments

Comments
 (0)