From 79002396629c82eeba0aec68659e137dd62d42fd Mon Sep 17 00:00:00 2001 From: DOCCA0 <2947323341@qq.com> Date: Sat, 17 Apr 2021 13:27:43 +0800 Subject: [PATCH] youtube --first AND --last --- src/you_get/extractors/youtube.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index 7e4c74f0..536148a9 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -171,7 +171,14 @@ class YouTube(VideoExtractor): self.title = re.search(r' int(lastIndex): + break vid = video['playlistVideoRenderer']['videoId'] try: self.__class__().download_by_url(self.__class__.get_url_from_vid(vid), index=index, **kwargs)