tube_dl icon indicating copy to clipboard operation
tube_dl copied to clipboard

DO NOT fetch full list of video in the playlist (max 200 videos)

Open hahv opened this issue 3 years ago • 1 comments

It seems that after the first time using Token extracted from HTML, the author continues to use that token while the token already changed. To fix this problem, update to use new token to get full of playlist.

In python file containing class Playlist

In function:

   def fetch_continuation(self, html):
          #same code
          return data

In function:

def __init__(self, url: str, start: int = None, end: int = None):
        # same code
        if total_count > 100:
            start_html = html
            for i in range(0, total_count//100):
                start_html = self.fetch_continuation(start_html)
            # same code

Hope this help.

hahv avatar Sep 07 '21 06:09 hahv

Hi @hahv If you think this will solve the problem, please create a merge request. I'll review and merge the code. Thanks

shekharchander avatar Sep 18 '21 04:09 shekharchander