Skip to content

Commit cb72dbf

Browse files
committed
upgrade to version 0.4 for mythtv 0.20, and clean up a couple of requirements in the spec
1 parent a8b3a60 commit cb72dbf

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

trunk/mythtv/recordings.pm

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ package mythtv::recordings;
4040
add_arg('date:s', 'Date format used for human-readable dates.');
4141

4242
#
43-
# load_recordings:
4443
# Load all known recordings
4544
#
4645
sub load_recordings {
@@ -63,7 +62,6 @@ package mythtv::recordings;
6362
# Try a basename file search
6463
my $rows;
6564
$sh = $dbh->prepare('SELECT *, basename FROM recorded');
66-
die "nuvexport 0.3 requires MythTV 0.19\n" unless ($sh);
6765
$rows = $sh->execute();
6866
if (defined $rows) {
6967
while ($file = $sh->fetchrow_hashref()) {
@@ -77,10 +75,9 @@ package mythtv::recordings;
7775
die "No valid recordings found!\n\n" unless (@files);
7876

7977
# Prepare a query to look up GOP info used to determine mpeg recording length
80-
$q = 'SELECT MAX(mark) FROM recordedmarkup WHERE chanid=? AND starttime=?';
78+
$q = 'SELECT MAX(mark) FROM recordedseek WHERE chanid=? AND starttime=?';
8179
$sh = $dbh->prepare($q);
82-
$q2 = 'SELECT MAX(mark) FROM recordedseek WHERE chanid=? AND starttime=?';
83-
$sh2 = $dbh->prepare($q2);
80+
die "nuvexport $VERSION requires MythTV 0.20\n" unless ($sh);
8481

8582
# Prepare a query to pull out cutlist information
8683
my $c_q = 'SELECT type, mark FROM recordedmarkup WHERE chanid=? AND starttime=? AND type IN (0,1) ORDER BY mark';
@@ -121,11 +118,6 @@ package mythtv::recordings;
121118
$sh->execute($info{'chanid'}, $info{'starttime'})
122119
or die "Could not execute ($q): $!\n\n";
123120
($info{'last_frame'}) = $sh->fetchrow_array();
124-
if (!$info{'last_frame'} || $info{'last_frame'} < 1) {
125-
$sh2->execute($info{'chanid'}, $info{'starttime'})
126-
or die "Could not execute ($q): $!\n\n";
127-
($info{'last_frame'}) = $sh2->fetchrow_array();
128-
}
129121
# Cleanup
130122
$info{'starttime_sep'} = $info{'starttime'};
131123
$info{'starttime_sep'} =~ s/\D+/-/sg;
@@ -186,7 +178,6 @@ package mythtv::recordings;
186178
}
187179

188180
#
189-
# generate_showtime:
190181
# Returns a nicely-formatted timestamp from a specified time
191182
#
192183
sub generate_showtime {
@@ -197,9 +188,7 @@ package mythtv::recordings;
197188
$day = int($day);
198189
# Special datetime format?
199190
if ($showtime = arg('date')) {
200-
#print "$year-$month-$day-$hour-$minute-$second -> ",ParseDate("$year-$month-$day $hour:$minute:$second"), "\n";
201191
$showtime = UnixDate(ParseDate("$year-$month-$day $hour:$minute:$second"), $showtime);
202-
#print "$showtime\n";exit;
203192
}
204193
# Default to the standard
205194
else {

trunk/nuvexport

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#!/usr/bin/perl -w
22
#
3-
# $Date$
4-
# $Revision$
5-
# $Author$
3+
# Export MythTV recordings into a variety of formats.
4+
#
5+
# @url $URL$
6+
# @date $Date$
7+
# @version $Revision$
8+
# @author $Author$
9+
# @license GPL
10+
#
611

712
# Version
8-
$VERSION = '0.3 0.20060915.svn';
13+
$VERSION = '0.4 0.20060915.svn';
914

1015
# Autoflush buffers
1116
$|++;

trunk/nuvexport.spec

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
Name: nuvexport
6-
Version: 0.3
6+
Version: 0.4
77
Release: 0.20060915.svn
88
License: GPL
99
Summary: mythtv nuv video file conversion script
@@ -20,14 +20,12 @@ Requires: perl >= 5.6
2020
Requires: perl-DateManip
2121
Requires: perl-DBD-MySQL
2222
Requires: perl-DBI
23-
#Requires: perl-Time-HiRes # This is now built into the core perl package.
24-
Requires: transcode >= 0.6.12
25-
Requires: ffmpeg >= 0.4.9
23+
Requires: transcode >= 0.6.12
24+
Requires: ffmpeg >= 0.4.9
2625
Requires: mjpegtools >= 1.6.2
2726
Requires: mplayer
28-
#Requires: divx4linux
29-
# Actually requires the id3tag program, but it lives in this libarary
30-
Requires: id3lib
27+
28+
Requires: /usr/bin/id3tag
3129

3230
# Provides some of its own perl modules -- rpm complains if this isn't included
3331
Provides: perl(nuvexport::shared_utils)

0 commit comments

Comments
 (0)