flecs
flecs copied to clipboard
feat(plugin): Skip Live Songs - Automatically skip most non-studio recordings
Description
Adds a new plugin that automatically tries to skip most non-studio recordings, live performances, and concert versions of songs to ensure users only listen to studio recordings.
What does this plugin do?
The Skip Live Songs plugin monitors song titles and automatically skips to the next track when it detects patterns indicating a non-studio recording, such as:
- Live performances (e.g., "Song Title (Live)", "Live at Wembley")
- Concert recordings and festival performances
- Acoustic/unplugged versions
- Radio sessions and rehearsals
- Songs with venue names (e.g., "Madison Square Garden", "Glastonbury")
- Recordings with dates or location markers
Implementation Details
- The plugin listens to the
peard:update-song-infoevent - Checks song titles against a comprehensive set of regex patterns defined in
patterns.ts - Automatically clicks the next button when a non-studio version is detected
- Includes debug logging for troubleshooting
- Properly cleans up event listeners on stop to prevent memory leaks
Files Changed
src/plugins/skip-live-songs/index.ts- Main plugin logicsrc/plugins/skip-live-songs/patterns.ts- Pattern definitions for detecting live/non-studio recordings using regexsrc/i18n/resources/en.json- English translations for plugin name and description- (Additional language files if translated)
Related Plugins
Similar to the existing "Skip Disliked Songs" plugin, but focuses on filtering out live performances and non-studio recordings instead of user-marked dislikes.