ORelio / Spotlight-Downloader

Download Windows Spotlight images and apply them to wallpaper or lockscreen.
182 stars 27 forks source link

Download Data stage results in connection termination #22

Closed starfireprime closed 3 years ago

starfireprime commented 3 years ago

I found that Spotlight Downloader would fail upon trying to connect to the Spotlight API via https. I believe this is due to the servers requiring TLS 1.2.

I added the following at line 50 of Spotlight.cs

System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

just prior to the call to webClient.DownloadData(request); . That did the trick and files were properly returned.

starfireprime commented 3 years ago

Alternatively, just build for .NET 4.7.

ORelio commented 3 years ago

Hi @starfireprime thanks for reporting this issue and investigating the root cause. Just released a new version including your fix 👍