Remove redundant spotify auth check again
This commit is contained in:
parent
876c5665ad
commit
6f9ea2de56
1 changed files with 1 additions and 5 deletions
|
|
@ -1587,11 +1587,7 @@ class WatchlistScanner:
|
||||||
def _match_to_spotify(self, artist_name: str) -> Optional[str]:
|
def _match_to_spotify(self, artist_name: str) -> Optional[str]:
|
||||||
"""Match artist name to Spotify ID using fuzzy name comparison."""
|
"""Match artist name to Spotify ID using fuzzy name comparison."""
|
||||||
try:
|
try:
|
||||||
# Use the authenticated spotify_client passed to the scanner,
|
client = get_client_for_source('spotify')
|
||||||
# not get_client_for_source which creates a fresh unauthenticated instance
|
|
||||||
client = self.spotify_client
|
|
||||||
if not client or not client.is_spotify_authenticated():
|
|
||||||
client = get_client_for_source('spotify')
|
|
||||||
if not client:
|
if not client:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue