Files
tidal-dl/tidal_dl_ng/helper/format.py
T
2024-01-13 12:04:35 +01:00

17 lines
273 B
Python

def is_xml(value: str) -> bool:
result = False
if value and value.startswith("<?xml"):
result = True
return result
def is_json(value: str) -> bool:
result = False
if value and value.startswith("{"):
result = True
return result