Skip to content

Commit

Permalink
Backport [27337] to 0.24-fixes. Deal with an optional 's' in the BBC …
Browse files Browse the repository at this point in the history
…weather grabber when parsing strings like 'light snow shower(s)'.

git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27371 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
stuartm committed Nov 29, 2010
1 parent 549fca1 commit f1831b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -154,14 +154,14 @@
}
elsif ($weather_string =~ /^thundery rain$/i ||
$weather_string =~ /^thunder storm$/i ||
$weather_string =~ /^thundery showers$/i) {
$weather_string =~ /^thundery showers?$/i) {
printf "weather_icon::thunshowers.png\n";
}
elsif ($weather_string =~ /^heavy snow$/i) {
printf "weather_icon::snowshow.png\n";
}
elsif ($weather_string =~ /^light snow$/i ||
$weather_string =~ /^light snow showers$/i) {
$weather_string =~ /^light snow showers?$/i) {
printf "weather_icon::flurries.png\n";
}
elsif ($weather_string =~ /^sleet$/i ||
Expand Down
Expand Up @@ -179,14 +179,14 @@
}
elsif ($weather_string =~ /^thundery rain$/i ||
$weather_string =~ /^thunder storm$/i ||
$weather_string =~ /^thundery showers$/i) {
$weather_string =~ /^thundery showers?$/i) {
printf "icon-" . $i . "::thunshowers.png\n";
}
elsif ($weather_string =~ /^heavy snow$/i) {
printf "icon-" . $i . "::snowshow.png\n";
}
elsif ($weather_string =~ /^light snow$/i ||
$weather_string =~ /^light snow showers$/i) {
$weather_string =~ /^light snow showers?$/i) {
printf "icon-" . $i . "::flurries.png\n";
}
elsif ($weather_string =~ /^sleet$/i ||
Expand Down

0 comments on commit f1831b2

Please sign in to comment.