Closed nelsonic closed 5 years ago
The first ever youtube video
https://www.youtube.com/watch?v=jNQXAC9IVRw
Newer youtube video https://www.youtube.com/watch?v=g5eGKw4TWbU
another 2018 video https://www.youtube.com/watch?v=fYyDQBG_tYc
All videos seem to have similar urls. This leads me to believe that youtube never had an incrementing system for URLs like the example of instagram in the readme.
Appears that they do something more similar to this example in the readme (which makes sense as google also own youtube).
@nelsonic given that the urls for youtube videos appear to be working in very similar way to the google shortener example, do you still want to add a Youtube example?
@RobStallion YT has an 11 character base58 string as ID. The fact that they have always used an 11 char string is indicative that the YT founders were planning for "scale" from Day One. 💡 The reason I opened this issue was not because I thought that YT was "different" from Google URL shortener. On the contrary, the reason I want the YT example is that it's highly relevant to the 1.8Bn people who use YT every day, most of whom have shared a YT video URL and will be familiar with the IDs. I'm happy to add the example.
@nelsonic I'm happy to at it. That wasn't this issue at all sorry.
I didn't think about it from that point of view at all. That is a really good point and I'm happy to up write that up 👍
base58 uses all the upper and lower case letters in the alphabet (with the exception of O and I, capital versions of the letters o and i, and the lowercase version of the letter L) and the number 1-9.
Youtube does not appear to be using base 58 jNQXAC9IVRw <-- contains a capital i fYyDQBG_tYc <- contains an underscore
However it is not using base64 either. It appears to be using the same character set as the google url shortener from the example
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
Can't be certain but it would make sense as youtube is owned by google
@nelsonic Can this issue be closed now?
@RobStallion thanks again. 👍