From: Yen Chi Hsuan Date: Sun, 31 Jan 2016 19:08:46 +0000 (+0800) Subject: [acast] Remove ACastBaseIE X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=9934fe76be616cf468038a6b04771b3fcc514765;p=youtube-dl [acast] Remove ACastBaseIE No longer necessary as _API_BASE_URL is used by ACastChannelIE only --- diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index f2465f8f8..92eee8119 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -8,11 +8,7 @@ from ..compat import compat_str from ..utils import int_or_none -class ACastBaseIE(InfoExtractor): - _API_BASE_URL = 'https://www.acast.com/api/' - - -class ACastIE(ACastBaseIE): +class ACastIE(InfoExtractor): IE_NAME = 'acast' _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P[^/]+)/(?P[^/#?]+)' _TEST = { @@ -49,7 +45,7 @@ class ACastIE(ACastBaseIE): } -class ACastChannelIE(ACastBaseIE): +class ACastChannelIE(InfoExtractor): IE_NAME = 'acast:channel' _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P[^/#?]+)' _TEST = { @@ -61,6 +57,7 @@ class ACastChannelIE(ACastBaseIE): }, 'playlist_mincount': 20, } + _API_BASE_URL = 'https://www.acast.com/api/' @classmethod def suitable(cls, url):