Watchlist: log when the release-type filter skips an album/EP/single
Sokhi reported "14 singles, 0 albums" from a scan and setting lookback to "All" didn't help — because it was never lookback. The cause is the per-artist release-type filter: with "Albums" toggled off, _should_include_release drops every 7+-track release (the full discography is still fetched, then filtered). That skip was completely silent, so there was no way to see it in the log. Now logs each skipped release with its type + the artist's albums/eps/singles toggles, so "why didn't my albums get added" is answerable from app.log. No behaviour change — diagnostics only.
This commit is contained in:
parent
1ca14d1c19
commit
41f4eeb91e
1 changed files with 13 additions and 0 deletions
|
|
@ -1313,6 +1313,19 @@ class WatchlistScanner:
|
|||
logger.info("Skipping album with placeholder tracks: %s", album_name)
|
||||
continue
|
||||
if not self._should_include_release(len(tracks), artist):
|
||||
# Make the type-filter skip visible — otherwise a user
|
||||
# with "Albums" toggled off just sees missing tracks
|
||||
# with no explanation (Sokhi #815-adjacent: 14 singles,
|
||||
# 0 albums because include_albums was off).
|
||||
_n = len(tracks)
|
||||
_kind = 'album' if _n >= 7 else ('EP' if _n >= 4 else 'single')
|
||||
logger.info(
|
||||
"Skipping %s '%s' (%d tracks) — release type filter "
|
||||
"(albums=%s, eps=%s, singles=%s) excludes it",
|
||||
_kind, album_name, _n,
|
||||
getattr(artist, 'include_albums', True),
|
||||
getattr(artist, 'include_eps', True),
|
||||
getattr(artist, 'include_singles', True))
|
||||
continue
|
||||
|
||||
album_image_url = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue