SuspiciousLookingOwl / youtubei

Get Youtube data such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
https://suspiciouslookingowl.github.io/youtubei
MIT License
240 stars 50 forks source link

Captions text seems to include timestamps. #109

Closed altr closed 5 months ago

altr commented 5 months ago

Describe the bug Captions text seems to include timestamps. Tested with this video: https://www.youtube.com/watch?v=FJOXDCzlGv0

Text that is retrieved 'I0 wish1600 to4000' 'thank0 the10000 Prime12010 Minister14410' etc..

To Reproduce

const youtube = new Client();
const video = await youtube.getVideo("FJOXDCzlGv0");
const captions = await video?.captions.get('en');

Steps to reproduce the behavior:

Expected behavior No timestamps in the text.

Screenshots captions object in VSCode Screenshot from 2024-06-27 15-13-06

Actual text Screenshot from 2024-06-27 15-10-52

Additional context Add any other context about the problem here.

SuspiciousLookingOwl commented 5 months ago

Fix published on 1.5.3 👍🏻