Author Topic: LastFM changes to API (02/05/19)  (Read 4753 times)

redwing

  • Guest
Thanks! It works for some but not for many others, maybe because the picture is too small or with portrait orientation. Above all, many artists have no pictures in their wikipedia entry.

For backdrops of obscure artists, Google would work much better.

Code
https://www.google.com/search?tbm=isch&tbs=imgo:1,iar:w,isz:l&q=<Artist>
Last Edit: May 12, 2019, 08:46:40 PM by redwing

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 29770
Thanks! It works for some but not for many others, maybe because the picture is too small or with portrait orientation. Above all, many artists have no pictures in their wikipedia entry.
can you provide a couple of examples where its too small - i should be able to solve that


redwing

  • Guest
How about Spotify and iTunes Store? Do they support backdrops?

ost

  • Jr. Member
  • **
  • Posts: 85
Is it possible to made the pop-up window when connecting to last.fm at the first time be opened at an external browser? (Mozilla/Chrome/etc.) Last.fm site working in Russia with some ISP's only via VPN plugins at browsers  :(
When it opens as a pop-up window inside MB I get an error and proxy settings in Preferences is not working at all.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 29770
Igor Markevitch
Isaac Stern
This version now applies the same minimum size requirements as it did with last.fm, and now also gets all suitable images from the artist's page

https://getmusicbee.com/patches/MusicBee33_Patched.zip

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 29770
last.fm is blocked by some Russian ISP's and now I can't use this plugin after update
try this version - you only need to connect once to last.fm and then you can use the normal versions of MB again after that:

https://www.mediafire.com/file/5kcmce7vnvbmltj/MusicBeeLastFm.zip/file

redwing

  • Guest
It doesn't retrieve pictures for the two artists. I'm monitoring backdrops cache folder when it tries to retrieve and it just creates 0 byte tmp files for them.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 29770
Isaac Stern, i get 2 suitable images and there are none for Igor Markevitch

edit:
for the primary picture only, in the case of Isaac Stern, the primary page picture is not suitable so its excluded
for the rotating artist pictures there are 2 others that are in fact suitable but searching all pictures is too slow for the task of getting a primary picture
ie. no pictures this is the expected result
Last Edit: May 12, 2019, 10:34:51 PM by Steven


redwing

  • Guest
Isaac Stern, i get 2 suitable images and there are none for Igor Markevitch

edit:
for the primary picture only, in the case of Isaac Stern, the primary page picture is not suitable so its excluded
for the rotating artist pictures there are 2 others that are in fact suitable but searching all pictures is too slow for the task of getting a primary picture
ie. no pictures this is the expected result

Just tried again with a local picture saved for him. It still retrieves no pictures. So even when local primary picture is already present and multiple pictures are available from the wikipedia, if none of them is suitable for primary picture, no pictures get retrieved?

frankz

  • Hero Member
  • *****
  • Posts: 1494
I don't know if you're still looking for / open to additional sources, but I've been looking at the Deezer API (which is billed on its homepage as "Unlimited Access, without stress, without identification") and here's the type of information you get from an artist search:

Code
  "data": [
    {
      "id": "9635624",
      "name": "Billie Eilish",
      "link": "https://www.deezer.com/artist/9635624",
      "picture": "https://api.deezer.com/artist/9635624/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist/92b64dd0991caf4c03e4a2ac2283d9ed/56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist/92b64dd0991caf4c03e4a2ac2283d9ed/250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist/92b64dd0991caf4c03e4a2ac2283d9ed/500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist/92b64dd0991caf4c03e4a2ac2283d9ed/1000x1000-000000-80-0-0.jpg",
      "nb_album": 19,
      "nb_fan": 272375,
      "radio": true,
      "tracklist": "https://api.deezer.com/artist/9635624/top?limit=50",
      "type": "artist"
    },
    {
      "id": "9718618",
      "name": "Billie Eilish & Goldhouse",
      "link": "https://www.deezer.com/artist/9718618",
      "picture": "https://api.deezer.com/artist/9718618/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist//56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist//250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist//500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist//1000x1000-000000-80-0-0.jpg",
      "nb_album": 0,
      "nb_fan": 24,
      "radio": false,
      "tracklist": "https://api.deezer.com/artist/9718618/top?limit=50",
      "type": "artist"
    },
    {
      "id": "9644252",
      "name": "Billie Eilish & Blackbear",
      "link": "https://www.deezer.com/artist/9644252",
      "picture": "https://api.deezer.com/artist/9644252/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist//56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist//250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist//500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist//1000x1000-000000-80-0-0.jpg",
      "nb_album": 0,
      "nb_fan": 165,
      "radio": false,
      "tracklist": "https://api.deezer.com/artist/9644252/top?limit=50",
      "type": "artist"
    },
    {
      "id": "9644254",
      "name": "Billie Eilish & Astronomyy",
      "link": "https://www.deezer.com/artist/9644254",
      "picture": "https://api.deezer.com/artist/9644254/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist//56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist//250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist//500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist//1000x1000-000000-80-0-0.jpg",
      "nb_album": 0,
      "nb_fan": 109,
      "radio": false,
      "tracklist": "https://api.deezer.com/artist/9644254/top?limit=50",
      "type": "artist"
    }
  ],
  "total": 4
}

