dotnettools / SharpGrabber

Download from YouTube, Vimeo, HLS (M3U8 files) and more with .NET and JavaScript - Library and desktop app for downloading high quality media
GNU Lesser General Public License v3.0
314 stars 46 forks source link

SocketException: An existing connection was forcibly closed by the remote host. #96

Open kurdemol94 opened 4 months ago

kurdemol94 commented 4 months ago

hey,

First of all thanks for a great library, it was very easy to use and seems to work well with downloading audio from a youtube playlist. But every other link I'm getting this exception, is there anything I can do to prevent this? or is it just youtube blocking me? I also tried VideoLibrary library and it worked for the first 10 tunes, since then the download could never finish - I guess I got blocked by yt in some way

SocketException: An existing connection was forcibly closed by the remote host.

image

javidsho commented 4 months ago

Hi!

Glad you're enjoying the library! Yes it seems to me like YouTube is blocking you. Recently YouTube has added more restrictions for the downloads and skipping ads. This might be one of these security measures. What you could try is changing you IP address. If the download is disconnected while downloading, you could try a download manager.