Ticket #4555: BBC-sleetshowers.patch

File BBC-sleetshowers.patch, 1.2 KB (added by otto at kolsi dot fi, 16 years ago)
  • mythweather/mythweather/scripts/bbccurrentxml.pl

     
    155155    $weather_string =~ /^light snow showers$/i) {
    156156    printf "weather_icon::flurries.png\n";
    157157}
    158 elsif ($weather_string =~ /^sleet$/i) {
     158elsif ($weather_string =~ /^sleet$/i ||
     159    $weather_string =~ /^sleet showers$/i) {
    159160    printf "weather_icon::rainsnow.png\n";
    160161}
    161162elsif ($weather_string =~ /^clear$/i) {
  • mythweather/mythweather/scripts/bbcthreedayxml.pl

     
    154154        $weather_string =~ /^light snow showers$/i) {
    155155        printf "icon-" . $i . "::flurries.png\n";
    156156    }
    157     elsif ($weather_string =~ /^sleet$/i) {
     157    elsif ($weather_string =~ /^sleet$/i ||
     158        $weather_string =~ /^sleet showers$/i) {
    158159        printf "icon-" . $i . "::rainsnow.png\n";
    159160    }
    160161    elsif ($weather_string =~ /^clear$/i) {