Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1700

Import Spotify and Apple Music playlists limited to 100 tracks

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      As reported in  LB-1514 comments, the current troi patch to import spotify and apple music playlists are limited to 100 tracks (the same limit enforce by the Spotify API  and spotipy, and Apple Music APIs).

      To get all the tracks in a playlist, we need to use an offset and loop over tracks, 100 at a time.

          [LB-1700] Import Spotify and Apple Music playlists limited to 100 tracks

          sanojjonas added a comment - - edited

          i did some more research and i found that the artist of songs that cannot be found is from a local band called "STEVE".

          https://music.apple.com/us/artist/steve/1676694136

          i think it can't find the correct artist since there are so many steve's.

          it is the 171 artist in the listenbrainz search thingy.

          https://listenbrainz.org/search/?search_term=STEVE&search_type=artist&page=4

           

          sanojjonas added a comment - - edited i did some more research and i found that the artist of songs that cannot be found is from a local band called "STEVE". https://music.apple.com/us/artist/steve/1676694136 i think it can't find the correct artist since there are so many steve's. it is the 171 artist in the listenbrainz search thingy. https://listenbrainz.org/search/?search_term=STEVE&search_type=artist&page=4  

          sanojjonas added a comment - - edited

          mr_monkey i tried it on the testserver and it does fail sometimes for me.

          i think it is because you check if the amount of songs imported are the same amount as there are in the playlist.

          but if i tested this with the official listenbrainz website and i try to import the same playlist, it doesn't import all 100 songs.

          it only import 97 of them.

          and i think it is because it sometimes doesn't find a match.

           

          in my opinion it wouldn't be to bad if it didn't import ALL the songs, as long as i know what songs it didn't get a match on.

          sanojjonas added a comment - - edited mr_monkey i tried it on the testserver and it does fail sometimes for me. i think it is because you check if the amount of songs imported are the same amount as there are in the playlist. but if i tested this with the official listenbrainz website and i try to import the same playlist, it doesn't import all 100 songs. it only import 97 of them. and i think it is because it sometimes doesn't find a match.   in my opinion it wouldn't be to bad if it didn't import ALL the songs, as long as i know what songs it didn't get a match on.

          Monkey added a comment -

          Thanks sanojjonas I worked on the Apple Music part as well in https://github.com/metabrainz/troi-recommendation-playground/pull/154

           

          Monkey added a comment - Thanks sanojjonas I worked on the Apple Music part as well in https://github.com/metabrainz/troi-recommendation-playground/pull/154  

          sanojjonas added a comment -

          mr_monkey can this fix also be done for apple music?

          sanojjonas added a comment - mr_monkey can this fix also be done for apple music?

          GitHub Bot added a comment -

          See code changes in pull request #153 submitted by MonkeyDo.

          GitHub Bot added a comment - See code changes in pull request #153 submitted by MonkeyDo .

            mr_monkey Monkey
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package