Skip to content

Commit 1e268f0

Browse files
committed
fix the "undefined" errors for single-program list info -- thanks GreyFoxx
1 parent 4684ecc commit 1e268f0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

trunk/nuv_export/ui.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,12 @@ package nuv_export::ui;
199199
my @episodes = @_;
200200
my $num_episodes = @{$Shows{$show}};
201201
# Only one episode recorded?
202-
return ('v', $Shows{$show}->[0]) if ($num_episodes == 1);
202+
if ($num_episodes == 1) {
203+
# Make sure the finfo gets loaded
204+
load_finfo($Shows{$show}[0]);
205+
# Return the single show -- user doesn't need a prompt
206+
return ('v', $Shows{$show}->[0]);
207+
}
203208
# Define a newline + whitespace so we can tab out extra lines of episode description
204209
my $newline = "\n" . ' ' x (4 + length $num_episodes);
205210
# Build the query

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.20050829.svn';
8+
$VERSION = '0.2 0.20050917.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.20050829.svn
7+
Release: 0.20050917.svn
88
License: GPL
99
Summary: mythtv nuv video file conversion script
1010
URL: http://forevermore.net/nuvexport/

0 commit comments

Comments
 (0)