1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[Amara] Use generic extractor when video type is not Vimeo or Youtube

This commit is contained in:
Joost Verdoorn 2019-04-09 16:21:41 +02:00 committed by Joost Verdoorn
parent 9b0ba2299f
commit 5fbfd75347

View File

@ -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)