Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Playlist hotttnesss sort not working

$
0
0

Hi,

I want to get the hottest songs from a tasteprofile of 10 artists, catalog type.

When using the following api call I get a list of tracks with about 0.5 hotttnesss:

http://developer.echonest.com/api/v4/playlist/static?api_key=KEY&bucket=id%3Aspotify-WW&format=json&limit=true&results=10&seed_catalog=CABPYAQ1433A66A4FD&type=catalog&sort=song_hotttnesss-desc&bucket=song_hotttnesss&target_song_hotttnesss=1&artist_pick=song_hotttnesss-desc

{

    "response": {
        "status": {
            "version": "4.2",
            "code": 0,
            "message": "Success"
        },
        "songs": [
            {
                "title": "Little Bit",
                "artist_name": "Lykke Li",
                "artist_foreign_ids": [
                    {
                        "catalog": "spotify-WW",
                        "foreign_id": "spotify-WW:artist:6oBm8HB0yfrIc9IHbxs6in"
                    }
                ],
                "song_hotttnesss": 0.57741,
                "artist_id": "ARGHEC01187FB597B0",
                "id": "SOITUVX13670227B0D"
            },
            {
                "title": "Mamma Mia",
                "artist_name": "ABBA",
                "artist_foreign_ids": [
                    {
                        "catalog": "spotify-WW",
                        "foreign_id": "spotify-WW:artist:0LcJLqbBmaGUft1e9Mm8HV"
                    }
                ],
                "song_hotttnesss": 0.56413,
                "artist_id": "ART50HO1187FB4D0ED",
                "id": "SOWPIEM13765A39AC9"
            },

However adding the song_min_hotttnesss=0.8, gives med 2 results with a lot higher hotttnesss.

{

    "response": {
        "status": {
            "version": "4.2",
            "code": 0,
            "message": "Success"
        },
        "songs": [
            {
                "title": "Wake Me Up",
                "artist_name": "Avicii",
                "artist_foreign_ids": [
                    {
                        "catalog": "spotify-WW",
                        "foreign_id": "spotify-WW:artist:1vCWHaC5f2uS3yhpwWbIA6"
                    }
                ],
                "song_hotttnesss": 0.848219,
                "artist_id": "ARWLAEE122BCFCA245",
                "id": "SOGHZVF13F54F932A1"
            },
            {
                "title": "I Love It",
                "artist_name": "Icona Pop",
                "artist_foreign_ids": [
                    {
                        "catalog": "spotify-WW",
                        "foreign_id": "spotify-WW:artist:1VBflYyxBhnDc9uVib98rw"
                    }
                ],
                "song_hotttnesss": 0.812869,
                "artist_id": "ARMXUUI12E9676D850",
                "id": "SOTSASP13C79FCC170"
            }
        ]
    }

}

I would have expected these two to be at the top of the results from the first api call.

Shouldn't the artist_pick=song_hotttnesss-desc pick the hottest songs from the artists? Also I assumed that target_song_hotttnesss=1 should try to get songs with hotttnesss as close to 1 as possible but it doesn't seem to do anything. Also the sort=song_hotttnesss-desc doesn't seem to work either.

What is even weirder is that the tracks in the list becomes totally different if I choose results=5 instead of results=4.

Is this a bug/intended behaviour or am I doing something wrong?

here is an extract from the taste profile as well:

{

    "response": {
        "status": {
            "version": "4.2",
            "code": 0,
            "message": "Success"
        },
        "songs": [
            {
                "artist_id": "ARDS6LH1187FB3A7CC",
                "id": "SOAMLNQ13B0F8F66C0",
                "artist_name": "Sebastian Ingrosso",
                "title": "Calling (Lose My Mind) (Radio Edit)"
            },
            {
                "artist_id": "ARGHEC01187FB597B0",
                "id": "SOHHDTJ1315CD4BC6D",
                "artist_name": "Lykke Li",
                "title": "Possibility"
            },

Viewing all articles
Browse latest Browse all 1582

Trending Articles