✨ Track extension can be ignored while skipping files. Closes #11. ✨ Started to implement MPEG DASH download support.
19 lines
297 B
Python
19 lines
297 B
Python
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
|