"""ows-assets model.""" from owsrequest import request from owsresponse import status from requests import HTTPError def is_hd_product(product_id: int) -> bool: """Check if all tracks have 24 bit audio. Args: product_id (int) Returns: bool """ try: response = request.get( "ows-assets", f"/validators/product/{product_id}/desired-bit-depth/24" ) response.raise_for_status() return True except HTTPError as e: if e.response.status_code == status.BAD_REQUEST: return False raise