diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-01-13 11:57:11 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-01-13 11:57:11 +0100 |
| commit | 14483a162949dcdffc1fe36b5c4962f1926beaa3 (patch) | |
| tree | 7902058e3218d5b05eb1a5c14f8ae726bd429edf /tidal_dl_ng/helper/format.py | |
| parent | 0cba5d83b1bfa212d3bdb7719f90740f513f01c2 (diff) | |
| download | tidal-dl-ng-14483a162949dcdffc1fe36b5c4962f1926beaa3.tar.gz | |
♻️ Some refactoring started within download.py.
✨ Track extension can be ignored while skipping files. Closes #11.
✨ Started to implement MPEG DASH download support.
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 |
