Fix nullable warnings in SpotifyMissingTracksFetcher

This commit is contained in:
2026-02-01 11:18:58 -05:00
parent df3cc51e17
commit e860bbe0ee

View File

@@ -251,6 +251,13 @@ public class SpotifyMissingTracksFetcher : BackgroundService
var settings = _spotifySettings.Value;
var jellyfinUrl = _jellyfinSettings.Value.Url;
var apiKey = _jellyfinSettings.Value.ApiKey;
if (string.IsNullOrEmpty(jellyfinUrl) || string.IsNullOrEmpty(apiKey))
{
_logger.LogWarning("Jellyfin URL or API key not configured, skipping fetch for {Playlist}", playlistName);
return;
}
var httpClient = _httpClientFactory.CreateClient();
// Start from the configured sync time (most likely time)