Rename constant

pull/4613/head
HazardSy 3 months ago
parent 638940a035
commit 961484412a

@ -30,10 +30,9 @@ namespace NzbDrone.Core.ImportLists.Spotify
_localizationService = localizationService; _localizationService = localizationService;
} }
private const string LIKED_SONGS_ID = "LikedSongs";
public override string Name => "Spotify Playlists"; public override string Name => "Spotify Playlists";
private const string LIKEDSONGSID = "LikedSongs";
private readonly ILocalizationService _localizationService; private readonly ILocalizationService _localizationService;
public override IList<SpotifyImportListItemInfo> Fetch(SpotifyWebAPI api) public override IList<SpotifyImportListItemInfo> Fetch(SpotifyWebAPI api)
@ -49,7 +48,7 @@ namespace NzbDrone.Core.ImportLists.Spotify
Paging<PlaylistTrack> playlistTracks; Paging<PlaylistTrack> playlistTracks;
if (playlistId.Equals(LIKEDSONGSID)) if (playlistId.Equals(LIKED_SONGS_ID))
{ {
var savedTracks = _spotifyProxy.GetSavedTracks(this, api); var savedTracks = _spotifyProxy.GetSavedTracks(this, api);
playlistTracks = new Paging<PlaylistTrack> playlistTracks = new Paging<PlaylistTrack>
@ -167,7 +166,7 @@ namespace NzbDrone.Core.ImportLists.Spotify
{ {
id = p.Id, id = p.Id,
name = p.Name name = p.Name
}).Prepend(new { id = LIKEDSONGSID, name = _localizationService.GetLocalizedString("LikedSongs") }) }).Prepend(new { id = LIKED_SONGS_ID, name = _localizationService.GetLocalizedString("LikedSongs") })
} }
}; };
} }

Loading…
Cancel
Save