mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-21 23:32:27 +00:00
Rename constant
This commit is contained in:
parent
638940a035
commit
961484412a
1 changed files with 3 additions and 4 deletions
|
@ -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<SpotifyImportListItemInfo> Fetch(SpotifyWebAPI api)
|
||||
|
@ -49,7 +48,7 @@ public IList<SpotifyImportListItemInfo> Fetch(SpotifyWebAPI api, string playlist
|
|||
|
||||
Paging<PlaylistTrack> playlistTracks;
|
||||
|
||||
if (playlistId.Equals(LIKEDSONGSID))
|
||||
if (playlistId.Equals(LIKED_SONGS_ID))
|
||||
{
|
||||
var savedTracks = _spotifyProxy.GetSavedTracks(this, api);
|
||||
playlistTracks = new Paging<PlaylistTrack>
|
||||
|
@ -167,7 +166,7 @@ public override object RequestAction(string action, IDictionary<string, string>
|
|||
{
|
||||
id = p.Id,
|
||||
name = p.Name
|
||||
}).Prepend(new { id = LIKEDSONGSID, name = _localizationService.GetLocalizedString("LikedSongs") })
|
||||
}).Prepend(new { id = LIKED_SONGS_ID, name = _localizationService.GetLocalizedString("LikedSongs") })
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue