SwitchbladeBot / music

Switchblade's Custom Music Service
3 stars 2 forks source link

Tidal & iHeart Music Support #12

Closed WearifulCupid0 closed 4 years ago

WearifulCupid0 commented 4 years ago

Tidal Api Wrapper: https://www.npmjs.com/package/korve-tidal-api-wrapper iHeart Api Urls: https://api.iheart.com/api/v2/content/liveStations?q=SEARCH_QUERY https://api.iheart.com/api/v2/content/liveStations?id=STATION_ID

No credentials are required for either.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label type: idea to this issue, with a confidence of 0.88. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

pedrofracassi commented 4 years ago

Hi! Thanks for your suggestion/request. We're actually reworking our music as a completely separate system over at SwitchbladeBot/music. I'll transfer this issue over there!

pedrofracassi commented 4 years ago

That Tidal wrapper seems to be unmaintained as of July 4th

WearifulCupid0 commented 4 years ago

This is just what it looks like, as README.md is from this dependency: https://npmjs.com/package/tidal-api-wrapper and the definitions too, but the one I sent has some modifications that left it operational again.

You just need to give it a try, I guarantee it works.

pedrofracassi commented 4 years ago

Well, the wrapper itself should be of no problem anyway. We're actually not using any wrappers for this rewrite, so it should just be a matter of using Chrome Dev Tools to find the right endpoints.

pedrofracassi commented 4 years ago

I had actually started on some Tidal commands, which should probably be useful as a reference for whoever implements this issue.

I'll do it myself if @davipatury writes some documentation on how to add providers

WearifulCupid0 commented 4 years ago

Ok, but how did you get a tidal api token?

As far as I know, they don't have a specific part for it, so getting a token is pretty complicated.

WearifulCupid0 commented 4 years ago

Well, but I'm just giving you an idea, I really think it would be cool to add these 2 platforms to Switchblade.

pedrofracassi commented 4 years ago

Ok, but how did you get a tidal api token?

We didn't. I scraped Tidal's web client for the endpoints and token

davipatury commented 4 years ago

Done 👍