mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
log time message
This commit is contained in:
@@ -63,9 +63,23 @@ public class SpotifyMissingTracksFetcher : BackgroundService
|
|||||||
_logger.LogInformation("Spotify Import ENABLED");
|
_logger.LogInformation("Spotify Import ENABLED");
|
||||||
_logger.LogInformation("Configured Playlist IDs: {Count}", _spotifySettings.Value.PlaylistIds.Count);
|
_logger.LogInformation("Configured Playlist IDs: {Count}", _spotifySettings.Value.PlaylistIds.Count);
|
||||||
|
|
||||||
|
// Log the search schedule
|
||||||
|
var settings = _spotifySettings.Value;
|
||||||
|
var syncTime = DateTime.Today
|
||||||
|
.AddHours(settings.SyncStartHour)
|
||||||
|
.AddMinutes(settings.SyncStartMinute);
|
||||||
|
var syncEndTime = syncTime.AddHours(settings.SyncWindowHours);
|
||||||
|
|
||||||
|
_logger.LogInformation("Search Schedule:");
|
||||||
|
_logger.LogInformation(" Plugin sync time: {Time:HH:mm} (configured)", syncTime);
|
||||||
|
_logger.LogInformation(" Search window: {Start:HH:mm} - {End:HH:mm} ({Hours}h window)",
|
||||||
|
syncTime, syncEndTime, settings.SyncWindowHours);
|
||||||
|
_logger.LogInformation(" Will search for missing tracks files every 5 minutes during window");
|
||||||
|
|
||||||
// Fetch playlist names from Jellyfin
|
// Fetch playlist names from Jellyfin
|
||||||
await LoadPlaylistNamesAsync();
|
await LoadPlaylistNamesAsync();
|
||||||
|
|
||||||
|
_logger.LogInformation("Configured Playlists:");
|
||||||
foreach (var kvp in _playlistIdToName)
|
foreach (var kvp in _playlistIdToName)
|
||||||
{
|
{
|
||||||
_logger.LogInformation(" - {Name} (ID: {Id})", kvp.Value, kvp.Key);
|
_logger.LogInformation(" - {Name} (ID: {Id})", kvp.Value, kvp.Key);
|
||||||
|
|||||||
Reference in New Issue
Block a user