Changeset 454
- Timestamp:
- 01/10/07 23:31:27 (6 years ago)
- Files:
-
- 2 modified
-
applications/shepherd (modified) (3 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r449 r454 2 2 3 3 my $progname = 'shepherd'; 4 my $version = '0.4.3 5';4 my $version = '0.4.36'; 5 5 6 6 # tv_grab_au … … 2101 2101 } 2102 2102 2103 if ($grabber =~ /\[cache\]/) 2103 if (!supports_region($grabber)) 2104 { 2105 $hits = 0; 2106 } 2107 elsif ($grabber =~ /\[cache\]/) 2104 2108 { 2105 2109 $hits = find_cache_hits($grabber, $key); … … 2223 2227 } 2224 2228 2229 # Returns 1 if the grabber supports our set region, else 0 2230 sub supports_region 2231 { 2232 my ($grabber) = @_; 2233 2234 my $rsupport = query_config($grabber, 'regions'); 2235 return 1 unless ($rsupport); # Empty string means full support 2236 2237 my $match = ($rsupport =~ /\b$region\b/); 2238 my $exceptions = ($rsupport =~/^-/); 2239 return ($match != $exceptions); 2240 } 2241 2225 2242 # Return 0 if the grabber can't provide data for this day, 2226 2243 # 1 if it can reliably, and 0.5 if it can unreliably. -
status
r453 r454 1 application shepherd 0.4.3 51 application shepherd 0.4.36 2 2 grabber yahoo7widget 1.76 3 3 grabber rex 3.3.9-r1
