From 14483a162949dcdffc1fe36b5c4962f1926beaa3 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sat, 13 Jan 2024 11:57:11 +0100 Subject: ♻️ Some refactoring started within download.py. ✨ Track extension can be ignored while skipping files. Closes #11. ✨ Started to implement MPEG DASH download support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/format.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tidal_dl_ng/helper/format.py (limited to 'tidal_dl_ng/helper/format.py') 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(" bool: + result = False + + if value: + if value.startswith("{"): + result = True + + return result -- cgit v1.3.1