Spark-NF / hls-downloader

Download HLS streams in NodeJS
Apache License 2.0
73 stars 32 forks source link

Add Retry & Max Retries #25

Closed ProfessorPinguino closed 1 year ago

ProfessorPinguino commented 1 year ago

With the current implementation Exceptions are simply thrown and the whole download process is stopped if one Chunk fails.

This happened to me due to an unstable internet connection at my place. I implemented a max retry property to make sure the StaticChunkDownloader can restart certain chunks without running into an endless loop.

Spark-NF commented 1 year ago

LGTM, thanks! 👍