LinHES Forums
http://forum.linhes.org/

blank NUV files
http://forum.linhes.org/viewtopic.php?f=3&t=9963
Page 1 of 1

Author:  Wizzard~Of~Ozz [ Sun May 07, 2006 4:15 pm ]
Post subject:  blank NUV files

I was reading on here that the problem with blank NUV files was caused by /usr/local/bin/mythlink.sh

After reading through the code. I made the following quick modification.

Code:
                chomp;
                my ($chanid,$start,$end,$title,$subtitle) = split /\t/;
                $subtitle = "" if(!defined $subtitle);
                #my $ofn = "${chanid}_${start}_${end}.nuv";
                my $ofnmpg = "${chanid}_${start}.mpg";
                # skip if the nuv doesnt exist
                #do { print "Skipping $mythpath/$ofn\n"; next } unless -e "$mythpath/$ofn";

                #
                #do {
                #       print "Creating missing file $mythpath/$ofn\n";
                #       open ($dfile,">$mythpath/$ofn") || die("Could not open txt file. $!");
                #       print $dfile "Creating dummy file for $title $subtitle \l";
                #       close ($dfile);
                      # next;
                #} unless -e "$mythpath/$ofn";


to lines 29 through 44. Remarking the lines that create these blank NUV files.. after testing, the "pretty" directory is complete (all listed) and the nuv files are no longer being created..

Not sure what the bug is, not familiar with the language, however it appears it executes the do loop even if the file is not an NUV file whereas the mpg component of the script is enclosed in an if statement checking to see if it is Mpg or not.

Author:  cesman [ Sun May 07, 2006 4:21 pm ]
Post subject: 

The next release won't use mythlink.sh, rather it will use mythrename.pl which is based on the original. It is already in the contributes dir, so tar the mythtv source and use it as:
Code:
perl mythrename.pl --link /myth/pretty

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/