mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Fix nullable warnings in SpotifyMissingTracksFetcher
This commit is contained in:
@@ -251,6 +251,13 @@ public class SpotifyMissingTracksFetcher : BackgroundService
|
|||||||
var settings = _spotifySettings.Value;
|
var settings = _spotifySettings.Value;
|
||||||
var jellyfinUrl = _jellyfinSettings.Value.Url;
|
var jellyfinUrl = _jellyfinSettings.Value.Url;
|
||||||
var apiKey = _jellyfinSettings.Value.ApiKey;
|
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();
|
var httpClient = _httpClientFactory.CreateClient();
|
||||||
|
|
||||||
// Start from the configured sync time (most likely time)
|
// Start from the configured sync time (most likely time)
|
||||||
|
|||||||
Reference in New Issue
Block a user