YouTubeExtractor icon indicating copy to clipboard operation
YouTubeExtractor copied to clipboard

It gets the wrong duration in very long video. (YoutubeMeta.lengthSeconds)

Open hhyeok1026 opened this issue 4 years ago • 0 comments

When I get the length of the video with the lengthSeconds variable of the YoutubeMeta class,

(200hour video) https://www.youtube.com/watch?v=mivcDoTjpQE

The actual length of this video is 720000 seconds. However, the received length is 654332 seconds.

It looks like a bug.

============================

However, another long video (100hour video) https://www.youtube.com/watch?v=56lkofpjOAs It takes 360000 seconds well.

============================

I additionally in youtube data api I found the length of the video at https://www.googleapis.com/youtube/v3/videos?part=contentDetail,

"YoutubeMeta.lengthSeconds" in this library 1 second less than or equal to the length of the video in the youtube data api.

Perhaps this library is the length of the video taken from the player, and the YouTube data api seems to store the length of the player differently.

hhyeok1026 avatar Feb 04 '21 07:02 hhyeok1026