From 6da0ec4170555828afdbb34b17a61511e34f58d4 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Tue, 4 Sep 2012 09:40:45 -0400 Subject: [PATCH] Minor updates to plugin downloading and weather --- MediaBrowser.Controller/Weather/WeatherClient.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.Controller/Weather/WeatherClient.cs b/MediaBrowser.Controller/Weather/WeatherClient.cs index e2aada34f8..c4abdc171e 100644 --- a/MediaBrowser.Controller/Weather/WeatherClient.cs +++ b/MediaBrowser.Controller/Weather/WeatherClient.cs @@ -31,6 +31,11 @@ namespace MediaBrowser.Controller.Weather public async Task GetWeatherInfoAsync(string zipCode) { + if (string.IsNullOrWhiteSpace(zipCode)) + { + return null; + } + int numDays = 5; string apiKey = "24902f60f1231941120109";