Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search bar handling of Invidious channel URLs #4568

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Jan 17, 2024

Fix search bar handling of Invidious channel URLs

Pull Request Type

  • Bugfix

Description

To figure out what the channel ID for a given username, we need to pass the channel URL to YouTube's resolve endpoint. Currently we pass the original/user provided URL, which works fine if it is a YouTube one, but Invidious and Piped URLs are understandably not recognised by YouTube, so result in FreeTube incorrectly saying that the channel doesn't exist.

This pull request ensures that the URL that FreeTube always passes a youtube.com URL to YouTube, so that the URL resolution works correctly.

Testing

Paste https://redirect.invidious.io/@YouTube into the search bar and press enter.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.19.1

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 17, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 17, 2024 19:30
@FreeTubeBot FreeTubeBot merged commit 50bf28f into FreeTubeApp:development Jan 30, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 30, 2024
@absidue absidue deleted the fix-invidious-channel branch January 30, 2024 06:17
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Feb 3, 2024
* development: (92 commits)
  Make video info section more concise (FreeTubeApp#4338)
  Playlist performance improvements (FreeTubeApp#4597)
  ! Fix playlist type not passed when playing next/prev item in a user playlist (FreeTubeApp#4623)
  Properly localize playlist view and video counts (FreeTubeApp#4620)
  Translated using Weblate (Croatian)
  Translated using Weblate (German)
  Translated using Weblate (Croatian)
  Fix search bar handling of Invidious channel URLs (FreeTubeApp#4568)
  Local API: List related games in featured channels section (FreeTubeApp#4562)
  Workaround community post slider dependency incorrectly calculating its size (FreeTubeApp#4598)
  Add support for viewing movie trailers with local api (FreeTubeApp#4391)
  Bump the eslint group with 2 updates (FreeTubeApp#4616)
  Translated using Weblate (French)
  Translated using Weblate (Finnish)
  Bump electron from 28.1.4 to 28.2.0 (FreeTubeApp#4611)
  Translated using Weblate (French)
  Bump the eslint group with 4 updates (FreeTubeApp#4581)
  Bump lefthook from 1.6.0 to 1.6.1 (FreeTubeApp#4608)
  Bump marked from 11.1.1 to 11.2.0 (FreeTubeApp#4612)
  Bump webpack from 5.89.0 to 5.90.0 (FreeTubeApp#4610)
  ...
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.

5 participants