mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[extractor/youtube] More metadata for storyboards (#4334)
Authored by: ftk
This commit is contained in:
		| @@ -383,6 +383,10 @@ class InfoExtractor: | |||||||
|     section_start:  Start time of the section in seconds |     section_start:  Start time of the section in seconds | ||||||
|     section_end:    End 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, the fields should be Unicode strings. | ||||||
| 
 | 
 | ||||||
|     Unless mentioned otherwise, None is equivalent to absence of information. |     Unless mentioned otherwise, None is equivalent to absence of information. | ||||||
|   | |||||||
| @@ -3340,6 +3340,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | |||||||
|                 'url': url, |                 'url': url, | ||||||
|                 'width': width, |                 'width': width, | ||||||
|                 'height': height, |                 'height': height, | ||||||
|  |                 'fps': frame_count / duration, | ||||||
|  |                 'rows': rows, | ||||||
|  |                 'columns': cols, | ||||||
|                 'fragments': [{ |                 'fragments': [{ | ||||||
|                     'url': url.replace('$M', str(j)), |                     'url': url.replace('$M', str(j)), | ||||||
|                     'duration': min(fragment_duration, duration - (j * fragment_duration)), |                     'duration': min(fragment_duration, duration - (j * fragment_duration)), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ftk
					ftk