Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

video.lengthSeconds returns 0 if the video is a Youtube short #72

Closed
mbg206 opened this issue Apr 9, 2022 · 2 comments
Closed

video.lengthSeconds returns 0 if the video is a Youtube short #72

mbg206 opened this issue Apr 9, 2022 · 2 comments

Comments

@mbg206
Copy link

mbg206 commented Apr 9, 2022

when retrieving videos, if durationText is 'SHORTS', then lengthSeconds will return 0 instead of the actual video length in seconds.

@mbg206
Copy link
Author

mbg206 commented Apr 9, 2022

actually, after looking into the data that YouTube gives that is used by this library, I can see that YouTube doesn't give this information, and I see that this library will default this to 0 when this happens.

@mbg206 mbg206 closed this as completed Apr 9, 2022
@ChunkyProgrammer
Copy link
Member

Fixed in #75

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

2 participants