mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Remove unnecessary /me API call - not needed for sp_dc auth
This commit is contained in:
@@ -233,18 +233,8 @@ public class SpotifyPlaylistFetcher : BackgroundService
|
||||
return;
|
||||
}
|
||||
|
||||
// Try to get user info (may fail even with valid token due to scope limitations)
|
||||
var (gotUser, userId, displayName) = await _spotifyClient.GetCurrentUserAsync(stoppingToken);
|
||||
|
||||
_logger.LogInformation("Spotify API ENABLED");
|
||||
if (gotUser)
|
||||
{
|
||||
_logger.LogInformation("Authenticated as: {DisplayName} ({UserId})", displayName, userId);
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogInformation("Authenticated (user profile not accessible, but token is valid)");
|
||||
}
|
||||
_logger.LogInformation("Authenticated via sp_dc session cookie");
|
||||
_logger.LogInformation("Cache duration: {Minutes} minutes", _spotifyApiSettings.CacheDurationMinutes);
|
||||
_logger.LogInformation("ISRC matching: {Enabled}", _spotifyApiSettings.PreferIsrcMatching ? "enabled" : "disabled");
|
||||
_logger.LogInformation("Configured Playlists: {Count}", _spotifyImportSettings.Playlists.Count);
|
||||
|
||||
Reference in New Issue
Block a user