github therobbiedavis/Listenarr 0.2.17
Canary 0.2.17

latest releases: 0.2.45, 0.2.44, 0.2.40...
pre-releaseone month ago

This pull request improves the seeding logic for default metadata API sources in Program.cs by making the process more robust and informative. The changes ensure that default sources are only added when necessary, provide clearer logging, and handle errors more explicitly.

Improvements to metadata API source seeding:

  • Checks for existing metadata API sources (Audimeta, Audnexus) before attempting to add defaults, preventing duplicate entries and unnecessary database writes.
  • Adds detailed logging to report the number and names of existing sources, and logs when sources are added or skipped. [1] [2] [3]
  • Introduces a needsChanges flag to track if new sources were added, and only calls SaveChanges() when needed, logging the number of records inserted.

Error handling improvements:

  • Changes error logging from LogWarning to LogError and clarifies the impact of a seeding failure on metadata functionality.

Automated canary build

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.