Ticket #4169: bbc-grabber.patch

File bbc-grabber.patch, 3.2 KB (added by otto at kolsi dot fi, 18 years ago)
  • mythweather/mythweather/scripts/bbccurrentxml.pl

     
    124124if ($weather_string =~ /^cloudy$/i) {
    125125    printf "weather_icon::cloudy.png\n";
    126126}
    127 elsif ($weather_string =~ /^foggy$/i) {
     127elsif ($weather_string =~ /^foggy$/i ||
     128       $weather_string =~ /^misty$/i) {
    128129    printf "weather_icon::fog.png\n";
    129130}
    130131elsif ($weather_string =~ /^sunny$/i) {
    131132    printf "weather_icon::sunny.png\n";
    132133}
    133 elsif ($weather_string =~ /^sunny intervals$/i) {
     134elsif ($weather_string =~ /^sunny intervals$/i ||
     135       $weather_string =~ /^partly cloudy$/i) {
    134136    printf "weather_icon::pcloudy.png\n";
    135137}
    136138elsif ($weather_string =~ /^drizzle$/i ||
     
    147149    printf "weather_icon::thunshowers.png\n";
    148150}
    149151elsif ($weather_string =~ /^heavy snow$/i) {
    150     printf "weather_icon:snowshow.png\n";
     152    printf "weather_icon::snowshow.png\n";
    151153}
    152 elsif ($weather_string =~ /^light snow$/i) {
     154elsif ($weather_string =~ /^light snow$/i ||
     155    $weather_string =~ /^light snow showers$/i) {
    153156    printf "weather_icon::flurries.png\n";
    154157}
    155158elsif ($weather_string =~ /^sleet$/i) {
    156159    printf "weather_icon::rainsnow.png\n";
    157160}
     161elsif ($weather_string =~ /^clear$/i) {
     162    printf "weather_icon::fair.png\n";
     163}
    158164else {
    159165    printf "weather_icon::unknown.png\n";
    160166}
  • mythweather/mythweather/scripts/bbcthreedayxml.pl

     
    123123    if ($weather_string =~ /^cloudy$/i) {
    124124        printf "icon-" . $i . "::cloudy.png\n";
    125125    }
    126     elsif ($weather_string =~ /^foggy$/i) {
     126    elsif ($weather_string =~ /^foggy$/i ||
     127        $weather_string =~ /^misty$/i) {
    127128        printf "icon-" . $i . "::fog.png\n";
    128129    }
    129130    elsif ($weather_string =~ /^sunny$/i) {
    130131        printf "icon-" . $i . "::sunny.png\n";
    131132    }
    132     elsif ($weather_string =~ /^sunny intervals$/i) {
     133    elsif ($weather_string =~ /^sunny intervals$/i ||
     134        $weather_string =~ /^partly cloudy$/i) {
    133135        printf "icon-" . $i . "::pcloudy.png\n";
    134136    }
    135137    elsif ($weather_string =~ /^drizzle$/i ||
     
    146148        printf "icon-" . $i . "::thunshowers.png\n";
    147149    }
    148150    elsif ($weather_string =~ /^heavy snow$/i) {
    149         printf "weather_icon:snowshow.png\n";
     151        printf "icon-" . $i . "::snowshow.png\n";
    150152    }
    151     elsif ($weather_string =~ /^light snow$/i) {
    152         printf "weather_icon::flurries.png\n";
     153    elsif ($weather_string =~ /^light snow$/i ||
     154        $weather_string =~ /^light snow showers$/i) {
     155        printf "icon-" . $i . "::flurries.png\n";
    153156    }
    154157    elsif ($weather_string =~ /^sleet$/i) {
    155         printf "weather_icon::rainsnow.png\n";
     158        printf "icon-" . $i . "::rainsnow.png\n";
    156159    }
     160    elsif ($weather_string =~ /^clear$/i) {
     161        printf "icon-" . $i . "::fair.png\n";
     162    }
    157163    else {
    158164        printf "icon-" . $i . "::unknown.png\n";
    159165    }