fethica / FRadioPlayer

A simple radio player framework for iOS, macOS, tvOS.

Home Page:https://fethica.github.io/FRadioPlayer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Querying Last.fm or another API

muzo178 opened this issue · comments

A previous version of the SwiftRadio project had the ability to query the Last.fm API in addition to the iTunes API. Since switching the player to the fantastic FRadioPlayer, we can only query the iTunes API.

How could one implement querying the Last.fm API? Or another API for that matter? Say query a url like https://www.exampleapi.fm/meta/**channelname**/live/ for json and get and parse the results?

Hey @muzo178

For now only iTunes API is supported, You can either change the library by updating the FRadioAPI.swift file or add your own API when there is a metadata change using the delegate method.

But it would be a great feature if we can set our own parser in the framework! Maybe it will be added in a future release 👍

Keep in mind, a while back LastFM locked down their images stating nobody was supposed to have them in the first place.

https://getsatisfaction.com/lastfm/topics/api-announcement-dac8oefw5vrxq