[mythtv-users] Long films and news breaks

Stutty stutty at gmail.com
Thu Mar 23 17:10:47 UTC 2006


I think the first step would be for xmltv or whatever is grabbing the
listings to identify that the two segments are part of the same
program, for example I have the following patch to tv_grab_uk_rt:

Basically this was to ensure that all 4* films were recorded properly,
but it does get round the duplicate matching problem.

82,83d81
< my $saved_star_rating;
< my $saved_film_title;
363,366d360
<
< $saved_film_title     = "";
< $saved_star_rating    = 0;
<
462,485d443
<
<
<       if ($film) {
<               $episode = 1;
<               #warn "$title = $saved_film_title ? , $saved_star_rating *'s";
<               if ("$title" eq "$saved_film_title") {
<                       $sub_title = "Part 2" if !(defined $sub_title);
<                       $episode = 2;
<
<                       if (!defined($star_rating) && ($saved_star_rating >0)) {
<                               $star_rating = $saved_star_rating;
<                       }
<               }
<               else
<               {
<                       if (defined $star_rating) {
<                               $saved_star_rating = $star_rating;
<                               $saved_film_title = $title;
<                               # warn "$saved_film_title < ,
$saved_star_rating *'s<";
<                       }
<               }
<       }
<       for ($sub_title) { $p{'sub-title'} = [ [ $_ ] ] if defined }
<


More information about the mythtv-users mailing list