Changeset 948
- Timestamp:
- 10/14/07 06:27:39 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
grabbers/acctv_website (modified) (4 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/grabbers/acctv_website
r937 r948 23 23 my %stats; 24 24 my $o; 25 Shepherd::Common::program_begin(\$o, "acctv_website", "0.0 2", \%stats);25 Shepherd::Common::program_begin(\$o, "acctv_website", "0.03", \%stats); 26 26 27 27 my ($channels, $opt_channels, $gaps) = Shepherd::Common::read_channels($o, ("ACC")); … … 232 232 $prog->{$_} = $details_cache->{$cache_key}->{$_}; 233 233 } 234 if (defined $prog->{length}) { 235 $prog->{stop} = $prog->{start} + $prog->{length}; 236 delete $prog->{length}; 237 } 234 $prog->{stop} = $prog->{start} + $prog->{length} if (defined $prog->{length}); 238 235 $stats{cached_used}++; 239 236 return $prog; … … 289 286 if ($header eq 'Length') { 290 287 if ($content !~ /^(\d+) /) { # length 291 Shepherd::Common::log("skipped detail length : " . $td->as_HTML()) if $o->{debug};288 Shepherd::Common::log("skipped detail length : " . $td->as_HTML()); 292 289 $td = shift @tds || last; 293 290 $header = $td->as_trimmed_text(); 291 $header =~ s/[^\x20-\x7f\x0a]//g; # remove 294 292 next; 295 293 } 296 294 my $length = ($1 < 3 ? ($1*60*60) : ($1*60)); 297 295 $prog->{length} = $length; 296 $prog->{stop} = $prog->{start} + $length; 298 297 Shepherd::Common::log("set length : $length") if ($o->{debug}); 299 298 } elsif ($header eq 'Genre') { … … 328 327 } 329 328 330 if (defined $prog->{length}) {331 $prog->{stop} = $prog->{start} + $prog->{length};332 delete $prog->{length};333 }334 335 329 return $prog; 336 330 } -
trunk/status
r947 r948 16 16 grabber selectv_website 0.02 17 17 grabber citysearch 2.0.3 18 grabber acctv_website 0.0 218 grabber acctv_website 0.03 19 19 reconciler reconciler_mk2 0.35 20 20 postprocessor imdb_augment_data 0.35
