Changeset 929

Show
Ignore:
Timestamp:
09/30/07 15:35:43 (6 years ago)
Author:
max
Message:

shepherd: Define scope of XMLTV::Ask calls (just for clarity)

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/shepherd

    r925 r929  
    22 
    33my $progname = 'shepherd'; 
    4 my $version = '1.2.22'; 
     4my $version = '1.2.23'; 
    55 
    66# tv_grab_au 
     
    18531853        printf(" (%3d) %s\n", $_, $REGIONS{$_}); 
    18541854    } 
    1855     my $reg = ask_choice("Enter region code:", ($region || "94"),  
     1855    my $reg = &XMLTV::Ask::ask_choice("Enter region code:", ($region || "94"),  
    18561856                         '0', keys %REGIONS); 
    18571857 
     
    19621962            print "Only one theme and icon not currently set, using: $chosen_theme\n"; 
    19631963        } else { 
    1964             $chosen_theme = ask_choice("Choose theme:", 
     1964            $chosen_theme = &XMLTV::Ask::ask_choice("Choose theme:", 
    19651965                ($curr_icon eq "none" ? $t->{ch}->{$ch}->{first_theme} : "current icon ($curr_icon)"),  
    19661966                "current icon ($curr_icon)", "none",  
     
    21592159        printf(" (%3d) %s\n", $_, $REGIONS{$_}); 
    21602160    } 
    2161     $region = ask_choice("Enter region code:", ($region || "94"), 
     2161    $region = &XMLTV::Ask::ask_choice("Enter region code:", ($region || "94"), 
    21622162                         keys %REGIONS); 
    21632163 
     
    21672167          "Guided is easier; Advanced allows manual entering of XMLTV IDs.\n\n"; 
    21682168 
    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); 
    21702170 
    21712171    my $mchans = &configure_channels_guided if ($guided); 
     
    21992199        $defaulttrans = $key if ((defined $pref_title_source) && ($transition{$key} eq $pref_title_source)); 
    22002200    } 
    2201     my $pref = ask_choice("Transition from grabber?", $defaulttrans, 
     2201    my $pref = &XMLTV::Ask::ask_choice("Transition from grabber?", $defaulttrans, 
    22022202                          $def, keys %transition); 
    22032203    $pref_title_source = $transition{$pref}; 
     
    22092209    my $str = "Create configuration file"; 
    22102210    $str .= " and update MythTV" if ($mchans); 
    2211     unless(ask_boolean("\n$str?", 1)) 
     2211    unless(&XMLTV::Ask::ask_boolean("\n$str?", 1)) 
    22122212    { 
    22132213        print "Aborting configuration.\n"; 
     
    22332233          "  \"ln -s $CWD/$progname /usr/bin/tv_grab_au\".\n\n"; 
    22342234 
    2235     unless (ask_boolean("\nGrab data now?")) 
     2235    unless (&XMLTV::Ask::ask_boolean("\nGrab data now?")) 
    22362236    { 
    22372237        exit 0; 
     
    22512251    print "\n* Guided Channel Selection *\n\n"; 
    22522252 
    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?"); 
    22552255 
    22562256    my (@channellist, @hd_channellist, @paytv_channellist); 
     
    22762276    if ($want_paytv) 
    22772277    { 
    2278         $want_paytv = ask_choice("Which PayTV provider do you have?",  
     2278        $want_paytv = &XMLTV::Ask::ask_choice("Which PayTV provider do you have?",  
    22792279                                 $want_paytv_channels || "Foxtel",  
    22802280                                 ("Foxtel", "SelecTV")); 
     
    23902390          "write these channel mappings to MythTV.\n\n"; 
    23912391 
    2392     exit unless (ask_boolean("Is this table correct? ", 1)); 
     2392    exit unless (&XMLTV::Ask::ask_boolean("Is this table correct? ", 1)); 
    23932393 
    23942394    return $mythids; 
     
    24592459          "then Shepherd will need to know the XMLTV IDs for the HD\n". 
    24602460          "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?"))  
    24622462    { 
    24632463        my @hd_channellist = grep(!/ABC2|SBS News|31/i, @channellist); 
     
    24752475    } 
    24762476 
    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")); 
    24802480        my @paytv_channellist = &read_official_channels($want_paytv_channels); 
    24812481        my $paytv = channel_selection("Pay TV", ".paytv.au", $old_opt_channels, @paytv_channellist); 
  • status

    r928 r929  
    1 application     shepherd            1.2.22 
     1application     shepherd            1.2.23 
    22reference       channel_list        6 
    33reference       Shepherd/Common.pm  0.26