cyperdark / osu-api-extended

Package for advanced work with "osu" api
MIT License
49 stars 15 forks source link

Create file only when downloaded, add new mirror & little change for url switch case #18

Closed Calemy closed 9 months ago

Calemy commented 9 months ago

I noticed that files are being created even if the download doesn't even start to begin due to the set requested not existing. With that i rather have a true and false boolean when the promise resolves rather than to have a random string to know if the download failed or not since it creates an easier check. I also added support for another mirror which supports many download regions across the entire world (8 Servers in total). Last but not least there's also a minor change in the way how the url is being switched which shaves off a few lines.