1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[channel9] Return a single dictionary for single videos (closes #7086)

Returning a list is deprecated.
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-10-13 21:14:33 +02:00
parent 5946cda7c6
commit b30c4992a9

View file

@ -224,12 +224,12 @@ class Channel9IE(InfoExtractor):
if contents is None:
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:
content['authors'] = authors
return contents
return result
def _extract_session(self, html, content_path):
contents = self._extract_content(html, content_path)