Repository navigation
feat(lyrics): add a setting to turn the lookup off - #780
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to Disabled lyrics lookups do not send Spotify track-change details to the lyrics services. The change is mergeable after normal checks. Pre-merge checks ·
|
4deea38 to
4d71b21
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
# Summary With `behavior.disable_auto_update` on, the desktop app still asked GitHub for a new release at launch and every 6 hours, and only skipped the download. The terminal app already skips the whole check. Now the desktop app does too: the timed check runs only while auto-update is on, and Check for updates on the Settings page still works. SignPath Foundation requires an off switch for every feature that sends data, and the privacy policy lists this one. Two small functions in `src/runtime/gui.rs` hold the decision: - `scheduled_check`: the launch and 6-hour check, `None` while auto-update is off. - `changed_check`: what a settings change sends. After an earlier check it sends the new settings when they differ (as before, so turning auto-update off still clears the updater's auto-download flag). With no earlier check it sends the first check once auto-update is turned on, so turning it back on looks at once instead of after 6 hours. The Settings description and the e2e fixture now say the check is manual. # Testing - `cargo fmt --all` - `cargo clippy --no-default-features --features telemetry,tui -- -D warnings`: clean - `cargo clippy --no-default-features --features telemetry,gui,streaming,discord-rpc,self-update,scripting,mcp-server -- -D warnings`: clean - `cargo test --no-default-features --features telemetry,gui,streaming,discord-rpc,self-update,scripting,mcp-server`: 1679 passed, including the three new `runtime::gui` tests - `cargo clippy --manifest-path desktop/Cargo.toml -- -D warnings`: clean - `cargo test --manifest-path desktop/Cargo.toml`: 6 passed - `npm run lint`, `npm run format:check`, `npm run typecheck` in `gui/`: clean # Additional notes This PR and #780 both add the `## [Unreleased]` header to CHANGELOG.md, so the second one to merge needs a rebase. --- <sub>💬 Questions or want to chat with other contributors? Join the [spotatui Discord](https://spotatui.com/discord).</sub> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Changed** * When automatic updates are disabled, the desktop app skips update checks at launch and on its regular schedule. You can still check for, download, and install updates manually from Settings. * Re-enabling automatic updates triggers an immediate update check. A manual check also counts as the latest check for scheduling purposes. * **Documentation** * Clarified when automatic update checks are skipped and how to manage updates manually in Settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Adds
behavior.enable_lyrics(Settings > Lyrics, on by default), shown in the terminal Settings and on the desktop app's Settings page. Until now every track change sent the title, artist and length to LRCLIB (or to Spotify for Spotify tracks) with no way to stop it. SignPath Foundation requires an off switch for every feature that sends data, and the privacy policy lists this one.With the setting off, the driver still records the track as the lyrics identity but publishes
NotFoundinstead of dispatchingGetLyrics, so the lyrics view and the pluginget_lyricscallback resolve at once instead of waiting forever. The lookup moved intorequest_track_lyricsso the decision is testable without a playing track.Testing
cargo fmt --allcargo clippy --no-default-features --features telemetry,tui -- -D warnings: cleancargo clippy --no-default-features --features telemetry -- -D warnings: cleancargo test --no-default-features --features telemetry,tui: 1515 passed, including the two new testscargo test(default features): 1971 passed, 7 ignoredcargo test --no-default-features --features telemetry,gui,streaming,discord-rpc,self-update,scripting,mcp-server(the gui leg without mpris, on Windows): 1678 passed, bindings unchangedAdditional notes
Turning the setting on or off takes effect at the next track change. The wiki's Configuration page needs a row for
enable_lyricsafter the merge.This PR and the desktop update check PR both add the
## [Unreleased]header to CHANGELOG.md, so the second one to merge needs a rebase.💬 Questions or want to chat with other contributors? Join the spotatui Discord.
Summary by CodeRabbit