Once you get the artist ID you can do things like "Related" (truncated for space)
Code
{
  "data": [
    {
      "id": "5518450",
      "name": "Melanie Martinez",
      "link": "https://www.deezer.com/artist/5518450",
      "picture": "https://api.deezer.com/artist/5518450/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist/cb72b850fd6a761bcdd2609c5eae8e3a/56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist/cb72b850fd6a761bcdd2609c5eae8e3a/250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist/cb72b850fd6a761bcdd2609c5eae8e3a/500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist/cb72b850fd6a761bcdd2609c5eae8e3a/1000x1000-000000-80-0-0.jpg",
      "nb_album": 26,
      "nb_fan": 294696,
      "radio": true,
      "tracklist": "https://api.deezer.com/artist/5518450/top?limit=50",
      "type": "artist"
    },
    {
      "id": "50633812",
      "name": "Conan Gray",
      "link": "https://www.deezer.com/artist/50633812",
      "picture": "https://api.deezer.com/artist/50633812/image",
      "picture_small": "https://e-cdns-images.dzcdn.net/images/artist/7907c9fd375e417e5ba35cb85c80b7a1/56x56-000000-80-0-0.jpg",
      "picture_medium": "https://e-cdns-images.dzcdn.net/images/artist/7907c9fd375e417e5ba35cb85c80b7a1/250x250-000000-80-0-0.jpg",
      "picture_big": "https://e-cdns-images.dzcdn.net/images/artist/7907c9fd375e417e5ba35cb85c80b7a1/500x500-000000-80-0-0.jpg",
      "picture_xl": "https://e-cdns-images.dzcdn.net/images/artist/7907c9fd375e417e5ba35cb85c80b7a1/1000x1000-000000-80-0-0.jpg",
      "nb_album": 4,
      "nb_fan": 2945,
      "radio": true,
      "tracklist": "https://api.deezer.com/artist/50633812/top?limit=50",
      "type": "artist"
    },
}

jspaceman009

  • Newbie
  • *
  • Posts: 2
Greatly appreciate all the recent work on getting MB functioning during the last.fm crisis. I'm neither a programmer or contributor, just a consumer. One of the key elements I used MB/Last.fm for was to generate GENRE tags.

It was a super smooth process and very consistent. I've noticed this is one of the aspects that is still not normal since the last.fm problems, in fact the recent pluggin has removed it all together. The options remaining cannot retrieve genres. I've attempted to use Musicbrainz Picard which has a plugin for wikidata genre retrieval. It kinda works, no where near as robust as MB was with the last.fm option. Also Picard is a tricky software, unless properly configured it can easily wipe all your ID3 tags with the click of the mouse.

Steven, I know you're putting in some hard work and you've got an excellent piece of software. Is there a way to resolve the genre search/tag functionality? I'm guessing there are sources to retrieve this metadata. I wouldn't know how to do it, but the feature is essential to my library and nearly all auto-dj sessions are built from genre.

Could I be missing something? Thanks for any assistance. Great work as always. Thanks.

stardepp

  • Full Member
  • ***
  • Posts: 220
It's a shame that this played counter has been removed in the current playlist in MusicBee version 3.3.7071. I would be very happy if this played counter is displayed again in the next version of MusicBee, because I find this feature very useful.



Last Edit: May 13, 2019, 05:01:58 AM by stardepp

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 29770
To the people requesting certain old functionality from last.fm that you liked using. Please stop. It wont be coming back unless last.fm decide to change their API policy which seems unlikely