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

Move Invidious API calls into Invidious file #6313

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Dec 8, 2024

Move Invidious API calls into Invidious file

Pull Request Type

  • Refactor

Description

This pull request moves the Invidious API calls into the Invidious file. That reduces the code inside the components themselves and also hides some of the implemenation details, such as parsing the published dates, making for a cleaner API. As an added benefit this also reduces code duplication between the channel and subscription pages.

Testing

Please test all parts of the app that make API calls with the Invidious API

Desktop

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

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 8, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 8, 2024 18:16
@efb4f5ff-1298-471a-8973-3d47447115dc

Is the last error in the console relevant to this PR? I cant seem to reproduce it in the latest nightly.

VirtualBoxVM_0PXhdSZCh7.mp4

@ChunkyProgrammer
Copy link
Member

@PikachuEXE
Copy link
Collaborator

PikachuEXE commented Dec 9, 2024

I still got error with https://invidious.darkness.services
image

@absidue
Copy link
Member Author

absidue commented Dec 9, 2024

@PikachuEXE https://invidious.darkness.services seems to be down, everything is returning a 404, even the homepage. Please try again with a working instance.

Co-authored-by: ChunkyProgrammer <[email protected]>
@FreeTubeBot FreeTubeBot merged commit ad7c19d into FreeTubeApp:development Dec 10, 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 Dec 10, 2024
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Dec 10, 2024
* development: (96 commits)
  Move Invidious API calls into Invidious file (FreeTubeApp#6313)
  Translated using Weblate (Spanish)
  Use word-break on live chat error message (FreeTubeApp#6327)
  Bump youtubei.js from 11.0.1 to 12.0.0 (FreeTubeApp#6323)
  Bump shaka-player from 4.12.3 to 4.12.4 (FreeTubeApp#6318)
  Make seekbar and player controls appear at bottom of video and take full width (FreeTubeApp#6007)
  Fix 'Object has been destroyed' when FreeTube is passed a URL with no windows open on macOS (FreeTubeApp#6278)
  Bump mikefarah/yq from 4.44.5 to 4.44.6 (FreeTubeApp#6324)
  Translated using Weblate (French)
  Bump sass-loader from 16.0.3 to 16.0.4 (FreeTubeApp#6319)
  Bump webpack from 5.96.1 to 5.97.1 (FreeTubeApp#6322)
  Bump sass from 1.81.0 to 1.82.0 (FreeTubeApp#6320)
  Bump lefthook from 1.8.5 to 1.9.0 (FreeTubeApp#6321)
  Bump @intlify/eslint-plugin-vue-i18n from 3.1.0 to 3.2.0 (FreeTubeApp#6317)
  Translated using Weblate (Estonian)
  Translated using Weblate (Basque)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Hungarian)
  Translated using Weblate (German)
  Fix channel home page list view (FreeTubeApp#6316)
  ...
@absidue absidue deleted the iv-refactor branch December 10, 2024 05:20
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