@@ -346,7 +346,7 @@ private synchronized void enrichWithMetadata(@NotNull Metadata.Track track) {
346346 if (track .hasPopularity ()) builder .putMetadata ("popularity" , String .valueOf (track .getPopularity ()));
347347 if (track .hasExplicit ()) builder .putMetadata ("is_explicit" , String .valueOf (track .getExplicit ()));
348348 if (track .hasHasLyrics ()) builder .putMetadata ("has_lyrics" , String .valueOf (track .getHasLyrics ()));
349- if (track .hasName ()) builder .putMetadata ("title" , String . valueOf ( track .getName () ));
349+ if (track .hasName ()) builder .putMetadata ("title" , track .getName ());
350350 if (track .hasDiscNumber ()) builder .putMetadata ("album_disc_number" , String .valueOf (track .getDiscNumber ()));
351351
352352 for (int i = 0 ; i < track .getArtistCount (); i ++) {
@@ -405,7 +405,7 @@ private synchronized void enrichWithMetadata(@NotNull Metadata.Episode episode)
405405
406406 ProvidedTrack .Builder builder = state .getTrackBuilder ();
407407 if (episode .hasExplicit ()) builder .putMetadata ("is_explicit" , String .valueOf (episode .getExplicit ()));
408- if (episode .hasName ()) builder .putMetadata ("title" , String . valueOf ( episode .getName () ));
408+ if (episode .hasName ()) builder .putMetadata ("title" , episode .getName ());
409409
410410 if (episode .hasShow ()) {
411411 Metadata .Show show = episode .getShow ();
@@ -1055,6 +1055,7 @@ synchronized void initializeFrom(@NotNull TrackFinder finder, @Nullable ContextT
10551055 List <ContextTrack > newTracks = pages .currentPage ();
10561056 int index = finder .find (newTracks );
10571057 if (index == -1 ) {
1058+ LOGGER .trace ("Did not find track, going to next page, finder: {}" , finder );
10581059 tracks .addAll (newTracks );
10591060 continue ;
10601061 }
@@ -1063,6 +1064,7 @@ synchronized void initializeFrom(@NotNull TrackFinder finder, @Nullable ContextT
10631064 tracks .addAll (newTracks );
10641065
10651066 setCurrentTrackIndex (index );
1067+ LOGGER .trace ("Initialized current track index to {}, finder: {}" , index , finder );
10661068 break ;
10671069 } else {
10681070 cannotLoadMore = true ;
0 commit comments