mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 07:17:07 -05:00 
			
		
		
		
	Add display_id field
This commit is contained in:
		@@ -675,6 +675,9 @@ class YoutubeDL(object):
 | 
				
			|||||||
            info_dict['playlist'] = None
 | 
					            info_dict['playlist'] = None
 | 
				
			||||||
            info_dict['playlist_index'] = None
 | 
					            info_dict['playlist_index'] = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if 'display_id' not in info_dict:
 | 
				
			||||||
 | 
					            info_dict['display_id'] = info_dict['id']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # This extractors handle format selection themselves
 | 
					        # This extractors handle format selection themselves
 | 
				
			||||||
        if info_dict['extractor'] in ['Youku']:
 | 
					        if info_dict['extractor'] in ['Youku']:
 | 
				
			||||||
            if download:
 | 
					            if download:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -88,6 +88,10 @@ class InfoExtractor(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    The following fields are optional:
 | 
					    The following fields are optional:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    display_id      An alternative identifier for the video, not necessarily
 | 
				
			||||||
 | 
					                    unique, but available before title. Typically, id is
 | 
				
			||||||
 | 
					                    something like "4234987", title "Dancing naked mole rats",
 | 
				
			||||||
 | 
					                    and display_id "dancing-naked-mole-rats"
 | 
				
			||||||
    thumbnails:     A list of dictionaries (with the entries "resolution" and
 | 
					    thumbnails:     A list of dictionaries (with the entries "resolution" and
 | 
				
			||||||
                    "url") for the varying thumbnails
 | 
					                    "url") for the varying thumbnails
 | 
				
			||||||
    thumbnail:      Full URL to a video thumbnail image.
 | 
					    thumbnail:      Full URL to a video thumbnail image.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user