no, jpeg IS a format

This commit is contained in:
henryruhs
2025-01-13 13:37:40 +01:00
parent 9d9805a03b
commit 964fab8724
4 changed files with 8 additions and 8 deletions

View File

@@ -32,8 +32,8 @@ def get_file_format(file_path : str) -> Optional[str]:
file_extension = get_file_extension(file_path)
if file_extension:
if file_extension == '.jpeg':
return 'jpg'
if file_extension == '.jpg':
return 'jpeg'
return file_extension.lower().lstrip('.')
return None