[Amara] Use generic extractor when video type is not Vimeo or Youtube
This commit is contained in:
parent
9b0ba2299f
commit
5fbfd75347
@ -4,7 +4,7 @@ from __future__ import unicode_literals
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from .youtube import YoutubeIE
|
from .youtube import YoutubeIE
|
||||||
from .vimeo import VimeoIE
|
from .vimeo import VimeoIE
|
||||||
from ..utils import ExtractorError
|
from .generic import GenericIE
|
||||||
|
|
||||||
|
|
||||||
class AmaraIE(InfoExtractor):
|
class AmaraIE(InfoExtractor):
|
||||||
@ -39,7 +39,7 @@ class AmaraIE(InfoExtractor):
|
|||||||
elif video_type == 'V':
|
elif video_type == 'V':
|
||||||
IE = VimeoIE
|
IE = VimeoIE
|
||||||
else:
|
else:
|
||||||
raise ExtractorError('Could not find extractor for Amara video type %s.' % video_type)
|
IE = GenericIE
|
||||||
|
|
||||||
ie_info = IE(downloader=self._downloader).extract(video_url)
|
ie_info = IE(downloader=self._downloader).extract(video_url)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user