Skip to content

Comments

fix: strip .git suffix from plugin package_spec URLs#511

Open
livepeer-tessa wants to merge 2 commits intomainfrom
fix/issue-508
Open

fix: strip .git suffix from plugin package_spec URLs#511
livepeer-tessa wants to merge 2 commits intomainfrom
fix/issue-508

Conversation

@livepeer-tessa
Copy link

Fixes #508

Problem

The web platform at app.daydream.live/plugins parses package_spec from the plugin API to construct GitHub API URLs (e.g., api.github.com/repos/owner/repo). When the git URL contains a .git suffix, the resulting API call (e.g., repos/Shih-Yu/Spotify_Scope_Plugin.git) returns 404.

Fix

Strip the .git suffix from git_url when constructing package_spec in the plugin manager. The suffix is not needed for pip/uv install operations, and removing it ensures downstream consumers can safely parse the URL for GitHub API calls.

Changes

  • src/scope/core/plugins/manager.py: Added .removesuffix('.git') when building package_spec from git URLs

Replace requestAnimationFrame + captureStream(fps) with
setInterval + captureStream(0) + manual requestFrame(). This ensures
canvas drawing only happens at the target FPS rate, eliminating the
mismatch between ~60fps draws and lower-rate captures that caused
'GPU stall due to ReadPixels' warnings.

Fixes #509
The web platform parses package_spec to construct GitHub API URLs
(e.g., api.github.com/repos/owner/repo). When git_url contains a .git
suffix, the API call fails with 404. Strip the suffix when building
package_spec since it's not needed for pip/uv operations either.
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.

Web Platform: GitHub API call for Spotify plugin has incorrect .git suffix

1 participant