Skip to content

Handle compact published dates e.g. 1w ago in LockupViews#9374

Merged
FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:published-dates-fix
Jul 6, 2026
Merged

Handle compact published dates e.g. 1w ago in LockupViews#9374
FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:published-dates-fix

Conversation

@absidue

@absidue absidue commented Jul 5, 2026

Copy link
Copy Markdown
Member

Pull Request Type

  • Bugfix

Description

YouTube is currently A/B testing compact published dates in the up next section e.g. "1 week ago" -> "1w ago". The fix was just making the space in the regex optional.

While I was at it I also removed the isViewOrWaitingCountText function which was only used in one place, as that checked for "watching" and then called isViewCountText which checked for watching and various other things, in favour of just calling isViewCountText directly and added b for billions in the VIEWS_IN_NUMBER_ONLY regex. Those changes seemed minor enough to not be worth sticking in their own pull request.

Testing

If you are unable to get it on your side after lots of tries, try setting your VPN to France or the Netherlands as it seems to appear more often in those two locations.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 5, 2026 11:20
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 5, 2026

@PikachuEXE PikachuEXE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Image

@FreeTubeBot FreeTubeBot merged commit 527240f into FreeTubeApp:development Jul 6, 2026
6 checks passed
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 6, 2026
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Jul 6, 2026
* development: (24 commits)
  Add dependabot groups for actions/cache and github/codeql-action (FreeTubeApp#9373)
  Handle compact published dates e.g. 1w ago in LockupViews (FreeTubeApp#9374)
  Migrate to the vue-i18n composition API (FreeTubeApp#9375)
  Bump electron from 42.4.1 to 42.5.2 (FreeTubeApp#9362)
  Bump eslint-plugin-unicorn from 69.0.0 to 70.0.0 in the eslint group (FreeTubeApp#9367)
  Bump actions/cache/restore from 6.0.0 to 6.1.0 (FreeTubeApp#9366)
  Bump actions/cache/save from 6.0.0 to 6.1.0 (FreeTubeApp#9365)
  Bump js-yaml from 5.2.0 to 5.2.1 (FreeTubeApp#9369)
  Fix lazy rendering on channel home pages (FreeTubeApp#9336)
  Fix publish time parsing (FreeTubeApp#9310)
  Fix online playlist parsing & revert workaround with youtubei.js update (FreeTubeApp#9325)
  Fix parsing view counts in shorts-only playlists (FreeTubeApp#9333)
  Build static runtime AppImages with electron-builder (FreeTubeApp#9339)
  use new matrix icon (FreeTubeApp#9359)
  Translated using Weblate (Polish)
  Bump the webpack group across 1 directory with 2 updates (FreeTubeApp#9347)
  Bump the stylelint group across 1 directory with 3 updates (FreeTubeApp#9345)
  Bump vue from 3.5.38 to 3.5.39 (FreeTubeApp#9353)
  Bump js-yaml from 4.2.0 to 5.2.0 (FreeTubeApp#9348)
  Bump globals from 17.6.0 to 17.7.0 (FreeTubeApp#9350)
  ...

# Conflicts:
#	src/renderer/components/GeneralSettings/GeneralSettings.vue
@absidue absidue deleted the published-dates-fix branch July 6, 2026 04:52
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