aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Weather/WeatherClient.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-04 09:40:45 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-04 09:40:45 -0400
commit6da0ec4170555828afdbb34b17a61511e34f58d4 (patch)
tree32f494d3df4274d65d9fd9ce59c23946124874b7 /MediaBrowser.Controller/Weather/WeatherClient.cs
parent26db4b2cd90e967334e3d7fa91d710367ae02452 (diff)
Minor updates to plugin downloading and weather
Diffstat (limited to 'MediaBrowser.Controller/Weather/WeatherClient.cs')
-rw-r--r--MediaBrowser.Controller/Weather/WeatherClient.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Weather/WeatherClient.cs b/MediaBrowser.Controller/Weather/WeatherClient.cs
index e2aada34f..c4abdc171 100644
--- a/MediaBrowser.Controller/Weather/WeatherClient.cs
+++ b/MediaBrowser.Controller/Weather/WeatherClient.cs
@@ -31,6 +31,11 @@ namespace MediaBrowser.Controller.Weather
public async Task<WeatherInfo> GetWeatherInfoAsync(string zipCode)
{
+ if (string.IsNullOrWhiteSpace(zipCode))
+ {
+ return null;
+ }
+
int numDays = 5;
string apiKey = "24902f60f1231941120109";