DiscoveryLastFM discovers and downloads new music via torrent. Based on Last.fm listening history and automatically queues downloads via Lidarr or Headphones API.
Modern music discovery tool that integrates Last.fm, MusicBrainz, and both Headphones & Lidarr to automatically discover and queue new albums based on your listening history.
Dual Service Support: Choose between Headphones or Lidarr with a single configuration change
Modular Architecture: Clean service layer for easy extensibility
Zero Breaking Changes: Existing Headphones users continue without modifications
Advanced Configuration: Enhanced quality and metadata profile management for Lidarr
Robust Error Handling: Improved retry logic and connection management
Service Parity: Identical functionality across both music management services
Auto Update System: includes a built-in auto-update system
Features
Core Discovery Engine
Smart Discovery: Analyzes your Last.fm listening history to find similar artists
Quality Filtering: Only queues studio albums, excluding compilations, live albums, EPs, etc.
Duplicate Prevention: Maintains persistent cache to avoid adding albums multiple times
Comprehensive Logging: Detailed logging both to console and file
Service Integration
Dual Service Support: Seamlessly works with both Headphones and Lidarr
Easy Service Switching: Change between services with a single configuration parameter
Quality Profiles: Advanced quality and metadata profile management (Lidarr)
Folder Management: Automatic root folder and library organization
Technical Excellence
Robust API Handling: Built-in retry mechanisms with exponential backoff
Rate Limiting: Respects API rate limits for all services
Modular Architecture: Clean, extensible service layer design
Configuration Validation: Startup validation ensures proper setup
How It Works
Fetch Recent Artists: Retrieves artists you’ve listened to recently on Last.fm
Find Similar Artists: Discovers similar artists using Last.fm’s recommendation engine
Add to Music Service: Automatically adds both original and similar artists to your chosen service (Headphones/Lidarr)
Queue Top Albums: Fetches and queues the most popular studio albums from each artist
Smart Filtering: Uses MusicBrainz metadata to filter out non-studio releases
Cache Management: Maintains cache to optimize performance and avoid duplicates
Service Integration: Seamlessly works with your chosen music management service
—–
DiscoveryLastFM command added to NAS $PATH
config.py in /opt/DiscoveryLastFM84/DiscoveryLastFM/
refer to documentation on Github : https://github.com/MrRobotoGit/DiscoveryLastFM
Last update: 14 November 2025



