Skip to content

feat(youtube): support channel search extraction#65

Open
Priveetee wants to merge 1 commit into
InfinityLoop1308:mainfrom
Priveetee:feat/youtube-channel-search-extractor
Open

feat(youtube): support channel search extraction#65
Priveetee wants to merge 1 commit into
InfinityLoop1308:mainfrom
Priveetee:feat/youtube-channel-search-extractor

Conversation

@Priveetee
Copy link
Copy Markdown
Contributor

This adds the extractor side for YouTube channel search.

It supports URLs like:

https://www.youtube.com/@somechannel/search?query=test

and also:

https://www.youtube.com/channel/UC.../search?query=test

The extractor now keeps the search query in the clean URL and sends it to YouTube in the channel browse request, so different searches from the same channel don't get mixed together.

For the client side, honestly I had 0 inspiration on how to implement it properly for now, so I kept this PR extractor-only instead of adding some random half-baked UI.

So this does not add the full visible feature in the app yet. It only makes the extractor able to load the results once the client has a way to call it.

I also didn't add search as a normal channel tab, because unlike videos/shorts/playlists it needs a query from the user before it can do anything.

Supported query params:

  • query
  • search_query
  • q

Refs InfinityLoop1308/PipePipe#1350

Tested:

  • git diff --check
  • compileJava
  • compileTestJava
  • local checks with handle URLs
  • local checks with channel ID URLs
  • query aliases
  • encoded queries with spaces
  • empty/no-result searches
  • existing videos/shorts/playlists/livestreams tabs
  • channel search pagination

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