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

17 lines
273 B
Python
Raw Normal View History

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