mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 09:07:16 +08:00
Small consistency improvements
This commit is contained in:
parent
73f537ce18
commit
1b36d0bb5e
@ -200,9 +200,11 @@ class RoosterteethIE(InfoExtractor):
|
|||||||
if 'youtubeKey' not in meta:
|
if 'youtubeKey' not in meta:
|
||||||
raise ExtractorError('Invalid metadata for youtube video!')
|
raise ExtractorError('Invalid metadata for youtube video!')
|
||||||
|
|
||||||
res = self.url_result('https://youtube.com/watch?v=' + meta['youtubeKey'])
|
res = {
|
||||||
res['_type'] = 'url_transparent'
|
'_type': 'url_transparent',
|
||||||
res['id'] = video_id
|
'url': 'https://youtube.com/watch?v=' + meta['youtubeKey'],
|
||||||
|
'id': video_id
|
||||||
|
}
|
||||||
else:
|
else:
|
||||||
raise ExtractorError('Unknown player type %s!' % player)
|
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))
|
profile_page = 'http://%s/user/%s' % (domain, compat_urllib_parse.quote(username))
|
||||||
html = self._download_webpage(
|
html = self._download_webpage(
|
||||||
profile_page, None,
|
profile_page, None,
|
||||||
note='Checking user profile...',
|
note='Checking user profile',
|
||||||
errnote='unable to access user profile', fatal=False)
|
errnote='unable to access user profile', fatal=False)
|
||||||
|
|
||||||
if not html:
|
if not html:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user