[extractor/youtube] More metadata for storyboards (#4334)

Authored by: ftk
This commit is contained in:
ftk 2022-07-12 15:16:45 +00:00 committed by GitHub
parent 0f44636597
commit 45e8a04e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -383,6 +383,10 @@ class InfoExtractor:
section_start: Start time of the section in seconds
section_end: End time of the section in seconds
The following fields should only be set for storyboards:
rows: Number of rows in each storyboard fragment, as an integer
columns: Number of columns in each storyboard fragment, as an integer
Unless mentioned otherwise, the fields should be Unicode strings.
Unless mentioned otherwise, None is equivalent to absence of information.

View File

@ -3340,6 +3340,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'url': url,
'width': width,
'height': height,
'fps': frame_count / duration,
'rows': rows,
'columns': cols,
'fragments': [{
'url': url.replace('$M', str(j)),
'duration': min(fragment_duration, duration - (j * fragment_duration)),