This commit is contained in:
Broque Thomas 2025-07-28 20:41:06 -07:00
parent fc87fe1740
commit 8a2f5eb503
6 changed files with 31283 additions and 12 deletions

View file

@ -1 +1 @@
{"access_token": "BQAX2tP36P49Pqyfkqzyd5Flp_POENiQdd91NLRXhAnH2Ha8UyiAkM8PkubgHOUbZ3qWDtrPAatNMzHwhxwA4fSCBiRT9Aq8CMq4ayGGANhZxHC04XrQMan7oKKyeHvx6P46DrqDwGAeGx8joR2rUswd0C-iMpSqK8nk3krWdCUVhabMuDxVFtRWsTqbdmnXVNsqh9QK-XABRE0PZ2U1ZTaPJwT1M3gFvYKHxj-Rym3qbHR5kqSuEohZXtcKZBMq", "token_type": "Bearer", "expires_in": 3600, "scope": "user-library-read user-read-private playlist-read-private playlist-read-collaborative user-read-email", "expires_at": 1753756658, "refresh_token": "AQDmfQkPCGObfJeTUIbW1hAAwhSqkuHRA3Qh2dqVYMRh0eCkFMQgPNJDDzF8y-BiaVbj80zePkK_XSfYH1aJutMtNbnsqRKWuxP31BTrMc7pdUdbE7Fma4oH8wpDUKdG3MM"}
{"access_token": "BQB6squZ7SCnlhyV7JMzgjrYxuFnnJndk73GClKwZNZfnhuIOAQUZb-rwm_797BLGj83vYjKYcOd-4YUTpEH4hDGTgcGavc6Lh-R8JOIKdunsMoivUpH2eA7ai7-5JE2qrpEQ4fri3fz_NvbXsuCKiulTIpjM0LSURmKXQGwXgX2qzu2v61Rh0sghjL3Y3B3Xlj0LZWi2D-CMMPV7eQZ_sTEFAMiLRUO6E8nWtj6UJ3N5BBkb6XtiPcxSTDel5xf", "token_type": "Bearer", "expires_in": 3600, "scope": "user-library-read user-read-private playlist-read-private playlist-read-collaborative user-read-email", "expires_at": 1753760199, "refresh_token": "AQDmfQkPCGObfJeTUIbW1hAAwhSqkuHRA3Qh2dqVYMRh0eCkFMQgPNJDDzF8y-BiaVbj80zePkK_XSfYH1aJutMtNbnsqRKWuxP31BTrMc7pdUdbE7Fma4oH8wpDUKdG3MM"}

View file

@ -534,7 +534,6 @@ class PlexClient:
try:
# Get current summary/biography
current_summary = getattr(artist, 'summary', '') or ''
print(f"[DEBUG] Original summary for '{artist.title}': '{current_summary[:100]}...'")
# Preserve any IgnoreUpdate flag
ignore_flag = ''
@ -556,13 +555,10 @@ class PlexClient:
new_summary = f"{new_summary}\n\n{ignore_flag}".strip()
new_summary = f"{new_summary}\n\n-updatedAt{today}".strip()
print(f"[DEBUG] Setting summary for '{artist.title}': ending with '{new_summary[-50:]}'")
# Use the correct Plex API syntax with .value (testing without lock first)
# Use the correct Plex API syntax with .value
artist.edit(**{
'summary.value': new_summary
})
print(f"[DEBUG] Called artist.edit with summary.value (no lock) for '{artist.title}'")
# Add a small delay to let the edit process
import time
@ -570,24 +566,18 @@ class PlexClient:
# Reload to see the changes
artist.reload()
print(f"[DEBUG] Called artist.reload() for '{artist.title}'")
# Check if edit worked
updated_summary = getattr(artist, 'summary', '') or ''
print(f"[DEBUG] Summary after reload for '{artist.title}': ending with '{updated_summary[-50:]}'")
if updated_summary and '-updatedAt' in updated_summary:
logger.info(f"Updated summary timestamp for {artist.title}")
return True
else:
print(f"[DEBUG] Timestamp not found in summary after reload for '{artist.title}'")
return False
except Exception as e:
print(f"[DEBUG] Exception in update_artist_biography for '{artist.title}': {e}")
logger.error(f"Error updating summary for {artist.title}: {e}")
import traceback
traceback.print_exc()
return False
def update_track_metadata(self, track_id: str, metadata: Dict[str, Any]) -> bool:

31277
logs/app.log

File diff suppressed because it is too large Load diff

View file

@ -77,6 +77,10 @@ class MetadataUpdateWorker(QThread):
artist_name = getattr(artist, 'title', 'Unknown Artist')
# Double-check ignore flag right before processing (in case it was added after loading)
if self.plex_client.is_artist_ignored(artist):
return (artist_name, True, "Skipped (ignored)")
try:
success, details = self.update_artist_metadata(artist)
return (artist_name, success, details)