ko-n / Mp3StreamTitle

This repository contains two PHP libraries Mp3StreamTitle and Radio101RuTitle.
Apache License 2.0
6 stars 0 forks source link

Add Curl Follow Redirect. #4

Closed joeyboli closed 1 year ago

joeyboli commented 1 year ago

Add Curl Follow Redirect To support zeno.fm links

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

ko-n commented 1 year ago

Hi! Did it help you? It didn't help me.

joeyboli commented 1 year ago

Yes it did, I was able to create an api using your library.

On Sun, Feb 12, 2023, 20:26 Oleh Kovalenko @.***> wrote:

Hi! Did it help you? It didn't help me.

— Reply to this email directly, view it on GitHub https://github.com/ko-n/Mp3StreamTitle/issues/4#issuecomment-1427124837, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPHXKCIBN5L45R4O752DNDWXFBQRANCNFSM6AAAAAAUV2VI3Y . You are receiving this because you authored the thread.Message ID: @.***>

joeyboli commented 1 year ago

Hi! Did it help you? It didn't help me.

API endpoint https://api.streamafrica.net/zeno/new.php?id=hca68918n98uv

The ?id= payload is the zeno mountpoint name.

ko-n commented 1 year ago

Hi, I have added: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

Thank you!

And sorry, I saw your fork late...

joeyboli commented 1 year ago

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

Thanks for adding it. :)