Repository navigation
feat: list the sites yt-dlp downloads from, with their logos - #33
Merged
Merged
Conversation
Add a 支持的网站 sheet listing the 929 websites the bundled yt-dlp snapshot (2026.08.19) downloads from, each with its logo, searchable by name, domain, or a pasted link. It opens from 帮助 › 支持的网站…, from the 暂不支持 card of a site yt-dlp does not know, and from the empty library page. The list lives in apps/kando/sites/catalog: sites.json and logos/ are embedded, and gen.go regenerates them from the yt-dlp on PATH with `go generate ./sites/catalog`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Kando downloads every link through yt-dlp, so whether a site works depends entirely on yt-dlp, but nothing in the app said which sites those are. A failed link only showed "xxx 暂不支持".
This adds a 支持的网站 sheet listing the 929 websites the yt-dlp snapshot (2026.08.19) downloads from, each with its logo:
youtu.be/…finds YouTube,x.com/…finds X).How the list is made
apps/kando/sites/catalogembedssites.jsonandlogos/.gen.go(//go:build ignore, run withgo generate ./sites/catalogfromapps/kando) regenerates both:yt_dlpthrough the Python interpreter of the yt-dlp on PATH and lists every working, non-hidden extractor exceptgeneric(1594 of 1751; 136 marked broken by yt-dlp are left out).golang.org/x/net/publicsuffix, already in the module graph) of each extractor's first test URL, which skips embed and mirror hosts.-logos=falseregenerates the list and keeps the logos already on disk.The sheet uses
ui.GridView, so only the visible tiles are built, and logos are decoded the first time their tile shows, then cached on the app.Screenshots
The 暂不支持 card, before and after:
The sheet (new):
Notes
Test plan
CGO_ENABLED=0 go test ./packages/core/... ./packages/media/... ./apps/kando/...passesgo tool mygo vet .inapps/kandois cleanKANDO_SCREENSHOTS=… go test -run TestScreenshotsSitesrenders the scenes above