TooTallNate / node-icy

Node.js module for parsing and/or injecting ICY metadata
MIT License
291 stars 48 forks source link

How to get icecast to follow redirects? #35

Closed rejhgadellaa closed 5 years ago

rejhgadellaa commented 6 years ago

Does the icecast package follow redirects? Is it an option? It looks like it doesn't work by itself and I don't know how to do it.

If I try:

url = "http://playerservices.streamtheworld.com/api/livestream-redirect/VERONICA.mp3"; icecast.get(url, function (icyres) { // ... code });

the request just keeps pending/going

rejhgadellaa commented 5 years ago

Forgot to get back to this. I use follow-redirects to resolve the final destination of a redirect, then pass that to icy.