From 1b36d0bb5e9861d3613b9cdced4294247831a3d0 Mon Sep 17 00:00:00 2001 From: ngld Date: Tue, 25 Aug 2015 15:14:04 +0200 Subject: [PATCH] Small consistency improvements --- youtube_dl/extractor/roosterteeth.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/roosterteeth.py b/youtube_dl/extractor/roosterteeth.py index 8da542c3e..8872d312d 100644 --- a/youtube_dl/extractor/roosterteeth.py +++ b/youtube_dl/extractor/roosterteeth.py @@ -200,9 +200,11 @@ class RoosterteethIE(InfoExtractor): if 'youtubeKey' not in meta: raise ExtractorError('Invalid metadata for youtube video!') - res = self.url_result('https://youtube.com/watch?v=' + meta['youtubeKey']) - res['_type'] = 'url_transparent' - res['id'] = video_id + res = { + '_type': 'url_transparent', + 'url': 'https://youtube.com/watch?v=' + meta['youtubeKey'], + 'id': video_id + } else: raise ExtractorError('Unknown player type %s!' % player) @@ -285,7 +287,7 @@ class RoosterteethIE(InfoExtractor): profile_page = 'http://%s/user/%s' % (domain, compat_urllib_parse.quote(username)) html = self._download_webpage( profile_page, None, - note='Checking user profile...', + note='Checking user profile', errnote='unable to access user profile', fatal=False) if not html: