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:
parent
d91421e5e0
commit
438ec47af3
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user