mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[utils] Add video_title for url_result
				
					
				
			This commit is contained in:
		@@ -492,7 +492,7 @@ class InfoExtractor(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Methods for following #608
 | 
					    # Methods for following #608
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
    def url_result(url, ie=None, video_id=None):
 | 
					    def url_result(url, ie=None, video_id=None, video_title=None):
 | 
				
			||||||
        """Returns a url that points to a page that should be processed"""
 | 
					        """Returns a url that points to a page that should be processed"""
 | 
				
			||||||
        # TODO: ie should be the class used for getting the info
 | 
					        # TODO: ie should be the class used for getting the info
 | 
				
			||||||
        video_info = {'_type': 'url',
 | 
					        video_info = {'_type': 'url',
 | 
				
			||||||
@@ -500,6 +500,8 @@ class InfoExtractor(object):
 | 
				
			|||||||
                      'ie_key': ie}
 | 
					                      'ie_key': ie}
 | 
				
			||||||
        if video_id is not None:
 | 
					        if video_id is not None:
 | 
				
			||||||
            video_info['id'] = video_id
 | 
					            video_info['id'] = video_id
 | 
				
			||||||
 | 
					        if video_title is not None:
 | 
				
			||||||
 | 
					            video_info['title'] = video_title
 | 
				
			||||||
        return video_info
 | 
					        return video_info
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user