1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-10 12:03:10 +08:00

[Noovo] Add new extractor

This commit is contained in:
Frederic Bournival 2017-04-19 21:37:28 -04:00
parent cd3a2f26c2
commit 8c0d3a4792

View File

@ -1,7 +1,6 @@
# coding: utf-8 # coding: utf-8
from __future__ import unicode_literals from __future__ import unicode_literals
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ExtractorError
class NoovoIE(InfoExtractor): class NoovoIE(InfoExtractor):
@ -62,9 +61,6 @@ class NoovoIE(InfoExtractor):
if not brightcove_id: if not brightcove_id:
brightcove_id = api_content.get('data').get('contents')[0].get('brightcoveId') brightcove_id = api_content.get('data').get('contents')[0].get('brightcoveId')
if brightcove_id: return self.url_result(
return self.url_result( self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id
self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id )
)
else:
raise ExtractorError('Unable to extract brightcove id from api')