Mastermindzh / tidal-hifi

The web version of Tidal running in electron with hifi support thanks to widevine.
Other
912 stars 54 forks source link

[Feature Request] Additional Data/Endpoints in API #393

Closed ThatGravyBoat closed 1 month ago

ThatGravyBoat commented 2 months ago

As it currently stands the API endpoints do not give all the information something that wants to interface with it may need. Here are a few that I currently need as I want to add support in a Minecraft mod I work on called Craftify where several requests for Tidal support have been requested.

The following are what I need but cant find in the API as it currently is:

There are also some problems with the data is not reliable in the sense of durations and artists being strings when they should be a number and a list respectively. Currently for me to get the actual duration as I need it for a progress bar I need to parse the current and duration fields

Mastermindzh commented 2 months ago

I can implement most of this pretty easily in the coming days.

Will be available soon.

ThatGravyBoat commented 2 months ago
  • Tidal Reports the artist as a single field, not a list of collaborators. We are just sending whatever TIDAL says is the Artist.

Ahh okay that makes sense, not that big of a deal 👍

Mastermindzh commented 1 month ago

I rewrote the entire API to be a bit clearer (and the code much cleaner) and also to use the correct HTTP verbs as well now. The old (now: legacy) endpoints still work and I have no plans of removing them.

New POST endpoints:

Also 1 new GET endpoint:

I also updated the mediaInfo with most of what you wanted, durationInSeconds & currentInSeconds are now available as integers as well: image

Mastermindzh commented 1 month ago

Fixed in 5.11.0.

If you want to promote your mod you can make a PR adding it to the README if you wish :)