2
0
Эх сурвалжийг харах

Minor updates to plugin downloading and weather

LukePulverenti Luke Pulverenti luke pulverenti 12 жил өмнө
parent
commit
6da0ec4170

+ 5 - 0
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";