Changeset 929
- Timestamp:
- 09/30/07 15:35:43 (6 years ago)
- Files:
-
- 2 modified
-
applications/shepherd (modified) (13 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r925 r929 2 2 3 3 my $progname = 'shepherd'; 4 my $version = '1.2.2 2';4 my $version = '1.2.23'; 5 5 6 6 # tv_grab_au … … 1853 1853 printf(" (%3d) %s\n", $_, $REGIONS{$_}); 1854 1854 } 1855 my $reg = ask_choice("Enter region code:", ($region || "94"),1855 my $reg = &XMLTV::Ask::ask_choice("Enter region code:", ($region || "94"), 1856 1856 '0', keys %REGIONS); 1857 1857 … … 1962 1962 print "Only one theme and icon not currently set, using: $chosen_theme\n"; 1963 1963 } else { 1964 $chosen_theme = ask_choice("Choose theme:",1964 $chosen_theme = &XMLTV::Ask::ask_choice("Choose theme:", 1965 1965 ($curr_icon eq "none" ? $t->{ch}->{$ch}->{first_theme} : "current icon ($curr_icon)"), 1966 1966 "current icon ($curr_icon)", "none", … … 2159 2159 printf(" (%3d) %s\n", $_, $REGIONS{$_}); 2160 2160 } 2161 $region = ask_choice("Enter region code:", ($region || "94"),2161 $region = &XMLTV::Ask::ask_choice("Enter region code:", ($region || "94"), 2162 2162 keys %REGIONS); 2163 2163 … … 2167 2167 "Guided is easier; Advanced allows manual entering of XMLTV IDs.\n\n"; 2168 2168 2169 my $guided = ask_boolean("Would you like Guided channel selection?", 1);2169 my $guided = &XMLTV::Ask::ask_boolean("Would you like Guided channel selection?", 1); 2170 2170 2171 2171 my $mchans = &configure_channels_guided if ($guided); … … 2199 2199 $defaulttrans = $key if ((defined $pref_title_source) && ($transition{$key} eq $pref_title_source)); 2200 2200 } 2201 my $pref = ask_choice("Transition from grabber?", $defaulttrans,2201 my $pref = &XMLTV::Ask::ask_choice("Transition from grabber?", $defaulttrans, 2202 2202 $def, keys %transition); 2203 2203 $pref_title_source = $transition{$pref}; … … 2209 2209 my $str = "Create configuration file"; 2210 2210 $str .= " and update MythTV" if ($mchans); 2211 unless( ask_boolean("\n$str?", 1))2211 unless(&XMLTV::Ask::ask_boolean("\n$str?", 1)) 2212 2212 { 2213 2213 print "Aborting configuration.\n"; … … 2233 2233 " \"ln -s $CWD/$progname /usr/bin/tv_grab_au\".\n\n"; 2234 2234 2235 unless ( ask_boolean("\nGrab data now?"))2235 unless (&XMLTV::Ask::ask_boolean("\nGrab data now?")) 2236 2236 { 2237 2237 exit 0; … … 2251 2251 print "\n* Guided Channel Selection *\n\n"; 2252 2252 2253 my $want_hdtv = ask_boolean("Do you have High-Definition (HDTV)?");2254 my $want_paytv = ask_boolean("\nDo you have PayTV?");2253 my $want_hdtv = &XMLTV::Ask::ask_boolean("Do you have High-Definition (HDTV)?"); 2254 my $want_paytv = &XMLTV::Ask::ask_boolean("\nDo you have PayTV?"); 2255 2255 2256 2256 my (@channellist, @hd_channellist, @paytv_channellist); … … 2276 2276 if ($want_paytv) 2277 2277 { 2278 $want_paytv = ask_choice("Which PayTV provider do you have?",2278 $want_paytv = &XMLTV::Ask::ask_choice("Which PayTV provider do you have?", 2279 2279 $want_paytv_channels || "Foxtel", 2280 2280 ("Foxtel", "SelecTV")); … … 2390 2390 "write these channel mappings to MythTV.\n\n"; 2391 2391 2392 exit unless ( ask_boolean("Is this table correct? ", 1));2392 exit unless (&XMLTV::Ask::ask_boolean("Is this table correct? ", 1)); 2393 2393 2394 2394 return $mythids; … … 2459 2459 "then Shepherd will need to know the XMLTV IDs for the HD\n". 2460 2460 "channels also.\n"; 2461 if ( ask_boolean("\nDo you wish to include HDTV channels?"))2461 if (&XMLTV::Ask::ask_boolean("\nDo you wish to include HDTV channels?")) 2462 2462 { 2463 2463 my @hd_channellist = grep(!/ABC2|SBS News|31/i, @channellist); … … 2475 2475 } 2476 2476 2477 if ( ask_boolean("\nDo you wish to include PayTV (e.g. Foxtel, SelecTV) channels?", defined $want_paytv_channels))2478 { 2479 $want_paytv_channels = ask_choice("Which PayTV provider?", $want_paytv_channels || "Foxtel", ("Foxtel", "SelecTV"));2477 if (&XMLTV::Ask::ask_boolean("\nDo you wish to include PayTV (e.g. Foxtel, SelecTV) channels?", defined $want_paytv_channels)) 2478 { 2479 $want_paytv_channels = &XMLTV::Ask::ask_choice("Which PayTV provider?", $want_paytv_channels || "Foxtel", ("Foxtel", "SelecTV")); 2480 2480 my @paytv_channellist = &read_official_channels($want_paytv_channels); 2481 2481 my $paytv = channel_selection("Pay TV", ".paytv.au", $old_opt_channels, @paytv_channellist); -
status
r928 r929 1 application shepherd 1.2.2 21 application shepherd 1.2.23 2 2 reference channel_list 6 3 3 reference Shepherd/Common.pm 0.26
