Alexis06030631 / yt_music_api

A simple, easy to use API for YouTube Music.
https://alexis06030631.github.io/yt_music_api/
6 stars 0 forks source link

Api not showing #3

Closed anirudhanishal closed 8 months ago

anirudhanishal commented 8 months ago

Api not showing i want to try to paste url

Alexis06030631 commented 8 months ago

@anirudhanishal Could you explain your problem in a little more detail?

anirudhanishal commented 8 months ago

How to download a files via url

Alexis06030631 commented 8 months ago

You can use axios.get() to download a file via a url. You can refer to this: https://stackoverflow.com/a/53230807.

If you find it useful, I can create a function that does it for you.

Alexis06030631 commented 8 months ago

Update: you can now do this with the downloadManager.downloadAsFile() function documented here: https://alexis06030631.github.io/yt_music_api/docs/method/downloadManager#function-downloadasfile

Note: you need to update the module to version 1.3.0