from typing import List from src.constants.core import VENDOR_SPOTIFY, IdType, VendorType from src.legacy.core.sony_check import check_is_sony from src.legacy.core.vendor import VendorBase class SpotifyBase(VendorBase): vendor_name = VENDOR_SPOTIFY def check_track_is_sony(self, ids_list: List[str], id_type: IdType = IdType.ID, market: str = None) -> List[str]: """ TODO - OUTDATED: use new gate-api version. Method fetch sony/non-sony data from DSP-API for batch of tracks. Args: ids_list: list of tracks ids. market: Market code. id_type: type of identifiers in ids_list (id|isrc) Return: List of sony ids only """ if market is None: raise ValueError(f"{self.__class__.__name__}.check_track_is_sony should receive non nullable market.") return check_is_sony(ids_list, id_type=id_type, vendor=VendorType.SPOTIFY, market=market)