aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/channel9.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-14 20:32:11 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-14 20:32:11 +0600
commit4aa353673b5404e9765a2b3e1ffbf8bb1c147d42 (patch)
tree6911f4afe7980bd1d8102405f80d58a30ad6f6ff /youtube_dl/extractor/channel9.py
parent3eeff489e80838cd2d1b3f55fc96db747386fd50 (diff)
parentf49b3d6efc012504a956ba3e625e492233721221 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/extractor/channel9.py')
-rw-r--r--youtube_dl/extractor/channel9.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dl/extractor/channel9.py b/youtube_dl/extractor/channel9.py
index 3dfc24f5b..1ce004932 100644
--- a/youtube_dl/extractor/channel9.py
+++ b/youtube_dl/extractor/channel9.py
@@ -158,7 +158,7 @@ class Channel9IE(InfoExtractor):
def _extract_session_day(self, html):
m = re.search(r'<li class="day">\s*<a href="/Events/[^"]+">(?P<day>[^<]+)</a>\s*</li>', html)
- return m.group('day') if m is not None else None
+ return m.group('day').strip() if m is not None else None
def _extract_session_room(self, html):
m = re.search(r'<li class="room">\s*(?P<room>.+?)\s*</li>', html)
@@ -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)