Skip to content

fix(synced-lyrics): use new YTMusic browse proxy host - #4863

Open
gchai wants to merge 1 commit into
pear-devs:masterfrom
gchai:fix/synced-lyrics-ytmusic-proxy
Open

gchai wants to merge 1 commit into
pear-devs:masterfrom
gchai:fix/synced-lyrics-ytmusic-proxy

Conversation

@gchai

@gchai gchai commented Nov 28, 2026 •

Copy link
Copy Markdown

Fixes #4862.

https://ytmbrowseproxy.zvz.be/ now 307-redirects to https://a-ytmbrowseproxy.zvz.be/. The redirect lacks CORS headers and the old host's CORS preflight returns a Cloudflare 525, so the renderer's fetch rejects with TypeError: Failed to fetch.

This points PROXIED_ENDPOINT at the new host, which answers preflight with access-control-allow-origin: *.

Verified: a POST to a-ytmbrowseproxy.zvz.be/browse with a real lyrics browseId (MPLYt_dcYZhAh5urI-1) returns timedLyricsData in the shape the parser expects. Not yet tested in the running app.

Note: this depends on the proxy's current redirect target; a stable hostname from the proxy maintainer would be more durable.

Summary by CodeRabbit

  • Updates
    • Synced-lyrics requests now use an updated YouTube Music browse service address. This changes the service endpoint used when retrieving synced lyrics.

- Old host 307-redirects without CORS headers and fails preflight, causing 'Failed to fetch'
- Fixes pear-devs#4862
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The YTMusic provider now sends browse requests to https://a-ytmbrowseproxy.zvz.be/ instead of the previous proxy host.

Changes: YTMusic browse proxy

Layer / File(s) Summary
Update browse proxy endpoint
src/plugins/synced-lyrics/providers/YTMusic.ts
PROXIED_ENDPOINT now uses https://a-ytmbrowseproxy.zvz.be/.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

Suggested reviewers: arjixwastaken

Merge Risk: Minimal · up to 6d3e6

This updates the YTMusic lyrics proxy host so lyrics fetching works again. The author tested it in the running app. There is no merge-blocking risk beyond the normal dependence on an external proxy.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: the synced-lyrics plugin now uses the new YTMusic browse proxy host. The raw summary shows the only code change is the host in YTMusic.ts from ytmbrowseproxy.zvz.be to a-yt…
Linked Issues check Passed Issue #4862 requires YTMusic lyrics in the Synced Lyrics plugin to stop failing with TypeError: Failed to fetch and to show synced. The failing call is fetchBrowse, which POSTs to `this.PROXIED_EN…
Out of Scope Changes check Passed The whole-PR change, per the supplied summary (+1/-1), is the single PROXIED_ENDPOINT host update in src/plugins/synced-lyrics/providers/YTMusic.ts. This directly implements the requested fix for #4…
Full details: Title check

Explanation

The title names the change: the synced-lyrics plugin now uses the new YTMusic browse proxy host. The raw summary shows the only code change is the host in YTMusic.ts from ytmbrowseproxy.zvz.be to a-ytmbrowseproxy.zvz.be, and the objectives confirm this fixes the reported Failed to fetch error. The title is concise, specific, and uses the conventional fix(scope) prefix.

Full details: Linked Issues check

Explanation

Issue #4862 requires YTMusic lyrics in the Synced Lyrics plugin to stop failing with TypeError: Failed to fetch and to show synced. The failing call is fetchBrowse, which POSTs to this.PROXIED_ENDPOINT + 'browse?prettyPrint=false'. At the reviewed head, PROXIED_ENDPOINT is https://a-ytmbrowseproxy.zvz.be/ in src/plugins/synced-lyrics/providers/YTMusic.ts. The change points the request at the host that answers CORS preflight, so the fetch no longer hits the redirect and 525 failure described in the PR. The PR description reports a direct POST to the new host returning timedLyricsData in the parser's expected shape. The PR comments report a Playwright run of a build from this branch: a 200 response, no Failed to fetch, and synced lines that advance with playback. The parser code at head is unchanged and reads that shape. The diff blob was unavailable, so the prior value could not be read directly. The one-line change is taken from the supplied summary (+1/-1). No automated test was added. The issue has no test requirement, so this does not affect the verdict.

Full details: Out of Scope Changes check

Explanation

The whole-PR change, per the supplied summary (+1/-1), is the single PROXIED_ENDPOINT host update in src/plugins/synced-lyrics/providers/YTMusic.ts. This directly implements the requested fix for #4862 and has no unrelated changes. The Chromium 'Unsafe attempt to load URL' message mentioned in the comments concerns a network log for both the proxy and Genius. It is not a code change in this PR. The diff blob was unavailable, so the absence of other files rests on the supplied summary.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 26a70f02-7b8e-44df-98bd-7384e04806e0
Commits

Reviewing files that changed from the base of the PR and between 37c3cb3 and 6d3e65f.

Files selected for processing: 1

  • src/plugins/synced-lyrics/providers/YTMusic.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@gchai

gchai commented Nov 28, 2026

Copy link
Copy Markdown
Author

Tested in the running app (built from this branch with pnpm build, launched via Playwright on macOS arm64):

  • Played lYBUbBu4W08 and opened the Lyrics tab.
  • POST https://a-ytmbrowseproxy.zvz.be/browse?prettyPrint=false returned 200; no Failed to fetch.
  • The panel showed the YTMusic source with synced lyrics, and the current line moved along with playback.

Chromium still logs a harmless "Unsafe attempt to load URL …" console message for both this proxy and Genius; both requests complete, so it's unrelated to this fix.

@gchai
gchai marked this pull request as ready for review November 28, 2026 10:13

This branch has not been deployed

No deployments
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.

[Bug]: YTMusic Lyrics not working with Synced Lyrics plugin

1 participant