Changeset 103
- Timestamp:
- 10/19/06 07:09:40 (7 years ago)
- Files:
-
- 9 modified
-
grabbers/abc2_website (modified) (1 diff)
-
grabbers/abc_website (modified) (1 diff)
-
grabbers/d1 (modified) (1 diff)
-
grabbers/jrobbo (modified) (1 diff)
-
grabbers/oztivo (modified) (1 diff)
-
grabbers/rex (modified) (1 diff)
-
grabbers/yahoo7widget (modified) (1 diff)
-
shepherd (modified) (8 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grabbers/abc2_website
r102 r103 34 34 my $script_start_time = [gettimeofday]; 35 35 my %stats; 36 my $channels ;36 my $channels, my $opt_channels; 37 37 my $tv_guide; 38 38 my $data_cache; -
grabbers/abc_website
r102 r103 34 34 my $script_start_time = [gettimeofday]; 35 35 my %stats; 36 my $channels ;36 my $channels, my $opt_channels; 37 37 my $tv_guide; 38 38 my $data_cache; -
grabbers/d1
r48 r103 278 278 279 279 # populate channels 280 my $channels ;280 my $channels, my $opt_channels; 281 281 if (-r $opt_channels_file) { 282 282 local (@ARGV, $/) = ($opt_channels_file); -
grabbers/jrobbo
r69 r103 40 40 # default settings 41 41 my $opt = { }; 42 my $channels ;42 my $channels, my $opt_channels; 43 43 $opt->{channels_file} = ""; 44 44 $opt->{outputfile} = cwd() . "/output.xmltv"; -
grabbers/oztivo
r101 r103 32 32 my $output_file = cwd() . "/output.xmltv"; 33 33 my $channels_file; 34 my $channels ;34 my $channels, $opt_channels; 35 35 my @clist; 36 36 my $ver; -
grabbers/rex
r95 r103 108 108 my $opt; 109 109 my $channels = {}; 110 my $opt_channels = {}; 110 111 my %chanid; 111 112 my $cached; -
grabbers/yahoo7widget
r73 r103 35 35 my $script_start_time = [gettimeofday]; 36 36 my %stats; 37 my $channels ;37 my $channels, my $opt_channels; 38 38 my $tv_guide; 39 39 -
shepherd
r100 r103 3 3 # "Shepherd" 4 4 5 my $version = '0.2.1 5';5 my $version = '0.2.16'; 6 6 7 7 # A wrapper for various Aussie TV guide data grabbers … … 30 30 # 0.2.14 : Changed online status file format 31 31 # 0.2.15 : Intelli-random grabber ordering now kinda works 32 33 #BEGIN { *CORE::GLOBAL::die = \&my_die; } 32 # 0.2.16 : config logic for HD channels 33 34 BEGIN { *CORE::GLOBAL::die = \&my_die; } 34 35 35 36 use strict; … … 91 92 my $region; 92 93 my $channels; 94 my $opt_channels; 93 95 my $config_file = "$CWD/$progname.conf"; 94 96 my $channels_file = "$CWD/channels.conf"; … … 1236 1238 return unless (fetch_file($rfile, $newfile)); 1237 1239 1238 if ($progtype ne "shepherd") {1240 if ($progtype eq "grabber") { 1239 1241 # Fetch grabber config file 1240 1242 $rfile .= ".conf"; … … 1388 1390 printf " #%d. %s%s\n",$components->{$proggy}->{order},$proggy,($components->{$proggy}->{disabled} ? " [disabled]" : "") unless $quiet; 1389 1391 } 1390 1392 printf "\n" unless $quiet; 1391 1393 $made_changes = 1; 1392 1394 } … … 1542 1544 sub write_channels_file 1543 1545 { 1544 write_file($channels_file, 'channels', [ $channels ], [ 'channels' ]); 1546 write_file($channels_file, 'channels', 1547 [ $channels, $opt_channels ], 1548 [ 'channels', 'opt_channels' ]); 1545 1549 } 1546 1550 … … 1651 1655 } 1652 1656 1653 1654 print "\nRandomly selecting grabber order.\n\n"; 1655 set_order(0); 1657 print "\nHigh Definition TV (HDTV)\n". 1658 "Most Australian TV networks broadcast at least some\n". 1659 "programmes in HDTV each week, but for the most part\n". 1660 "either upsample SD to HD or play a rolling demonstration\n". 1661 "HD clip when they don't have the programme in HD format.\n\n". 1662 "If you have a HDTV capable system and are interested in\n". 1663 "having Shepherd's postprocessors populate HDTV content\n". 1664 "then Shepherd will need to know the XMLTV IDs for the HD\n". 1665 "channels also.\n"; 1666 if (ask_boolean("\nDo you wish to include HDTV channels?")) { 1667 print "\nFor each channel you want guide data for, enter an XMLTV id\n" . 1668 "of your choice (e.g. \"sevenhd.free.au\"). If you don't need\n" . 1669 "guide data for this channel, just press Enter.\n\n"; 1670 1671 $opt_channels = {}; 1672 foreach (@channellist) 1673 { 1674 next if (($_ =~ /ABC2/i) || ($_ =~ /SBS News/i) || ($_ =~ /31/)); 1675 $_ .= "HD"; 1676 $line = ask(" \"$_\"? "); 1677 $opt_channels->{$_} = $line if ($line); 1678 } 1679 } 1680 1681 1682 print "\nHave you been running a grabber previously?\n\n". 1683 "Some data sources show the programme \"Spicks & Specks\"\n". 1684 "with an '&', some show it as \"Spicks and Specks\" with 'and'.\n". 1685 "It doesn't matter which way it is - other than if you have an existing\n". 1686 "recording policy set one way or the other, it would be preferable\n". 1687 "to not have to go and re-enter recording schedules.\n\n". 1688 "Shepherd's \"reconciler\" is smart enough to work out many subtle\n". 1689 "differences in title names and will automatically rename programmes\n". 1690 "to match the same format as previously seen.\n\n". 1691 "If you have been using a grabber in the past, if you let Shepherd\n". 1692 "know what it is, it can use that to ask the reconciler to 'learn'\n". 1693 "the subtle programme name changes between different grabbers,\n". 1694 "hopefully resulting in consistent programme names, regardless of\n". 1695 "the data source.\n\n". 1696 "Were you using one of the following data sources previously?\n". 1697 "If so, list it (or them) in order of preference.\n\n". 1698 "Choose from: "; 1699 print join(", ",query_grabbers()); 1700 print "\nProvide a comma-seperated list (in preference order) or leave blank\n". 1701 "if you have no order preference.\n"; 1702 my $order = ask("Order? "); 1703 set_order(1,$order); 1656 1704 1657 1705 show_channels(); … … 1723 1771 print "Subscribed channels:\n"; 1724 1772 print " $_ -> $channels->{$_}\n" for sort keys %$channels; 1773 print "Optional (HDTV) channels:\n"; 1774 print " $_ -> $opt_channels->{$_}\n" for sort keys %$opt_channels; 1725 1775 } 1726 1776 -
status
r101 r103 1 shepherd:0.2.1 5:shepherd2 grabber:rex:3.3.4 3 grabber:oztivo:0.7 4 grabber:abc_website:1.55-r 35 grabber:abc2_website:1.55-r 36 grabber:yahoo7widget:1.54-r 37 grabber:jrobbo:0.03-r 38 grabber:d1:0.6.2.3-r 31 shepherd:0.2.16:shepherd 2 grabber:rex:3.3.4-r2 3 grabber:oztivo:0.7-r2 4 grabber:abc_website:1.55-r4 5 grabber:abc2_website:1.55-r4 6 grabber:yahoo7widget:1.54-r4 7 grabber:jrobbo:0.03-r4 8 grabber:d1:0.6.2.3-r4 9 9 reconciler:reconciler_mk2:0.07 10 10 postprocessor:imdb_augment_data:0.03
