Compare commits
2 Commits
0.6.5
...
da2a32ecfc
Author | SHA1 | Date | |
---|---|---|---|
da2a32ecfc | |||
ef8c8fb867 |
11
HISTORY.md
11
HISTORY.md
@@ -5,10 +5,21 @@ Changelog
|
||||
(unreleased)
|
||||
------------
|
||||
|
||||
Fix
|
||||
~~~
|
||||
- Add additional logging, refs NOISSUE. [Simon Diesenreiter]
|
||||
|
||||
|
||||
0.6.5 (2025-07-20)
|
||||
------------------
|
||||
|
||||
Fix
|
||||
~~~
|
||||
- Configurable Cron schedules, refs NOISSUE. [Simon Diesenreiter]
|
||||
|
||||
Other
|
||||
~~~~~
|
||||
|
||||
|
||||
0.6.4 (2025-07-20)
|
||||
------------------
|
||||
|
@@ -86,18 +86,21 @@ likePlaylistCheckTimer.OnOccurence += async (s, ea) =>
|
||||
{
|
||||
if (!await spotifyApiClient.IsUserAuthenticatedAsync(user))
|
||||
{
|
||||
logger.LogWarning($"User {user.LdapUserName} is not authorized with Spotify - skipping playlist sync");
|
||||
continue;
|
||||
}
|
||||
var foundPlaylist = dci.SmartPlaylistDefinitions?.Where(p => p.CreatedBy == user).ToList().Where(p => p.IsThisUsersLikedSongsPlaylist).SingleOrDefault();
|
||||
if (foundPlaylist == null)
|
||||
{
|
||||
var title = $"{user.PreferredName}'s liked Songs";
|
||||
logger.LogWarning($"Creating liked songs playlist for user {user.LdapUserName}");
|
||||
var title = $"{user.PreferredName}'s liked songs";
|
||||
var description = $"A collection of the songs liked by {user.PreferredName} on their 'Song of the day' server instance.";
|
||||
// playlist does not exist yet, creating it
|
||||
var newPlaylist = await (await spotifyApiClient.WithUserAuthorizationAsync(user)).CreateSpotifyPlaylist(title, description, false, true, user);
|
||||
await playlistSynchronizer.SynchronizePlaylistAsync(newPlaylist);
|
||||
needsSaving = true;
|
||||
}
|
||||
logger.LogWarning($"Syncing playlists for user {user.LdapUserName}");
|
||||
await playlistSynchronizer.SynchronizeUserPlaylistsAsync(user);
|
||||
}
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
0.6.5
|
||||
0.6.6
|
||||
|
Reference in New Issue
Block a user