diff options
Diffstat (limited to 'tidal_dl_ng/helper/format.py')
| -rw-r--r-- | tidal_dl_ng/helper/format.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tidal_dl_ng/helper/format.py b/tidal_dl_ng/helper/format.py new file mode 100644 index 0000000..ab62a69 --- /dev/null +++ b/tidal_dl_ng/helper/format.py @@ -0,0 +1,18 @@ +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 |
