Update youtube.py

Added current duration placeholder for playlist content videos parsing.
Next step is to edit regex there too, to get the duration of each video in a playlist.
This commit is contained in:
Crypto90 2020-07-01 19:42:11 +02:00 committed by GitHub
parent d91421e5e0
commit 438ec47af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2769,7 +2769,8 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
video_title = video_title.strip() video_title = video_title.strip()
ids_in_page.append(video_id) ids_in_page.append(video_id)
titles_in_page.append(video_title) titles_in_page.append(video_title)
# TODO: ADD VIDEO DURATION HERE TOO? # TODO: ADD VIDEO DURATION HERE TOO!
durations_in_page.append(None)
# Fallback with old _VIDEO_RE # Fallback with old _VIDEO_RE
self.extract_videos_from_page_impl( self.extract_videos_from_page_impl(