Changeset 272
- Timestamp:
- 11/21/06 19:03:15 (7 years ago)
- Files:
-
- 2 modified
-
grabbers/rex (modified) (8 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grabbers/rex
r186 r272 3 3 # "Rex" 4 4 5 my $version = '3.3. 6';5 my $version = '3.3.7'; 6 6 7 7 # An Australian TV Guide Grabber (a.k.a. tv_grab_au) … … 68 68 # 3.3.5 : Bugfix : support opt_channels (HDTV in Shepherd) 69 69 # 3.3.6 : Bugfix : neater options parsing 70 # 3.3.7 : Bugfix : now runs from current dir, not ~/.rex/ 70 71 71 72 use strict; … … 80 81 use JavaScript; 81 82 use Storable; 83 use Cwd; 82 84 83 85 use XMLTV; … … 89 91 my $progname = "Rex"; 90 92 my $lang = "en"; 91 92 my $output_dir = ($ENV{HOME} ? $ENV{HOME} . "/." : "/var/local/") .93 lc($progname); # Default location is ~/.rex/94 95 my $cache_file = "$output_dir/cache.dat";96 93 97 94 my ($count_dl, $count_detail, $count_bad, $count_cache, $count_changes, $count_kb) = (0) x 6; … … 363 360 return if ($opt->{test} or $opt->{nowrite_cache}); 364 361 print "Saving cache.\n"; 365 Storable::store($cached, $ cache_file);362 Storable::store($cached, $opt->{'cache-file'}); 366 363 } 367 364 … … 469 466 unless ($opt->{'ignore-cache'} or $opt->{'rebuild-cache'}) 470 467 { 471 if (-r $ cache_file)472 { 473 $cached = Storable::retrieve($ cache_file);468 if (-r $opt->{'cache-file'}) 469 { 470 $cached = Storable::retrieve($opt->{'cache-file'}); 474 471 } 475 472 else 476 473 { 477 print "Unable to read cache file: $cache_file.\n";474 print "Unable to read cache file: " . $opt->{'cache-file'} . ".\n"; 478 475 } 479 476 } … … 946 943 "Test mode : " . is_set($opt->{test}) . "\n" . 947 944 "Webwarping : " . is_set($opt->{warper}) . "\n" . 948 "Cache file : $cache_file";945 "Cache file : " . $opt->{'cache-file'}; 949 946 print ' (not reading)' if ($opt->{'ignore-cache'} or $opt->{'rebuild-cache'}); 950 947 print ' (not updating)' if ($opt->{test} or $opt->{'ignore-cache'} or $opt->{'nowrite-cache'}); … … 986 983 'region' => 94, 987 984 'stats' => 300, 988 'output' => "$output_dir/guide.xml", 989 'channels_file' => "$output_dir/channels.conf" 985 'output' => cwd() . '/output.xmltv', 986 'cache-file' => cwd() . '/cache.dat', 987 'channels_file' => cwd() . '/channels.conf' 990 988 }; 991 989 -
status
r271 r272 2 2 engine dog 0.3.10 3 3 grabber yahoo7widget 1.58-r1 4 grabber rex 3.3. 6-r14 grabber rex 3.3.7 5 5 grabber abc_website 1.70-r1 6 6 grabber abc2_website 1.70-r1
