diff options
author | ftk <ftk@users.noreply.github.com> | 2022-07-12 15:16:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 20:46:45 +0530 |
commit | 45e8a04e48fc83fb25c2b13f1c0e668b99838ad4 (patch) | |
tree | 48f3bec8180320ebb0faf4300fa84f5b37f610e0 | |
parent | 0f44636597636cfa9065ee2fa4b7308b203c6a8e (diff) | |
download | hypervideo-pre-45e8a04e48fc83fb25c2b13f1c0e668b99838ad4.tar.lz hypervideo-pre-45e8a04e48fc83fb25c2b13f1c0e668b99838ad4.tar.xz hypervideo-pre-45e8a04e48fc83fb25c2b13f1c0e668b99838ad4.zip |
[extractor/youtube] More metadata for storyboards (#4334)
Authored by: ftk
-rw-r--r-- | yt_dlp/extractor/common.py | 4 | ||||
-rw-r--r-- | yt_dlp/extractor/youtube.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 216c10391..96cff9fb6 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -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. diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 8bb58ae16..09e2127e3 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -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)), |