mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[channel9] Return a single dictionary for single videos (closes #7086)
Returning a list is deprecated.
This commit is contained in:
		@@ -224,12 +224,12 @@ class Channel9IE(InfoExtractor):
 | 
				
			|||||||
        if contents is None:
 | 
					        if contents is None:
 | 
				
			||||||
            return contents
 | 
					            return contents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        authors = self._extract_authors(html)
 | 
					        if len(contents) > 1:
 | 
				
			||||||
 | 
					            raise ExtractorError('Got more than one entry')
 | 
				
			||||||
 | 
					        result = contents[0]
 | 
				
			||||||
 | 
					        result['authors'] = self._extract_authors(html)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for content in contents:
 | 
					        return result
 | 
				
			||||||
            content['authors'] = authors
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        return contents
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _extract_session(self, html, content_path):
 | 
					    def _extract_session(self, html, content_path):
 | 
				
			||||||
        contents = self._extract_content(html, content_path)
 | 
					        contents = self._extract_content(html, content_path)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user