Inhji posted

It doesn’t work for me, I’m on Android 9 and using Phonograph as my music player. I compiled your version of sls and tried submitting a few tracks to Listenbrainz. In my case, the MBID does not get submitted (I checked with picard to see if it actually exists in the metadata of my mp3s).

Logcat output from sls:

05-15 09:47:17.004 D/ScrobblingService(17740): State: RESUME
05-15 09:47:17.007 D/ScrobblingService(17740): Will try to queue track, played: 256845 vs 125440
05-15 09:47:17.009 D/ScrobblingService(17740): queued track after playtime: 256845
05-15 09:47:17.010 D/ScrobblingService(17740): Track [mTrack=Progress, mArtist=Disasterpeace, mAlbum=FEZ, mDuration=256, mMbId=, mMusicAPI=MusicAPI [clashWithScrobbleDroid=1, enabled=1, id=1, msg=null, name=Phonograph, pkg=com.kabouzeid.gramophone], mQueued=true, mRating=, mRowId=-1, mSource=P, mTimePlayed=256845, mTracknr=4, mUnknownDuration=false, mWhen=1557906180, mWhenToCountTimeFrom=410865526]
05-15 09:47:17.010 D/ScrobblingService(17740): inserting scrobble: ListenBrainz

API Repsponse of the same song:

         {  
            "listened_at":1557906180,
            "recording_msid":"fa9ae023-cdef-44bb-bc95-d95e983ff415",
            "track_metadata":{  
               "additional_info":{  
                  "artist_mbids":[  

                  ],
                  "artist_msid":"9063f2de-8e91-41aa-9e9f-31ef05130882",
                  "isrc":null,
                  "recording_mbid":null,
                  "recording_msid":"fa9ae023-cdef-44bb-bc95-d95e983ff415",
                  "release_group_mbid":null,
                  "release_mbid":null,
                  "release_msid":"1bb4dfb7-23e8-41f6-bf29-a1b6324f3ece",
                  "spotify_id":null,
                  "tags":[  

                  ],
                  "track_mbid":null,
                  "tracknumber":null,
                  "work_mbids":[  

                  ]
               },
               "artist_name":"Disasterpeace",
               "release_name":"FEZ",
               "track_name":"Progress"
            },
            "user_name":"inhji"
         }

It seems the MBID is never set on the Track object. track.getMbid() returns nothing.