use one ie_key only

This commit is contained in:
kclauhk 2024-10-31 02:42:58 +08:00
parent 0f49100783
commit 245ca4e515
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ class ExtremeMusicBaseIE(InfoExtractor):
_REQUIRE_VERSION = [] _REQUIRE_VERSION = []
def _initialize(self, url, video_id, country=None): def _initialize(self, url, video_id, country=None):
self._REQUIRE_VERSION = self._configuration_arg('ver') or self._configuration_arg('version') self._REQUIRE_VERSION = (self._configuration_arg('ver', ie_key='extrememusic')
or self._configuration_arg('version', ie_key='extrememusic'))
# This site serves different versions of the same playlist id due to geo-restriction # This site serves different versions of the same playlist id due to geo-restriction
# use user's own country code if no code (geo_bypass_country or pre-defined country code) is provided # use user's own country code if no code (geo_bypass_country or pre-defined country code) is provided
if not country: if not country: