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

[YouTube] New short date format #1067

Closed
Theta-Dev opened this issue May 28, 2023 · 4 comments · Fixed by #1068
Closed

[YouTube] New short date format #1067

Theta-Dev opened this issue May 28, 2023 · 4 comments · Fixed by #1068
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/

Comments

@Theta-Dev
Copy link
Contributor

Theta-Dev commented May 28, 2023

YouTube is A/B testing a new, shorter format for video upload dates.

The long format is still used for comments and playlist update dates.

en-US

  • Year: y
  • Month: mo
  • Week: w
  • Day: d
  • Hour: h
  • Minute: min

en-GB

  • Year: yr
  • Month: mo
  • Week: wk
  • Day: day(s)
  • Hour: hr
  • Minute: min

image

The A/B test currently occurs very rarely (14 out of 1000 requests).

Here is a visitor data cookie for testing: CgtJeFI1cWVSWVBTNCj6yc6jBg%3D%3D

@AudricV AudricV added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels May 28, 2023
@AudricV
Copy link
Member

AudricV commented May 28, 2023

I think it should occur in all languages.

fr

  • Year: a;
  • Month: m.;
  • Week: sem.;
  • Day: d;
  • Hour: h;
  • Minutes: min.

@Theta-Dev
Copy link
Contributor Author

Theta-Dev commented May 28, 2023

Yes, it does. I have just written down the English versions.

BTW: YouTube most likely uses the Unicode CLDR repository for their date strings.

https://github.com/unicode-org/cldr-json/blob/main/cldr-json/cldr-dates-full/main/en-GB/dateFields.json

Here are the relevant keys:

Long version: <unit>.relativeTime-type-past

Short version: <unit>-short.relativeTime-type-past

So if we want to reimplement multi-language extraction, we can just use the CLDR data and dont need to fetch samples from YouTube to build a parsing dictionary.

@wb9688
Copy link
Contributor

wb9688 commented May 29, 2023

It seems like YouTube is actually using the narrow version for this, not the short version.

@Theta-Dev
Copy link
Contributor Author

Theta-Dev commented May 30, 2023

Are you sure about that? In German the two versions are different and they use short version. What languages did you check?

Update: Yes, the English version uses a mixture of the short and narrow version. It does not seem to work that simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants