Ticket #4169: bbc-grabber.patch
File bbc-grabber.patch, 3.2 KB (added by , 16 years ago) |
---|
-
mythweather/mythweather/scripts/bbccurrentxml.pl
124 124 if ($weather_string =~ /^cloudy$/i) { 125 125 printf "weather_icon::cloudy.png\n"; 126 126 } 127 elsif ($weather_string =~ /^foggy$/i) { 127 elsif ($weather_string =~ /^foggy$/i || 128 $weather_string =~ /^misty$/i) { 128 129 printf "weather_icon::fog.png\n"; 129 130 } 130 131 elsif ($weather_string =~ /^sunny$/i) { 131 132 printf "weather_icon::sunny.png\n"; 132 133 } 133 elsif ($weather_string =~ /^sunny intervals$/i) { 134 elsif ($weather_string =~ /^sunny intervals$/i || 135 $weather_string =~ /^partly cloudy$/i) { 134 136 printf "weather_icon::pcloudy.png\n"; 135 137 } 136 138 elsif ($weather_string =~ /^drizzle$/i || … … 147 149 printf "weather_icon::thunshowers.png\n"; 148 150 } 149 151 elsif ($weather_string =~ /^heavy snow$/i) { 150 printf "weather_icon: snowshow.png\n";152 printf "weather_icon::snowshow.png\n"; 151 153 } 152 elsif ($weather_string =~ /^light snow$/i) { 154 elsif ($weather_string =~ /^light snow$/i || 155 $weather_string =~ /^light snow showers$/i) { 153 156 printf "weather_icon::flurries.png\n"; 154 157 } 155 158 elsif ($weather_string =~ /^sleet$/i) { 156 159 printf "weather_icon::rainsnow.png\n"; 157 160 } 161 elsif ($weather_string =~ /^clear$/i) { 162 printf "weather_icon::fair.png\n"; 163 } 158 164 else { 159 165 printf "weather_icon::unknown.png\n"; 160 166 } -
mythweather/mythweather/scripts/bbcthreedayxml.pl
123 123 if ($weather_string =~ /^cloudy$/i) { 124 124 printf "icon-" . $i . "::cloudy.png\n"; 125 125 } 126 elsif ($weather_string =~ /^foggy$/i) { 126 elsif ($weather_string =~ /^foggy$/i || 127 $weather_string =~ /^misty$/i) { 127 128 printf "icon-" . $i . "::fog.png\n"; 128 129 } 129 130 elsif ($weather_string =~ /^sunny$/i) { 130 131 printf "icon-" . $i . "::sunny.png\n"; 131 132 } 132 elsif ($weather_string =~ /^sunny intervals$/i) { 133 elsif ($weather_string =~ /^sunny intervals$/i || 134 $weather_string =~ /^partly cloudy$/i) { 133 135 printf "icon-" . $i . "::pcloudy.png\n"; 134 136 } 135 137 elsif ($weather_string =~ /^drizzle$/i || … … 146 148 printf "icon-" . $i . "::thunshowers.png\n"; 147 149 } 148 150 elsif ($weather_string =~ /^heavy snow$/i) { 149 printf " weather_icon:snowshow.png\n";151 printf "icon-" . $i . "::snowshow.png\n"; 150 152 } 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"; 153 156 } 154 157 elsif ($weather_string =~ /^sleet$/i) { 155 printf " weather_icon::rainsnow.png\n";158 printf "icon-" . $i . "::rainsnow.png\n"; 156 159 } 160 elsif ($weather_string =~ /^clear$/i) { 161 printf "icon-" . $i . "::fair.png\n"; 162 } 157 163 else { 158 164 printf "icon-" . $i . "::unknown.png\n"; 159 165 }