Fix Discogs API integration with proper authentication

- Updated to use python3-discogs-client==2.8 library
- Added environment variable configuration for API keys
- Implemented proper error handling for missing API credentials
- Added .env file for configuration management
- Enhanced search functionality with graceful fallbacks
- Updated README with Discogs API setup instructions
This commit is contained in:
2025-08-11 16:15:15 +07:00
parent 28f927e973
commit d9f184d084
8 changed files with 655 additions and 0 deletions

6
.env Normal file
View File

@@ -0,0 +1,6 @@
# Discogs API Configuration
# Get your API key from: https://www.discogs.com/settings/developers
# DISCOGS_USER_TOKEN=your_discogs_user_token_here
# Optional: Discogs User Agent (recommended)
# DISCOGS_USER_AGENT=YourAppName/1.0 +http://yourwebsite.com