JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
674 stars 95 forks source link

Chapters returns empty list despite chapters existing #130

Closed kaden-123 closed 3 months ago

kaden-123 commented 3 months ago

YouTube.chapters returns an empty list of chapters using such examples:

Ex 1. should produce

  [<Chapter: Introduction | 0:00:00>,
   <Chapter: Leather | 0:01:13>,
   <Chapter: Latex | 0:04:05>,
   <Chapter: Denim | 0:06:11>,
   <Chapter: Shimmer | 0:08:42>,
   <Chapter: Metallic | 0:15:13>,
   <Chapter: Transparent | 0:17:57>,
   <Chapter: Feathers/Fur | 0:24:26>,
   <Chapter: Silky | 0:26:37>,
   <Chapter: Fringe | 0:29:32>,
   <Chapter: Crochet | 0:31:50>]

While Ex 2. should produce

  [<Chapter: intro | 0:00:00>,
   <Chapter: red | 0:02:21>,
   <Chapter: orange | 0:04:46>,
   <Chapter: peach | 0:05:49>,
   <Chapter: yellow | 0:06:26>,
   <Chapter: green | 0:09:59>,
   <Chapter: blue | 0:13:15>,
   <Chapter: lilac | 0:16:28>,
   <Chapter: fondant pink | 0:16:55>,
   <Chapter: brown | 0:18:39>,
   <Chapter: gray | 0:21:30>,
   <Chapter: beige | 0:24:43>]