Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

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

Open
hhyeok1026 opened this issue Feb 4, 2021 · 0 comments

Comments

@hhyeok1026
Copy link
Contributor

hhyeok1026 commented Feb 4, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant