miraclx / freyr-js

A tool for downloading songs from music streaming services like Spotify and Apple Music.
https://git.io/freyr-js
Apache License 2.0
1.48k stars 94 forks source link

JSON Format #679

Open emresaracoglu opened 2 months ago

emresaracoglu commented 2 months ago

Hello,

Thank you for this project, Is it possible to get the terminal output as JSON?

thank you.

miraclx commented 1 month ago

Unfortunately not, not as of this moment anyway. What data are you interested in?

emresaracoglu commented 1 month ago

Sorry for the late response. I was just wondering if it was possible to get the data of the download process as JSON, because I wanted to develop an interface for myself and I thought that the data exchange between the application and the interface would be healthier.

miraclx commented 1 month ago

Ah, I see.. yeah, for now, that's unfortunately not possible, except parsing the CLI output, but that's unideal and prone to errors, but it's certainly worth looking into.

emresaracoglu commented 1 month ago

It can be done with Regex, but as you said, many unexpected errors may occur after each update. Maybe if you want to improve it one day it could be great for me and for enthusiasts. Thank you again for this great repo.

miraclx commented 1 month ago

Thanks for the kind words, and I would love to see freyr support machine-friendly output, I'll leave this issue open to track this implementation. Would be fun to see what gets built with that.