View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: blank NUV files
PostPosted: Sun May 07, 2006 4:15 pm 
Offline
Joined: Wed Apr 12, 2006 9:37 am
Posts: 30
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 07, 2006 4:21 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu