Skip to content

Conversation

@absidue
Copy link
Member

@absidue absidue commented Aug 19, 2023

local API: Add support for PageHeader hashtag header

Pull Request Type

  • Bugfix

Description

YouTube is A/B testing the PageHeader renderer, by the looks of it not just on the channel page (#3871), but also on the hashtag page.

Screenshots

before:
before

after:
after

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: 'Cgtta1lfM0V4enJQbCjzwv6mBg%3D%3D',

e.g. https://youtube.com/hashtag/shorts

@absidue absidue marked this pull request as ready for review August 19, 2023 17:15
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 19, 2023 17:15
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 19, 2023
Copy link
Member

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 3236ce8 into FreeTubeApp:development Aug 20, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 20, 2023
@absidue absidue deleted the hashtag-page-header branch August 20, 2023 08:19
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Aug 21, 2023
* development:
  Fix playlist view on the watch page not reacting to playlist changes (FreeTubeApp#3897)
  Bump version number to v0.19.0
  Fix linting issues
  Translated using Weblate (Bulgarian)
  Ignore broken audio tracks for videos with multiple audio tracks (FreeTubeApp#3851)
  local API: Add support for PageHeader hashtag header (FreeTubeApp#3896)
  Translated using Weblate (German)
  Translated using Weblate (Swedish)
  Upgrade YouTube.js to version 6.0 (FreeTubeApp#3895)

# Conflicts:
#	src/renderer/components/ft-list-playlist/ft-list-playlist.vue
#	src/renderer/components/watch-video-playlist/watch-video-playlist.vue
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Aug 21, 2023
* feature/playlist-2023-05:
  Fix playlist view on the watch page not reacting to playlist changes (FreeTubeApp#3897)
  Bump version number to v0.19.0
  Fix linting issues
  Translated using Weblate (Bulgarian)
  Ignore broken audio tracks for videos with multiple audio tracks (FreeTubeApp#3851)
  local API: Add support for PageHeader hashtag header (FreeTubeApp#3896)
  Translated using Weblate (German)
  Translated using Weblate (Swedish)
  Upgrade YouTube.js to version 6.0 (FreeTubeApp#3895)
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