Skip to content

fix(lyrics-plus): use internal endpoint to fetch tempo#3734

Open
cvius wants to merge 2 commits intospicetify:mainfrom
cvius:lyrcs
Open

fix(lyrics-plus): use internal endpoint to fetch tempo#3734
cvius wants to merge 2 commits intospicetify:mainfrom
cvius:lyrcs

Conversation

@cvius
Copy link

@cvius cvius commented Mar 11, 2026

Summary by CodeRabbit

  • Chores
    • Switched the backend source for audio feature retrieval to improve reliability and tempo extraction accuracy.
  • Bug Fixes
    • Reduced occurrences of incorrect or missing tempo information when analyzing tracks.

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: abbf6c15-eaa9-4584-9d37-008d9cddcdbe

📥 Commits

Reviewing files that changed from the base of the PR and between 98675e4 and 0582ba6.

📒 Files selected for processing (1)
  • CustomApps/lyrics-plus/index.js
🚧 Files skipped from review as they are similar to previous changes (1)
  • CustomApps/lyrics-plus/index.js

📝 Walkthrough

Walkthrough

A single endpoint in the lyrics-plus app was changed: the audio-features fetch now uses an alternative Spotify URL (spclient.wg.spotify.com) with ?format=json. Tempo extraction logic and response semantics were left unchanged.

Changes

Cohort / File(s) Summary
Spotify API Endpoint Update
CustomApps/lyrics-plus/index.js
Replaced audio-features endpoint from https://api.spotify.com/v1/audio-features/{id} to https://spclient.wg.spotify.com/audio-attributes/v1/audio-features/{id}?format=json. Tempo is still read from the audio features response; handling unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop through code, a tiny URL swap,
The beat remains steady, it didn't stop,
Tempo found where it always lay,
New path, same rhythm, ready to play! 🎵

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately describes the main change: updating the tempo fetching mechanism to use an internal Spotify endpoint instead of the public API endpoint.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant