Tyrrrz / YoutubeExplode

Abstraction layer over YouTube's internal API
MIT License
2.93k stars 491 forks source link

GetChannelUploadsAsync return videos with wrong UploadDate #277

Closed spoikbr closed 5 years ago

spoikbr commented 5 years ago

While using the lib in version 4.7.6, I noticed that the videos returned by GetChannelUploadsAsync all have the wrong UploadDates.

foreach (Video vi in await client.GetChannelUploadsAsync("UCsqjHFMB_JYTaEnf_vmTNqg", 2))
            {
                Console.WriteLine(String.Format("{0} - {1}", vi.UploadDate, vi.Title));
            }

Output:

23/06/2019 00:00:00 +00:00 - The Chevy Corvette C5 Z06 Is an Insane Sports Car Bargain
23/06/2019 00:00:00 +00:00 - The 2019 Volvo S60 Polestar Is a Swedish Sport Sedan
01/07/2019 00:00:00 +00:00 - The Oldsmobile Custom Cruiser Is an Old-School Family Wagon
22/06/2019 00:00:00 +00:00 - Here's Why the Toyota Tacoma TRD Pro Is an Awesome Midsize Truck
20/06/2019 00:00:00 +00:00 - The 1996 Ford Bronco Is the Last Old-School SUV
19/06/2019 00:00:00 +00:00 - Here's Why the Mini Clubvan Is One of the Rarest, Weirdest Modern Cars
18/06/2019 00:00:00 +00:00 - Here's Why the Hummer H1 Alpha Is the Ultimate $200,000 Off-Roader
17/06/2019 00:00:00 +00:00 - The 2020 BMW 750i Is BMW's New Flagship Luxury Sedan
07/06/2019 00:00:00 +00:00 - Here's Why the Hyundai Equus Is the Best Luxury Sedan Bargain Ever
08/06/2019 00:00:00 +00:00 - Here's Why the LaFerrari Is the $3.5 Million Ultimate Ferrari
08/06/2019 00:00:00 +00:00 - The Lamborghini Diablo VT Roadster Was a Crazy 1990s Supercar
05/06/2019 00:00:00 +00:00 - Here's a Tour of a $200,000 Custom Mercedes Sprinter Van
03/06/2019 00:00:00 +00:00 - The 2019 Volkswagen Arteon Is Strange and Gorgeous
30/05/2019 00:00:00 +00:00 - Here's Why the Toyota Sera Was the Weirdest 1990s Toyota
29/05/2019 00:00:00 +00:00 - The Lincoln Town Car Was the Last True American Luxury Sedan
19/05/2019 00:00:00 +00:00 - The Nissan 370Z Nismo Is Outdated and Overpriced
16/05/2019 00:00:00 +00:00 - Here's Why the Lexus LS600hL Is the Ultimate Lexus Luxury Sedan
...

If you look at the first video, you can see that it's clearly wrong (https://www.youtube.com/watch?v=NcCszG4yNIU) But oddly enough, GetVideoAsync returns the correct UploadDate.

Tyrrrz commented 5 years ago

Huh, interesting

spoikbr commented 5 years ago

Hey @Tyrrrz , any updates on this one?

Tyrrrz commented 5 years ago

Sorry, I didn't have time to look into it last week and now I'm on vacation. I have it on my to-do list.

spoikbr commented 5 years ago

Oh ok, thanks for the response. Have a nice vacation!

Tyrrrz commented 5 years ago

So it looks like the problem is UploadDate is actually set from "added date", i.e. when this video was added to the playlist. It's weird that videos uploaded by a channel are not instantly added to the system "uploaded videos" playlist, huh.