mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[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 .youtube import YoutubeIE
|
||||
from .vimeo import VimeoIE
|
||||
from ..utils import ExtractorError
|
||||
from .generic import GenericIE
|
||||
|
||||
|
||||
class AmaraIE(InfoExtractor):
|
||||
@ -39,7 +39,7 @@ class AmaraIE(InfoExtractor):
|
||||
elif video_type == 'V':
|
||||
IE = VimeoIE
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user