[WS] Tunebat (songkeybpm)

A Story

On 2017 I developped a web script for Tunebat web (SongKeyBpm was its first name). I've been using it for more than 2 years and as some people asked for it, I decided to create this post. I got the ideas from the beatport script by stevehero (thanks to him for all the knowledge I got).

Now I think I can share with you my work.

Download

Tunebat.v99.zip (4.0 KB)
Last Modified: 2021-07-15

How to Install

  1. Download the .zip and extract to %appdata%\mp3tag\data\sources directory (Just hit Win+R and copy paste %appdata%\mp3tag\data\sources)
  2. You can access the scripts right-clicking on the title with mouse and Tag sources->Tunebat->Search.. if using version 3.06 or above.

Script Info

On July 2021 Tunebat has made a big update and the scripts have been fully rewrote. I've finished only HTML script, but I've been working also with JSON one. In SOME few days I'll publish version 1.0, so I need you to test it.

Availables tags are: _TIME_CHECK,ALBUM,ALBUMARTIST,ALBUM ARTIST,ARTIST,BPM,CAMELOT,COVERURL,INITIALKEY,PUBLISHER,RELEASETIME,SPOTIFY_URL,TITLE,TRACK,YEAR

Other tags (maybe useless, but by default disabled): EXPLICIT,POPULARITY,ENERGY,DANCEABILITY,HAPPINESS,ACOUSTICNESS,INSTRUMENTALNESS,LIVENESS,SPEECHINESS,LOUDNESS

If you need more information that my script does not supply or is incomplete please don't hesitate to contact me.

You can try it and make suggestions. Enjoy!

Version History

0.99: HTML script has been fully rewrote. WIP on JSON script.
0.9a: - Added source to get information from JSON script.
0.7: Removed debug files
0.6: First Release

3 Likes

Great Thank you.
bugzero

How tf can I use this haha, I dont get it.

From the mp3tag help:

More help:

and

2 Likes

The script worked pretty well over the last months an I was very happy with it, but now there is a Error, it says:

Error connecting to the server: http://tunebat.com

403: Forbidden

[Try again] [Cancel]

Screenshot 2021-04-10 121058

I had the same issue, and I tried to modify the script without any success. Then, I updated mp3tag and It started working again. Try to update mp3tag with administrator privileges.

Hello, nice script. I want to use this, but now it doesn't work.
Do you have an updated version?

This error might be it only accept a limited call per hour or day(how many don't now):
imagem
or: Service Unavailable - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again.

I've been trying to identify the problem and I think Tunebat has made some changes the Web Sources Framework won't be able to override.

I've made a test on Tunebat with just a curl command and get an horrible answer. A connection to Tunebat now needs the use of cookies and javascript enabled to redirect the query.

Maybe this web script source should be moves to "Broken Web Scripts"

Done. Thanks for letting me know!

Hi @bugzero

I regret that I have found this topic too late, as I see that the tunebat script no longer works.

I have read somewhere (maybe here on this forum) that all of their data comes from spotify anyway. I guess they maybe pay Spotify to license the tempo, key, camelot etc. metadata?

So I wonder if it is possible for a web script to obtain that data directly from Spotify? Or is it not accessible via API?

Barring that, I have recently found out about songbpm.com, which seems to present the exact same data (again, I think sourced by Spotify) but perhaps without the limitations songbat has imposed.

Just an idea. I wish that Apple Music would invest in adding this data to their service, as making playlists by BPM is really helpful (e.g. for running).