feature: Enhanced Labelarr with Radarr/Sonarr Integration and Keyword Normalization #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




Summary
This PR adds several major enhancements to Labelarr while maintaining full backward compatibility:
Key Features
🚀 Radarr/Sonarr Integration
💾 Persistent Storage
📝 Keyword Normalization
🔍 Verbose Logging
🔄 Force Update Mode
🧹 Smart Duplicate Cleaning
Changes Made
New Modules
internal/radarr/- Complete Radarr API v3 clientinternal/sonarr/- Complete Sonarr API v3 clientinternal/storage/- Persistent storage implementationinternal/utils/normalize.go- Keyword normalization utilityModified Files
internal/media/processor.gowith multi-source TMDb ID detectioninternal/tmdb/client.goto normalize keywordsinternal/config/config.gowith new configuration optionsmain.gowith connection testing and client initializationDocumentation
Testing
Configuration
All new features are optional and disabled by default:
Backward Compatibility
Examples
Verbose Logging Output
Persistent Storage
{ "ratingKey": "12345", "title": "The Matrix", "tmdbId": "603", "lastProcessed": "2025-07-05T10:30:45Z", "keywordsSynced": true, "updateField": "label" }Real-World Results
The keyword normalization feature ensures consistent, professional-looking keywords in your Plex library. For example, "50 First Dates" shows properly formatted genres including "Romantic Comedy" (normalized from "romcom"), "Short-term Memory Loss", and "True Love" - all with correct capitalization and formatting.
Related Issues
This PR addresses several community requests for: