diff --git a/src/artist_tracker/tracker.py b/src/artist_tracker/tracker.py index 3c31a8f..39f3afb 100644 --- a/src/artist_tracker/tracker.py +++ b/src/artist_tracker/tracker.py @@ -623,14 +623,10 @@ def _get_recent_releases( logger.debug(f"Caching {len(releases)} releases for artist '{artist_name}'") for release in releases: try: - # Extract IDs from the release data - # Note: We need to store artist_id, album_id, track_id which aren't in the final release dict - # So we need to modify the release building code to include these IDs - # For now, cache with what we have - we'll need to enhance this cache_data = { 'artist_id': artist_id, - 'album_id': release.get('album_id', ''), # We need to add this to releases - 'track_id': release.get('track_id', ''), # We need to add this to releases + 'album_id': release.get('album_id', ''), + 'track_id': release.get('track_id', ''), 'isrc': release['isrc'] if release['isrc'] != 'N/A' else None, 'release_date': release['release_date'], 'album_name': release['album'],