Skip to content

Check file existence before searching for lyrics#498

Merged
jacquesh merged 2 commits into
jacquesh:mainfrom
sceriz:skip-search-missing-files
May 4, 2026
Merged

Check file existence before searching for lyrics#498
jacquesh merged 2 commits into
jacquesh:mainfrom
sceriz:skip-search-missing-files

Conversation

@sceriz
Copy link
Copy Markdown
Contributor

@sceriz sceriz commented Apr 25, 2026

When a playlist has tracks that no longer exist on disk, foobar2000 skips past them instantly to the next track. The plugin still tries to search lyrics for each one though, so it ends up rapidly downloading lyrics for all of them and creating the full directory structure for each of the missing file paths in the playlist. You can end up with massive folder trees containing nothing but lyric files.

This adds a check so that lyrics search is skipped if file doesn't exist. Compiled and tested on my end, works as expected.

Copy link
Copy Markdown
Owner

@jacquesh jacquesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tweaks but seems like a reasonable thing to do. Could we please also add something to the changelog for this? As I expect the CI will highlight.

Comment thread src/tag_util.cpp Outdated
Comment thread src/tag_util.cpp Outdated
Comment thread src/lyric_search.cpp Outdated
@sceriz
Copy link
Copy Markdown
Contributor Author

sceriz commented May 1, 2026

Addressed the feedback and pushed an update.

@sceriz sceriz requested a review from jacquesh May 1, 2026 02:20
@sceriz sceriz force-pushed the skip-search-missing-files branch from ec54d2f to 9323745 Compare May 1, 2026 19:55
@jacquesh jacquesh merged commit dcff3fd into jacquesh:main May 4, 2026
2 checks passed
@jacquesh
Copy link
Copy Markdown
Owner

jacquesh commented May 4, 2026

Awesome, thanks!

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.

2 participants