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

local API: Add support for PageHeader channel header #3871

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Aug 10, 2023

local API: Add support for PageHeader channel header

Pull Request Type

  • Feature Implementation

Related issue

LuanRT/YouTube.js#450

Description

YouTube is currently A/B testing a new channel header on the auto-generated live and gaming channels, this pull request add support for them in the local API (my PR for it was released with YouTube.js 5.7.0, so it's already supported in the YouTube.js version we are using).

Testing

As per usual with YouTube's A/B tests, they are tied to the visitor id, so they can be made to show up consistently by using visitor data with a visitor id, that got included in the A/B test.

Add this line to createInnertube() in Innertube.create() in src/renderer/helpers/api/local.js:

visitor_data: 'CgtseDZBa0xteVViaSjg8t6lBg%3D%3D',

YouTube Gaming: https://www.youtube.com/channel/UCOpNcN46UbXVtpKMrmU4Abg
YouTube Live: https://www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 10, 2023 22:07
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 10, 2023
@PikachuEXE
Copy link
Collaborator

Only see header, expected?
image
image

@absidue
Copy link
Member Author

absidue commented Aug 12, 2023

Yes, we would need to add special handling for them, as they only have a channel home page, so sections who's only identifying characteristic is the localised title.

@FreeTubeBot FreeTubeBot merged commit 96230c9 into FreeTubeApp:development Aug 15, 2023
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 Aug 15, 2023
@absidue absidue deleted the channel-page-header branch August 15, 2023 05:37
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Aug 21, 2023
* development:
  Translated using Weblate (Greek)
  Fix locales getting unnecessarily reprocessed for incremental builds (FreeTubeApp#3893)
  Fix the layout of the hashtag page (FreeTubeApp#3886)
  Translated using Weblate (French)
  Translated using Weblate (Swedish)
  Translated using Weblate (Indonesian)
  Translated using Weblate (Italian)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Italian)
  Translated using Weblate (Portuguese)
  Cleanup some template conditionals (FreeTubeApp#3888)
  Add semantic roles to make the site more accessible (FreeTubeApp#3887)
  Translated using Weblate (Japanese)
  Fix Update Subscription Details function when channel name is null (FreeTubeApp#3884)
  Translated using Weblate (Spanish)
  Translated using Weblate (Romanian)
  Translated using Weblate (Hebrew)
  local API: Add support for PageHeader channel header (FreeTubeApp#3871)
  Translated using Weblate (Chinese (Traditional))

# Conflicts:
#	src/renderer/components/ft-list-playlist/ft-list-playlist.vue
#	src/renderer/components/ft-list-video/ft-list-video.vue
#	src/renderer/views/UserPlaylists/UserPlaylists.vue
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Aug 21, 2023
* feature/playlist-2023-05:
  Translated using Weblate (Greek)
  Fix locales getting unnecessarily reprocessed for incremental builds (FreeTubeApp#3893)
  Fix the layout of the hashtag page (FreeTubeApp#3886)
  Translated using Weblate (French)
  Translated using Weblate (Swedish)
  Translated using Weblate (Indonesian)
  Translated using Weblate (Italian)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Italian)
  Translated using Weblate (Portuguese)
  Cleanup some template conditionals (FreeTubeApp#3888)
  Add semantic roles to make the site more accessible (FreeTubeApp#3887)
  Translated using Weblate (Japanese)
  Fix Update Subscription Details function when channel name is null (FreeTubeApp#3884)
  Translated using Weblate (Spanish)
  Translated using Weblate (Romanian)
  Translated using Weblate (Hebrew)
  local API: Add support for PageHeader channel header (FreeTubeApp#3871)
  ! Fix invalid prop type warning
  Translated using Weblate (Chinese (Traditional))
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