Files
tidal-dl/tidal_dl_ng/helper/format.py
T

19 lines
297 B
Python
Raw Normal View History

2024-01-13 11:57:11 +01:00
def is_xml(value: str) -> bool:
result = False
if value:
if value.startswith("<?xml"):
result = True
return result
def is_json(value: str) -> bool:
result = False
if value:
if value.startswith("{"):
result = True
return result