segler-alex / radiobrowser-api

radio browser server api
GNU Affero General Public License v3.0
73 stars 15 forks source link

"v2/json/url/stationid" returns only on url #15

Open bobo71dream opened 7 years ago

bobo71dream commented 7 years ago

Hello alex,

i have a little problem with returned url. It gives station that have more then one streamurls in the playlist. From time to time the returned url via v2 api is not playing. If i try a secundary url, it plays.

Example: station .977 Smooth Jazz Channel http://www.977music.com/itunes/jazz.pls

Return via v2 api {"ok":"true","message":"retrieved station url successfully","id":"89885","name":".977 Smooth Jazz Channel","url":"http://7619.live.streamtheworld.com:80/977_SMOOJAZZ_SC"}

in pls are 4 urls are given File1=http://7599.live.streamtheworld.com:80/977_SMOOJAZZ_SC File2=http://7609.live.streamtheworld.com:80/977_SMOOJAZZ_SC File3=http://7619.live.streamtheworld.com:80/977_SMOOJAZZ_SC File4=http://7579.live.streamtheworld.com:80/977_SMOOJAZZ_SC

Now my question. Can you add all resolved stations from pls to the result for example: {"ok":"true","message":"retrieved station url successfully","id":"89885","name":".977 Smooth Jazz Channel","url":"http://7619.live.streamtheworld.com:80/977_SMOOJAZZ_SC", ,"url1":"http://7609.live.streamtheworld.com:80/977_SMOOJAZZ_SC","url2":"http://7699.live.streamtheworld.com:80/977_SMOOJAZZ_SC","url3":"http://7679.live.streamtheworld.com:80/977_SMOOJAZZ_SC"}

Best regards and thx for your nice work.

cknost commented 6 years ago

Please Add this,. For example a mobile and a pc stream.