Repository navigation
fix(autoplay): strip bare tradução, purge now-playing duplicates, reduce lastfm boost - #591
Conversation
…uce lastfm boost - add bare \btradu[çc][aã]o\b, \btraduzido\b patterns so "YE - FATHER Tradução" deduplicates against "YE - FATHER" - purgeDuplicatesOfCurrentTrack() removes stale duplicates of now-playing at each replenish cycle - reduce LASTFM_SCORE_BOOST 0.1 → 0.0 so last.fm novelty tracks no longer outrank seed-based candidates (prevents unrelated genre injection) - update lastfm seed test: reason assertion removed (track added via seed-based path, reason is implementation detail)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR adjusts Last.fm scoring in autoplay queue replenishment by zeroing the LASTFM_SCORE_BOOST constant, adds duplicate track purging logic to remove now-playing track variants before replenishment, expands Portuguese language noise pattern matching, and relaxes test assertions on recommendation reason metadata. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…uce lastfm boost (#591) - add bare \btradu[çc][aã]o\b, \btraduzido\b patterns so "YE - FATHER Tradução" deduplicates against "YE - FATHER" - purgeDuplicatesOfCurrentTrack() removes stale duplicates of now-playing at each replenish cycle - reduce LASTFM_SCORE_BOOST 0.1 → 0.0 so last.fm novelty tracks no longer outrank seed-based candidates (prevents unrelated genre injection) - update lastfm seed test: reason assertion removed (track added via seed-based path, reason is implementation detail)



Summary
\btradu[çc][aã]o\band\btraduzido\btoNOISE_PATTERNSso "YE - FATHER Tradução" normalizes to the same key as "YE - FATHER" and is rejected as a duplicatepurgeDuplicatesOfCurrentTrack()runs at the start of each replenish cycle and removes any upcoming queue tracks that duplicate the now-playing track (catches duplicates added before the current song started)LASTFM_SCORE_BOOSTlowered from0.1→0.0so Last.fm novelty candidates no longer outscore seed-based candidates from the same session — prevents unrelated genre injection (e.g. Brazilian funk during a rap session)Test plan
Summary by CodeRabbit
Bug Fixes
Improvements
Tests