From 961484412a2327eeb5f57de4620162bb4e21b280 Mon Sep 17 00:00:00 2001 From: HazardSy Date: Wed, 21 Feb 2024 08:40:20 +0100 Subject: [PATCH] Rename constant --- src/NzbDrone.Core/ImportLists/Spotify/SpotifyPlaylist.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/Spotify/SpotifyPlaylist.cs b/src/NzbDrone.Core/ImportLists/Spotify/SpotifyPlaylist.cs index c1f6ad3c1..54c350bde 100644 --- a/src/NzbDrone.Core/ImportLists/Spotify/SpotifyPlaylist.cs +++ b/src/NzbDrone.Core/ImportLists/Spotify/SpotifyPlaylist.cs @@ -30,10 +30,9 @@ public SpotifyPlaylist(ISpotifyProxy spotifyProxy, _localizationService = localizationService; } + private const string LIKED_SONGS_ID = "LikedSongs"; public override string Name => "Spotify Playlists"; - private const string LIKEDSONGSID = "LikedSongs"; - private readonly ILocalizationService _localizationService; public override IList Fetch(SpotifyWebAPI api) @@ -49,7 +48,7 @@ public IList Fetch(SpotifyWebAPI api, string playlist Paging playlistTracks; - if (playlistId.Equals(LIKEDSONGSID)) + if (playlistId.Equals(LIKED_SONGS_ID)) { var savedTracks = _spotifyProxy.GetSavedTracks(this, api); playlistTracks = new Paging @@ -167,7 +166,7 @@ public override object RequestAction(string action, IDictionary { id = p.Id, name = p.Name - }).Prepend(new { id = LIKEDSONGSID, name = _localizationService.GetLocalizedString("LikedSongs") }) + }).Prepend(new { id = LIKED_SONGS_ID, name = _localizationService.GetLocalizedString("LikedSongs") }) } }; }