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

Change the Proxy Videos Through Invidious setting to only apply when using the Invidious API #5758

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Sep 28, 2024

Change the Proxy Videos Through Invidious setting to only apply when using the Invidious API

Pull Request Type

  • Feature Implementation

Description

Users have often been confused that the Proxy Videos Through Invidious setting applies to the local API too. Additionally if you have that setting turned on and the Invidious instance you are using is having problems you just end up in an endless loop of Invidious failing (deceptively the error message gets shown as a Local API error but it's still Invidious that is causing it).

So as discussed in the Matrix chat this pull request changes the Proxy Videos Through Invidious setting to only apply to the Invidious API. I haven't changed anything about the settings page other than the tooltip text, as it will still proxy the video if you fallback to the Invidious API when the local API errors.

I have updated the tooltip text for most languages, but skipped the right-to-left languages as editing the strings in those files is messy if you don't understand the language, so I'll leave those to the translators on weblate.

Testing

  1. Turn on the Proxy Videos Through Invidious setting
  2. Test the local API and check in the network tab that the video and audio requests are going to *.googlevideo.com and not an Invidious instance.
  3. Regression test: Test the Invidious API and check in the network tab that the video and audio requests are still going to your chosen Invidious instance.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 30f95e5

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 28, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 28, 2024 11:39
Copy link
Member

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good but i think it would make sense to add the following to prevent confusion:

  • Disable the toggle when Local API is set as Primary API and Fallback is disabled.

@absidue
Copy link
Member Author

absidue commented Sep 28, 2024

Everything looks good but i think it would make sense to add the following to prevent confusion:

* Disable the toggle when Local API is set as Primary API and Fallback is disabled.

Implemented

Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@FreeTubeBot FreeTubeBot merged commit 8e34d19 into FreeTubeApp:development Sep 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 Sep 30, 2024
@absidue absidue deleted the proxy-through-invidious branch September 30, 2024 05:04
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 3, 2024
* development: (49 commits)
  Translated using Weblate (Japanese)
  Translated using Weblate (French)
  Fix long comments overflowing and breaking the layout (FreeTubeApp#5774)
  Cleanup unused code in the store (FreeTubeApp#5776)
  Revert "Larger search/URL bar (FreeTubeApp#5348)" (FreeTubeApp#5773)
  Fix loading from search cache failing when no features are selected (FreeTubeApp#5775)
  Bump lefthook from 1.7.15 to 1.7.17 (FreeTubeApp#5768)
  Bump webpack from 5.94.0 to 5.95.0 (FreeTubeApp#5770)
  Bump sass from 1.79.3 to 1.79.4 (FreeTubeApp#5771)
  Translated using Weblate (Chinese (Traditional Han script))
  Change the Proxy Videos Through Invidious setting to only apply when using the Invidious API (FreeTubeApp#5758)
  Support copying post links from the context menu (FreeTubeApp#5760)
  Local API: Fix error when a community post has no likes (FreeTubeApp#5759)
  Translated using Weblate (English (United Kingdom))
  Translated using Weblate (Dutch)
  Translated using Weblate (Swedish)
  Do not overwrite cache entries when hitting RSS ratelimits (FreeTubeApp#5756)
  Translated using Weblate (Czech)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Hungarian)
  ...
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