Skip to content

Conversation

@hellblazer315
Copy link
Owner

Implement ability to use Sonarr for TV Show file determination. This is optimal when using custom Sonarr scoring (such as that available from TRaSH Guides ) so it has "best match" already imported and disregards any "dupefinder" scoring.

Extend upon Radarr implementation to also support Sonarr.
- Implemented Series cache to minimize API calls. Caches Plex Series ID, TVDB ID, All episode information for Seasons with dupe Episodes,
- Split movie vs tv specific data retrieval in get_item_metadata. TV shows have much more complicated logic to get to the *arr associated file.
- Split movie vs tv specific data retrieval in get_media_info. TV shows have additional required data like season/episode.
- Update build_tabulated to work for Sonarr.
- Rewrite of get_sonarr_file, piggy backing off of cache to reduce API calls.
-
- Fixed tvdbid, series_key, season, and episode number definition.
- Normalized file path for comparison logic.
- Fixed item type retrieval in auto-delete mode.
@hellblazer315 hellblazer315 linked an issue Apr 30, 2025 that may be closed by this pull request
@hellblazer315 hellblazer315 merged commit adf4613 into master Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Sonarr

2 participants