mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 17:02:52 +08:00
[Noovo] Add new extractor
This commit is contained in:
parent
cd3a2f26c2
commit
8c0d3a4792
@ -1,7 +1,6 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
from .common import InfoExtractor
|
||||
from ..utils import ExtractorError
|
||||
|
||||
|
||||
class NoovoIE(InfoExtractor):
|
||||
@ -62,9 +61,6 @@ class NoovoIE(InfoExtractor):
|
||||
if not brightcove_id:
|
||||
brightcove_id = api_content.get('data').get('contents')[0].get('brightcoveId')
|
||||
|
||||
if brightcove_id:
|
||||
return self.url_result(
|
||||
self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id
|
||||
)
|
||||
else:
|
||||
raise ExtractorError('Unable to extract brightcove id from api')
|
||||
return self.url_result(
|
||||
self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user