Hacker News new | ask | show | jobs
by contrahax 4774 days ago
That endpoint just returns meta info about the song including the duration, quality, etc.
2 comments

If it returns metadata, why not call it getMetadata, to avoid any confusion? getSongFile does kind of suggest like it gets you a file!
Despite the fact that the comment on the function says "file.url is an mp3 url you can download the file"?
.url is a part of the meta info from the api - there is no downloading functionality in the api library itself. The song url is just the culmination of the song id and your session