Skip to content

Commit a41bca6

Browse files
authored
Merge pull request #12 from tsjdev-apps/feature/icon-url
Update weather icon URLs to new path
2 parents 0456a2d + 758c69e commit a41bca6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/OpenWeatherMapSharp/Models/WeatherRoot.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,21 @@ public class WeatherRoot
116116
/// </summary>
117117
[JsonIgnore]
118118
public string Icon
119-
=> $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}.png";
119+
=> $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}.png";
120120

121121
/// <summary>
122122
/// Weather icon URL (2x resolution).
123123
/// </summary>
124124
[JsonIgnore]
125125
public string Icon2x
126-
=> $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}@2x.png";
126+
=> $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}@2x.png";
127127

128128
/// <summary>
129129
/// Weather icon URL (4x resolution).
130130
/// </summary>
131131
[JsonIgnore]
132132
public string Icon4x
133-
=> $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}@4x.png";
133+
=> $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}@4x.png";
134134

135135
/// <summary>
136136
/// Weather icon name.

src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
66
<Title>OpenWeatherMapSharp</Title>
7-
<Version>4.0.0</Version>
7+
<Version>4.0.1</Version>
88
<Authors>Thomas Sebastian Jensen</Authors>
99
<Company>tsjdev-apps.de</Company>
1010
<Description>An unofficial .NET API wrapper for OpenWeatherMap.org</Description>
@@ -15,9 +15,7 @@
1515
<PackageIcon>icon.png</PackageIcon>
1616
<PackageTags>OpenWeatherMap; Api; Mock; Wrapper; free; Weather</PackageTags>
1717
<PackageReleaseNotes>
18-
- Add Air Pollution endpoints
19-
- Update NuGet packages
20-
- Code improvements
18+
- Fix icon urls
2119
</PackageReleaseNotes>
2220
<NeutralLanguage>en</NeutralLanguage>
2321
<PackageReadmeFile>README.md</PackageReadmeFile>

0 commit comments

Comments
 (0)