Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
This repository was 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

Description

@hhyeok1026

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions